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.

Suite files

GeorgeGeorge Members
edited November -1 in Sahi - Open Source
OS : Windows 7
Browser : FireFox version 3.6.8
Sahi Build: 2010-11-03

I wanted to run 5 scripts one after one.
So i have created a suite file and a batch file.. in suite file i had mentioned the 5 sahi scripts one after one.
The suite run ... one by one.. most of the time... first sahi script then immediatley take the 2nd, 3rd, 4th & fifth. What i really want is .. I WANT TO GET THE FIRST SCRIPT FINISHED & THEN ONLY TO START THE SECOND ONE (I TAKE THE RESULT OF FIRST SCRIPT FILE IN THE DATABASE).

can you help / advise PLEASE.
i use the FireFox browser (i tried all others ie, chrome, opera but its the same.. all browsers take the scripts simultaneously & run).

i give the way i made the batch file & suite file.

FFF.bat contains

java -cp "D:\sahi\lib\ant-sahi.jar" net.sf.sahi.test.TestRunner "D:\sahi\userdata\scripts\pilot\FFF.suite" "D:\Program Files\Mozilla Firefox\firefox.exe" webaddress D:\TestOutput localhost 9999 2 firefox.exe -new-window

FFF.suite contains

1.sah webaddress
2.sah
3.sah
4.sah
5.sah


I want tio get the 1.sah script run finished & the only to start the 2.sah and then 3.sah etc
PLEASE ADVISE

OS : Windows 7
Browser : FireFox 3.6.8
Sahi Build: 2010-11-03

George

Comments

  • narayannarayan Administrators
    Hi George,

    You need is to set the threads property to 1. I am not sure why you are not using the new testrunner syntax, but in the one you are using, change

    localhost 9999 2
    to
    localhost 9999 1

    and it should do it one after the other.

    I woud suggest you look at sahi/userdata/bin/testrunner.bat to understand the new syntax. You can set THREADS=1 in that. (Also see: http://sahi.co.in/w/Running+multiple+tests+in+batch+mode)

    Regards,
    Narayan
Sign In or Register to comment.