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.
Scripts are failing in suite but not in controller
Hi
We are facing this problem when we run the suite file through console window some scripts are failing.
But next morning if we are running the same script through controller it is passed.
We cant under stand is there any limitation to SAHI in suite files?
Is there any limitation for the number of scripts in a suite file?
Present we are having 120 scripts in our suite file
Please any one can tell us the reason and suggest some answer for us because we are going to use thee scripts live with in few days
Thanks
Aparanji
We are facing this problem when we run the suite file through console window some scripts are failing.
But next morning if we are running the same script through controller it is passed.
We cant under stand is there any limitation to SAHI in suite files?
Is there any limitation for the number of scripts in a suite file?
Present we are having 120 scripts in our suite file
Please any one can tell us the reason and suggest some answer for us because we are going to use thee scripts live with in few days
Thanks
Aparanji
Comments
Are you running multiple threads in a suite? Do your tests depend on the sequence in which they are run? Do you see a trend as to when the tests fail?
Regards,
Narayan
1)We tried in Both ways single threads and Multiple threads(2,3,4) .
2)Our Scripts are independant to each other there is no dependency .
3)There is no similarity in the scripts failed from each run to other.
4)Some times we both run the same suite file but some scripts passed in my suite will fail in the other ones. So we dont under stand what is the problem in them.
5)Because the scripts are failing we check it and kept some wait statements but next time it will fail some where else.
Please check on this and give us some advise
Thanks
Aparanji
Could you tell us the type of errors you see?
1) Is it that a link/button which should have been clicked is not getting clicked?
2) Is the page loading slowly and causing a problem?
3) Are you on a VPN or some other slow connection where the page may not be loaded fully?
4) Do the errors start happening after some time?
5) Does your system memory or CPU increase at some point of time?
6) Do you see any errors in your System logs or on your web/app server logs?
7) Do you see Sahi's memory usage increasing much at any point of time?
Regards,
Narayan
1)Yes the problem is some times link, pop up,button it varies
2)May be the page load is taking time because we run in nights so we dont know whats happening
3)No i am not on VPN connection
4)Its not like that errors happen after some time it varies
5)System memory or CPU not increasing
6)No errors in logs
7)No increase in SAHI memory usage
Some times scripts fail at same point like login 3 to 4 and then they satrt running normally this occured long back
Do we have to delete the reports periodically?
Thanks
Aparanji
Can you check how much time has elapsed between the step that fails and the previous step? Are they generally longer than normal? Can you also check if the step generally fails if the previous step caused the page to change or reload?
If you feel that the page load is what is causing the problem, you could change
script.max_cycles_for_page_load=1200
in sahi/config/sahi.properties to
script.max_cycles_for_page_load=2000
restart Sahi, and then try again.
Deletion of logs needs be done periodically. I would suggest you add a deletion task to your CI.
Regards,
Narayan
1)Time elapsed between the step that fails and previous step is 150 seconds
2)Yes most of the steps generally fail when previous step causes page to change or reload some times problem with pop up also
3)last night i kept suite file with 106 scripts and last 4 scripts didnt run no log for the last scripts
Is there any limit for the number of scripts for a suite file?
I will try with the changes you suggested
"I would suggest you add a deletion task to your CI."-can you expalin in detail about this
Thanks
Aparanji