18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
Batch mode v3.5, browser windows do not close
Hi there,
I have already searched the forum, but unfortunatelly I did not find a sattisfying solution for my problem.
Problem: I try to run tests in batch mode under linux with Firefox 3.5.9. Windows come up and tests fire as expected. After a test has finished, the browser window does not close automatically. I read that after finishing a test successfully the windows would close immediately, but they don't.
I start tests like this: java -cp ../../lib/ant-sahi.jar net.sf.sahi.test.TestRunner -test [PATHTOSUITE].suite -browserType "firefox" -baseURL [MY_URL] -host localhost -port 9999 -threads 3
Browserconfig:
<browserType>
<name>firefox</name>
<displayName>Firefox</displayName>
<icon>firefox.png</icon>
<path>/usr/bin/firefox</path>
<options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>
<processName>firefox.sh</processName>
<capacity>5</capacity>
</browserType>
Thanks so far guys!
I have already searched the forum, but unfortunatelly I did not find a sattisfying solution for my problem.
Problem: I try to run tests in batch mode under linux with Firefox 3.5.9. Windows come up and tests fire as expected. After a test has finished, the browser window does not close automatically. I read that after finishing a test successfully the windows would close immediately, but they don't.
I start tests like this: java -cp ../../lib/ant-sahi.jar net.sf.sahi.test.TestRunner -test [PATHTOSUITE].suite -browserType "firefox" -baseURL [MY_URL] -host localhost -port 9999 -threads 3
Browserconfig:
<browserType>
<name>firefox</name>
<displayName>Firefox</displayName>
<icon>firefox.png</icon>
<path>/usr/bin/firefox</path>
<options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>
<processName>firefox.sh</processName>
<capacity>5</capacity>
</browserType>
Thanks so far guys!
Comments
Could you replace
<processName>firefox.sh</processName>
with
<processName>firefox</processName>
and check?
If that does not work, try with <processName>firefox-bin</processName> too
Regards,
Narayan
wonderful! That fixed my problem. Thank you for that.
Unfortunatelly I got some others to come...but I will post them as another topic.
So far for now!