7/27/2019 06-UsingStandardCheckpoints
1/20
EDUCATION SERVICES
Using Standard Checkpoints
QTP9.0USING-SLIDES-01A
7/27/2019 06-UsingStandardCheckpoints
2/20
2
Objectives
After completing this chapter, you will be able to:
Define checkpoints.
Use standard checkpoints.
Add flexibility to a constant value using a regularexpression.
7/27/2019 06-UsingStandardCheckpoints
3/20
3
QuickTest Professional Workflow
7/27/2019 06-UsingStandardCheckpoints
4/20
4
Understanding Checkpoints
A checkpoint is a specialized step that compares twovalues and reports the result.
QuickTest compares actual results from the test run withexpected results in the test plan.
If the two values match, the checkpoint passes.Otherwise, the test fails.
7/27/2019 06-UsingStandardCheckpoints
5/20
5
Using Checkpoints
You use a checkpoint to:
Verify the state of an object.
Confirm that an application performs as expected.
7/27/2019 06-UsingStandardCheckpoints
6/20
6
Visual Cues
7/27/2019 06-UsingStandardCheckpoints
7/207
Checkpoint Types
7/27/2019 06-UsingStandardCheckpoints
8/208
Standard Checkpoint
7/27/2019 06-UsingStandardCheckpoints
9/209
Inserting a Checkpoint During Recording
7/27/2019 06-UsingStandardCheckpoints
10/2010
Insert a Checkpoint After Recording
7/27/2019 06-UsingStandardCheckpoints
11/2011
Identifying a Failed Checkpoint
7/27/2019 06-UsingStandardCheckpoints
12/2012
Using a Regular Expression
7/27/2019 06-UsingStandardCheckpoints
13/2013
Some Regular Expressions
Expression Char Description
Period . Matches any single character
Asterisk * Matches zero to any number ofoccurrences of the preceding character
Plus + Matches one to any number ofoccurrences of the preceding character
Brackets [A-Z][a-z] Matches a range of characters
[0-9] Matches a range of numbers
\w Matches any alphanumeric characterincluding underscore
\W Matches any non-alphanumericcharacter
Digit \d Matches any digit
\d{4} Matches exactly four digits
7/27/2019 06-UsingStandardCheckpoints
14/2014
Rename a Checkpoint
7/27/2019 06-UsingStandardCheckpoints
15/2015
Add a Comment
7/27/2019 06-UsingStandardCheckpoints
16/2016
Summary
In this chapter, you learned how to:
Define checkpoints.
Use standard checkpoints.
Add flexibility to a constant value by using a regularexpression.
7/27/2019 06-UsingStandardCheckpoints
17/20
17
Now answer these review questions.
1. What is a Standard checkpoint?
a)A mechanism to check the property of an object
b)An add-inc) An object type
d)A parameter
Review Questions
7/27/2019 06-UsingStandardCheckpoints
18/20
18
Review Questions
2. How do you determine if a checkpoint is used in a test?
a)A check mark appears next to the step in the testresults.
b) The Operation column of Keyword View lists theoperation as Check.
c) A check mark appears at each level of the TestSummary tree.
d)All of the above.
7/27/2019 06-UsingStandardCheckpoints
19/20
19
Review Questions
3. Does QuickTest verify only the visible properties of theapplication?
4. Why do you use regular expressions in your tests?
a) To set an object property.b) To define a checkpoint that can accept a range of
values.
c) To check that all add-ins are installed.
7/27/2019 06-UsingStandardCheckpoints
20/20
20
Exercise: Adding Checkpoints
Part 1: Insert a standardcheckpoint
Part 2: Check the test results
Part 3: Modify the test
Part 4: Record and open a FaxOrder test
Part 5: Add a comment
Part 6: Run the test
Part 7: Modify and run the test
Part 8: Fix the test