14_objrecogprobs
TRANSCRIPT
-
7/27/2019 14_ObjRecogProbs
1/19
EDUCATION SERVICES
Object Recognition Problems and Solutions
-
7/27/2019 14_ObjRecogProbs
2/19
2
After completing this chapter, you will be able to:
Describe the advantages of low-level and analogrecording.
Record a test by using low-level recording.
Record a test by using analog recording.
Create a bitmap checkpoint.
Describe the advantages of virtual objects.
Create virtual objects to solve playback issues.
Objectives
-
7/27/2019 14_ObjRecogProbs
3/19
3
Recording a Test in QuickTest
You can record a test in QuickTest in the followingrecording modes:
Normal
Low-level
Analog
-
7/27/2019 14_ObjRecogProbs
4/19
4
The Normal Recording Mode
The normal recording mode is the default recordingmode.
In this mode, QuickTest:
Records a step for each interaction with an object.
Learns the properties of an object and stores them in the objectrepository for object identification at run time.
-
7/27/2019 14_ObjRecogProbs
5/19
5
The Low-level Recording Mode
The low-level recording mode enables you to record onany object in the application, regardless of whetherQuickTest recognizes the object.
In low-level recording, QuickTest:
learns the object properties of run-time objects in the Windowclass or the WinObject class.
records the exact coordinates of mouse clicks, drag-and-dropmovements, and type operations on an object.
records a step for each interaction with an object.
-
7/27/2019 14_ObjRecogProbs
6/19
6
Performing Low-level Recording
-
7/27/2019 14_ObjRecogProbs
7/197
The Analog Recording Mode
-
7/27/2019 14_ObjRecogProbs
8/198
Performing Analog Recording
-
7/27/2019 14_ObjRecogProbs
9/199
Analog Recording in QuickTest
-
7/27/2019 14_ObjRecogProbs
10/1910
A Bitmap Checkpoint
A bitmap checkpoint checks an area of an application asa bitmap.
You use a bitmap checkpoint to compare an expectedimage to the actual image at run time, pixel by pixel.
Bitmap checkpoints are sensitive to changes in imageproperties, image size, and screen resolution.
-
7/27/2019 14_ObjRecogProbs
11/1911
Inserting a Bitmap Checkpoint
-
7/27/2019 14_ObjRecogProbs
12/1912
Test Results for a Bitmap Checkpoint
-
7/27/2019 14_ObjRecogProbs
13/1913
Virtual Objects
-
7/27/2019 14_ObjRecogProbs
14/1914
Creating a Virtual Object
-
7/27/2019 14_ObjRecogProbs
15/1915
Virtual Object Collection
-
7/27/2019 14_ObjRecogProbs
16/1916
Disabling Virtual Object Recognition
-
7/27/2019 14_ObjRecogProbs
17/19
17
Summary
In this chapter, you learned how to:
Describe the advantages of low-level and analogrecording.
Record a test by using low-level recording.
Record a test by using analog recording.
Create a bitmap checkpoint.
Describe the advantages of virtual objects.
Create virtual objects to solve playback issues.
-
7/27/2019 14_ObjRecogProbs
18/19
18
Review Questions
Now answer these review questions.
1. When do you use low-level recording to record a test?
2. When do you use analog recording to record a test?
3. How does a bitmap checkpoint work?
4. What is a virtual object?
-
7/27/2019 14_ObjRecogProbs
19/19
19
Exercise: Solving Object RecognitionProblems
Part 1: Record a test on Microsoft Paint using normal recording
Part 2: Identify the problems in the test
Part 3: Create a virtual object
Part 4: Perform analog recording
Part 5: Add a bitmap checkpoint