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.
verification checkpionts [highlight,assert] failing-Negative scenarios
We are using Sahi pro Sahi Pro 3.6
Version : 3.6.0
Build : 2011-07-21
I have applied verification check points for my scripts but checkpoints are getting failed for negative scenarios.
Steps for my script:
1) submit all data in fields on UI and press submit button
2) " Transaction sucessful" message appears
3) I have applied highlight /assert checkpoint on "Transaction sucessful" message
4) If testcase is positive, " Transaction sucessful" message appears and verfication checkpoints passes and script gets passed which is absloutely correct.
5) if test case is negative, " Transaction Unsucessful" message appears and still scripts gets passed .
In negative case Checkpoint should fail and script should also fail then we can say as passed in our case.
Can you please let us the know the issue
Version : 3.6.0
Build : 2011-07-21
I have applied verification check points for my scripts but checkpoints are getting failed for negative scenarios.
Steps for my script:
1) submit all data in fields on UI and press submit button
2) " Transaction sucessful" message appears
3) I have applied highlight /assert checkpoint on "Transaction sucessful" message
4) If testcase is positive, " Transaction sucessful" message appears and verfication checkpoints passes and script gets passed which is absloutely correct.
5) if test case is negative, " Transaction Unsucessful" message appears and still scripts gets passed .
In negative case Checkpoint should fail and script should also fail then we can say as passed in our case.
Can you please let us the know the issue
Comments
Can you please post the code to verify "transaction successful".
Regards
Sumitra
_highlight(_span("Transaction successful."));
Above are the lines of which are used for verification message.
Use _highlight only for debugging purposes.
In your case, you should be using This will verify that "Transaction unsuccessful" is not visible when the transaction is successful.
Regards,
Sumitra