Standard Check Point:



Standard Check Point is used for verifying the properties of the objects at the particular point of state. In other words we can say, standard checkpoints compare the expected values of object properties to the object’s current values during a run session

Standard Check points can be created in 3 ways,

  1. Through INSERT Menu,
  2. Right Click on the Step,
  3. Through Active Screen.
Through INSERT Menu:-

  1. Start Recording,
  2. Choose Insert à Check Point à Standard Check Point, or click on Insert Check Point Button from the toolbar,
The Quick Test Window minimized and mouse pointer turns into a pointing hand
  1. Click on the Object you want to verify, The Checkpoint Properties Dialogue Box opens up,

  1.  Set the property(ies) you want to verify,
  2. Click on OK button.
Example:
Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "balaraju.s"
Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Passwd").SetSecure "4ba70cce216b9728d5347"
Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebButton("Sign in").Check CheckPoint("Sign in")

NOTE:

  1. Mostly with the help of Standard Checkpoint, we will verify one property for a particular object.
  2. Multiple properties verification also possible depending on the requirement.
  3. Checkpoint timeout is 0 seconds by default, and may be changeable depending on the requirement.
  4. The Insert statement option is not available when adding a checkpoint during recording or when modifying an existing object checkpoint. It is available only when adding a new checkpoint to an existing test while editing it.
Right Click on the Step:-

  1. Start Recording,
  2. Go to the step for which you have to insert check point and give Right Click.
  3. The Checkpoint Properties Dialogue Box opens up,
  4.  Set the properties you want to verify,
  5. Click on OK button.
Through Active Screen:-

  1. Start Recording,
  2. Go to the object in the Active Screen for which you have to insert check point and give Right Click.
  3. The Checkpoint Properties Dialogue Box opens up,
  4.  Set the properties you want to verify,
  5. Click on OK button.
Modifying the Check Points:

To modify a checkpoint,

  1. Right-click a row with a checkpoint in the Keyword View and choose Checkpoint Properties, or select a row with a checkpoint and choose Edit à Step Properties à Checkpoint Properties. The relevant checkpoint dialog box opens.
  2. Modify the properties according to your requirement and click on OK Button.

No comments:

Post a Comment