CheckPoint Statement

What is CheckPoint Statement in the script?
Without using insert checkpoint how will you insert checkpoint in the script? Expain one example with script.

Questions by prasadka

Showing Answers 1 - 6 of 6 Answers

viplav15

  • Jan 18th, 2011
 

This is a very commonly encountered scenario.
Checkpoints in QTP are just the validation points or a sort of If Then type conditional validation to verify if the expected result and actual result are in synch.
Normally we prefer opting the "Insert Checkpoint" functionality , however for custom reporting that we utilise in mnay of our automation projects, we prefer going with the conditional validations statement.
For example if suppose we are needed with validating the text content of any webelement , we can use the Getroproperty method of the particular object ,
and then do the conditional validation using If Else statement.
After that use the Reporter.reportevent feature to state whether the validation has passed or not.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions