You are on page 1of 16

Custom Checkpoints

EDUCATION SERVICES

Objectives
After completing this chapter, you will be able to: Create a parameterized checkpoint. Compare captured parameter values with expected values. Use debug tools to investigate and cause failures. Verify that the reported error message reflects the state of the test.

Using a Custom Checkpoint


You use a custom checkpoint to: Capture and verify dynamic values in the test by using output parameters.

Validate the test outcome as acceptable or unacceptable by using a conditional statement.


Apply ReportEvent to report if the test outcome is acceptable.

Generating a Dynamic Value as Output

Setting a Parameterized Checkpoint Tree View Script View

Calculating the Outcome Value

Using Data Table Formula Capabilities

Run-Time Data Table Output

Adding the DataTable Object

Adding a Conditional Statement

10

The Debug Toolbar

11

Using a Breakpoint

12

Saving Step Screens

13

Summary
In this chapter, you learned how to: Create a parameterized checkpoint. Compare captured parameter values with expected values. Use debug tools to investigate and cause failures. Verify that the reported error message reflects the state of the test.

14

Review Questions
Now answer these review questions. 1. What is the use of a custom checkpoint? 2. What is the use of a breakpoint?

15

Exercise: Creating a Custom Checkpoint

Part 1: Record a test Part 2: Create output parameters to calculate variables Part 3: Use a formula in the Data Table

Part 4: Use a conditional statement to verify the calculation


Part 5: Report status of the PriceChk parameter

Part 6: Set a breakpoint and create a failure


16

You might also like