18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Problem with running ant

emistralemistral Members
edited November -1 in Sahi - Open Source
Hi all,

I have a problem with ant and I was wondering if someone could give me a hint.
Well actually I have 2 problems:
- The first one is that I start an ant.xml file and request 14 instances of either IE or FF. It looks like that along the process, the browser does not respond and eventually the instance of IE or FF is closed by sahi because there is no response for more than 20s. is it possible to increase that number?
if so, how would you do it? I think the no response problem could be the fact that 15 instances are started at the same time and the server on the other side receives 15 login simultaneously or almost. If it is the case, is there a way to put delay in between opening instances of the browser?

- The second problem I have is with FF. When ant starts multiple instances of FF, I have a popup message from FF to tell me that FF is already opened and I need to close something. There is an OK button for basically all instances and unless you click on the Ok button, it seems the scripts are blocked.
I have checked in FF setting but could not find anything. Any idea?

Thanks a lot

Comments

  • narayannarayan Administrators
    Running 15 simultaneous ff sessions will take up too much CPU considering the browser instances, the proxy processing and your web server.
    A realistic number is 3-4. If you wanted to load test your server Sahi is not the tool since it focuses on functional testing.

    Having a firefox instance already running when you start the ant playback sometimes gets rid of the problem. Also set an environment variable MOZ_NO_REMOTE=1 and try again.
  • narayannarayan Administrators
    Please pick the latest release dated 5 Mar 2008 from sourceforge.
    The FF playback issue has been fixed. The "firefox is already running" error will occur once after you download and unzip sahi, but will not recur after that. So first time click on OK as many times as the alert pops up, kill the suite process and then rerun it and you should never see that error again unless you delete the browser/ff/profiles directory.
  • kevinkolekevinkole Members
    edited October 2008
    I get a similar problem in IE6.
    I can run them one by one fine, but sometimes (2 or more threads), I guess if the window titles are the same (same I'm testing the same webapp), IE will say "Cannot navigate to..." and will stop playback for that thread even if I click OK.

    I added a random wait in each script but I still get this problem occasionally.

    I'm using just the commandline batch scripts, not ant.
Sign In or Register to comment.