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.

Assert Fail

PhaniPhani Members
edited November -1 in Sahi - Open Source
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

Comments

  • Hi Phani,

    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.
Sign In or Register to comment.