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.

Run Sahi scripts in sequence with in the batch/Suite file

anilkumaranilkumar Members
edited November -1 in Sahi - Open Source
Hi,


i have two sahi scripts in my Suite file "auto.suite"

"test1.sah
test2.sah"

when i am trying to run suite file its automatically starts two scripts (test1.sah,test2.sah) at same time.

i want to wait second script ie, test2.sah should wait until test1.sah complete.

is there any way to run shai scripts in a sequence with in the suite file /bath file.

OS: Window XP

Browser: IE8

Build : 2011-07-19

Thanks,
AnilKumar

Comments

  • Hi Anilkumar,

    All you need is to set the threads property to 1.

    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+te … atch+mode)

    And sahi should execute scripts in suite one after the other.

    Regards,
    Theeran.
  • Thanks Theeran.. its working.. :)
This discussion has been closed.