Document 262325

Www.h2kinfosys.com
How to INSERT CHECKPOINT in UFT Test Script
CHECKPOINT
A checkpoint is a step in the test that compares the actual value of a specified object property to an
expected value of the same property
Example:
- Verify text in status bar
Verify value in a grid
Verify bitmaps
The status of a checkpoint (passed or failed) is located in the Test Results Summary
-
Text Checkpoint - checks that a text string is displayed in the application
Text Area Checkpoint - checks that a string is displayed in the appropriate place in the application
Bitmap Checkpoint - checks an area of an application as a bitmap
Database Checkpoint - checks the contents of a database accessed by the application
XML Checkpoint - checks the data content of XML documents in XML files or XML documents in
Web pages and frames
Standard Checkpoint - checks the property value of an object in the application
Database Checkpoint - checks information within a table
Accessibility Checkpoint - identifies areas of a Web site that may not conform to the World Wide
Web Consortium
By Deepa
For H2KInfosys Students only!!
Www.h2kinfosys.com
How to INSERT CHECKPOINT in UFT Test Script
A DDING CHECKPOINT TO TEST
1. Open new test File - New - Test
Select - GUI Test
2. Add systemutil.run to Editor View and also add target path
Ex systemutil.run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
Note – Target path will be different for every machine/system.
3. Run Test (To Launch Application)
4. If you are in a Expert view (Editor)- Make sure you are on a new line.
5. Hit Record
6. Insert Checkpoint for window title “Login”
7. Design – Checkpoint - Standard Checkpoint
8. Click on window title “Login”
By Deepa
For H2KInfosys Students only!!
Www.h2kinfosys.com
How to INSERT CHECKPOINT in UFT Test Script
ABC Shows
value is
constant
Checkpoint
Timeout
Indicates that
particular property is
selected
Checkpoint Property Dialog Box
9.
10.
11.
12.
Hit Ok
Insert Checkpoint for Image
Design – Checkpoint - Bitmap Checkpoint
Click on Image
By Deepa
For H2KInfosys Students only!!
Www.h2kinfosys.com
How to INSERT CHECKPOINT in UFT Test Script
13. Provide Agent name and Password (test, mercury)
14. Hit ok
15. Insert Checkpoint for window title “Flight Reservation”
By Deepa
For H2KInfosys Students only!!
Www.h2kinfosys.com
16.
17.
18.
19.
20.
How to INSERT CHECKPOINT in UFT Test Script
Design – Checkpoint - Standard Checkpoint
Click on window title “Flight Reservation”
Hit ok
File – Exit
Stop Recording
File - Save GUITest1 as
HOW TO GET TARGET PATH
All programs- HP Software-HP Unified Functional Testing- Sample Application
- Flight GUI (Right Click to get properties)
- Copy Target Path
By Deepa
For H2KInfosys Students only!!
Www.h2kinfosys.com
How to INSERT CHECKPOINT in UFT Test Script
CHECKPOINT RESULT
Standard Checkpoint
Bitmap Checkpoint
By Deepa
For H2KInfosys Students only!!