Professional Documents
Culture Documents
QTP Training Day 2
QTP Training Day 2
Concepts
&
QTP At A Glance – Day 2
2. Assistive properties:
Quick Test adds assistive properties one by one to the description until it has
compiled a unique description…
3. Ordinal identifier:
If the combination of all defined mandatory and assistive properties is not
sufficient to create a unique test object description, Quickest also records the value
for the selected ordinal identifier.
4. Smart Identification:
A Smart Identification definition can help QuickTest identify an object, if it is
present, even when the recorded description fails due to changes in one or more
property values.
Test Object Model
How Quick Test Identifies objects during the test run?
Quick test searches for a run time object that exactly matches
the description of the test object from the object repository it
learned while recording…
Test Object Model
Test Object :
Test Object is an object that Quick Test creates in
the test to represent the actual object in the application…
- SetTOProperty
- GetTOProperty
Main phases of QTP testing Process
Preparing to record
Recording a session on the application
Executing the test
Enhancing your test
Debugging your test
Re-executing the tests on a new version of the
application
Analyzing the test results
Reporting defects
DEMO
• Please record a test and run the script.
• Analyze the test result.
Types of Checkpoints
(Verification Process)
Standard Checkpoint Checks values of an object’s properties Check that a radio button is
selected.
Image Checkpoint Checks the property values of Check that the image source file is
an image correct.
Table Checkpoint Checks information in a table Check that the value in a table cell
is correct.
Page checkpoint Checks the characteristics of a Web page Check how long a Web page takes
to load or if a Web page contains
broken links.
Text / Checks that a text string is displayed in the Check whether the expected text
Text Area Checkpoint appropriate place in a Web page or string is displayed in the expected
application window location on a Web page or dialog
box
Bitmap Checkpoint Checks an area of a Web page Check that a Web page (or any
or application after capturing portion of it) is displayed as
it as a bitmap expected.
Types of Checkpoints Cont…
Database Checkpoint Checks the contents of databases accessed by Check that the value in a database
an application or Web site query is correct.
Accessibility Checkpoint Identifies areas of a Web site Check if the images on a Web page
to check for Section 508 compliancy include ALT properties, required
by the W3C Web Content
Accessibility Guidelines.
XML Checkpoint Checks the data content of Note: XML file checkpoints are
XML documents used to check a specified XML file;
XML application checkpoints are
used to check an XML document
within a Web page.
Demo on using checkpoints