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.
Assert Fail
Hi There-
Is there any way to findout if any script with Assert failed, instead clicking the log fie.
Scenario : Iam running a script thru controller, where one of the assert is failed. I need to get into the log file that script and need to check whether assert is failed or not. Is there any alternate way...
How about when running suite file thru command prompt.
Thanks
Phani
Is there any way to findout if any script with Assert failed, instead clicking the log fie.
Scenario : Iam running a script thru controller, where one of the assert is failed. I need to get into the log file that script and need to check whether assert is failed or not. Is there any alternate way...
How about when running suite file thru command prompt.
Thanks
Phani
Comments
You can use onScriptFailure() function to alert you whenever the assertion failure occur's. Go through the following link,
http://sahi.co.in/w/sahi-call-back-functions
This describes, How the controller alert's you on each assertion failures.
This might help you.
Regards,
Theeran.