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.

looping a script to run it _ times?

BradPackBradPack Members
edited November -1 in Sahi - Open Source
I want to run a script several times to make sure it runs successfully without failing.

I have tried this while loop statement

$i = 0;
while ($i++ < 10) {

my script code

}


from this web page: sahi-scripting-basics


but it just causes my script to loop indefinitely (not only run it 10X - like it is supposed to?)

Thank You!


Brad

Comments

Sign In or Register to comment.