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.
looping a script to run it _ times?
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
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
Kindly use the latest version of Sahi. As there are many changes and bugs fixed in the latest version.(ieSahi V3 2011-07-19)
Use "for loop" to run the script multiple times.
Have a look at : http://sahi.co.in/w/sahi-scripting-basics
Regards
Sumitra