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.
Logging Results
Hi,
Assert cannot be included in IF conditions.
Can any one please provide a code to test asserions using IF condition:
If assertion passes, then log pass message
If assertion fails, then log fail message.
Thanks,
Samsirsameer.
Assert cannot be included in IF conditions.
Can any one please provide a code to test asserions using IF condition:
If assertion passes, then log pass message
If assertion fails, then log fail message.
Thanks,
Samsirsameer.
Comments
But my doubt is
I want to check whether the page title of my application is displayed and is correct or not.
If the page title is correct, then log message "page title is verified and is correct"
Else
Log message "Page title is incorrect" (Actual: ' ' Expected: ' ')
Thanks,
Samsirsameer.