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.
Recognize results after running same scripts in different browsers
Hi All,
If I run a same suite in different browsers, ie (if I am executing same suite in IE8 and Firefox using a same batch file, in logs how can I recognize the results? How I will recognize which is the result of IE and which is the result of Firefox? My batch file will be like this.
java -cp C:/sahi/lib/ant-sahi.jar net.sf.sahi.test.TestRunner -test C:/MyWorks/4PFsahi/Scripts/Suites/testSuite.suite -browserType ie -baseURL http://www.google.co.in -threads 1
java -cp C:/sahi/lib/ant-sahi.jar net.sf.sahi.test.TestRunner -test C:/MyWorks/4PFsahi/Scripts/Suites/testSuite.suite -browserType firefox -baseURL http://www.google.co.in -threads 1
Regards,
SP
If I run a same suite in different browsers, ie (if I am executing same suite in IE8 and Firefox using a same batch file, in logs how can I recognize the results? How I will recognize which is the result of IE and which is the result of Firefox? My batch file will be like this.
java -cp C:/sahi/lib/ant-sahi.jar net.sf.sahi.test.TestRunner -test C:/MyWorks/4PFsahi/Scripts/Suites/testSuite.suite -browserType ie -baseURL http://www.google.co.in -threads 1
java -cp C:/sahi/lib/ant-sahi.jar net.sf.sahi.test.TestRunner -test C:/MyWorks/4PFsahi/Scripts/Suites/testSuite.suite -browserType firefox -baseURL http://www.google.co.in -threads 1
Regards,
SP
This discussion has been closed.
Comments
1) Sahi Pro gives a very detailed log of each run along with browser type used.
2) If using the open source version, you can add
-htmlLog true -htmlLogDir ie_logs
(or ff_logs) as parameters to TestRunner
Regards,
Narayan
The issue is resolved now in batch file. But I cannot use htmlLog nd htmlLogDir in ant scripts.
<sahi suite="C:/MyWorks/4PFsahi/Scripts/Suites/searchRedesign.suite"
browserType="ie"
baseurl="${urlbase}"
sahihost="localhost"
sahiport="9999"
failureproperty="sahi.failed"
haltonfailure="false"
threads="1"
htmlLog="true"
htmlLogDir="C:/MyWorks/4PFsahi/Logs/playback/IE_Results_SearchRedesign">
</sahi>
When I try using this i am getting an error in prompt like this
BUILD FAILED
C:\MyWorks\4PFsahi\AntFiles\build.xml:21: sahi doesn't support the "htmlLog" attribute
Regards,
SP
Use:
Also, look at this URL:
http://sahi.co.in/forums/viewtopic.php?id=2684
Check if this solves your issue.
Regards
Sumitra
Regards,
SP