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 scripts as a suite

GeorgeGeorge Members
edited November -1 in Sahi - Open Source
I wanted to run 5 scripts one after one with the same url.
so i have created one batch file & one suite file for that... having the 5 scripts name in the suite one after that.. and the batch file having all the details to run.
I face a problem... that.. if there is a slight delay in the scripts execution.. the suite takes the next one for execution.. eventhough i put wait statement.

my real problem is that... when the first script is failed in between.. and the second script is taken for execution... i get the site in the logged-in form (since first one failed in between) where as the second script expects to start from login into the site.

how can i solve this problem? anyone has any suggession?

George

by the by... this page (new post) has a bug.. Write message & (Required) texts are overlapped.

Comments

  • Hi George


    In this cases i add a
    if(loggedIn){ 
      _click("logout")
    }
    or
    _navigateTo($startPage)
    

    most of my scripts start with a navigateTo the URL i want to test and a conditional login
Sign In or Register to comment.