Quicktest Professional: For More QTP Scripts, Visit
Quicktest Professional: For More QTP Scripts, Visit
Quicktest Professional: For More QTP Scripts, Visit
www.ramupalanki.com
• Benefits
1. Preparing to record
– Test Environment
– Test Conditions
2. Recording a session on your application
– Navigate according to Test Conditions
3. Enhancing your test
– Adding logic and conditional statements
– Parameterization
– Inserting checkpoints
4. Debugging your test
– Check that it operates smoothly and without interruption.
12/08/21 For more QTP Scripts, visit
www.ramupalanki.com
QTP Testing Process
5. Run Test
– Check the behavior of your application
7. Reporting defects
Physical Description
Layer2
Applicati
on
Layer3
• Displays
• Object hierarchy tree
• Run-time object methods
or test object methods
Parameteriz
property’s
value
2. Analog Recording
– Record the exact mouse and keyboard operations you perform in relation to
either the screen or the application window.
3. Low-Level Recording
– Record on any object in your application, whether or not Quick Test
recognizes the specific object or the specific operation.
1. Parameterizing Test
2. Regular Expressions
3. Creating Checkpoints
4. Creating Output Values
5. Dividing Tests into Multiple Actions
Demo………………..
Click icon
• Check how long a Web page takes to load or if a Web page contains
broken links.
• Demo………
• Demo………….
• Demo………….
12/08/21 XMLFile("Poem.xsl").Check
For more QTP Scripts,CheckPoint("Poem.xsl_2")
visit
www.ramupalanki.com
Image Checkpoint
Window("Flight Reservation").WinEdit("Name:").Output
12/08/21 For more QTP Scripts, visit CheckPoint("Name:_3")
www.ramupalanki.com
Transactions
• You can measure how long it takes to run a section of your test by
defining transactions.
• User can Plan the Scenario as transaction and use the Start
Transaction and End Transaction while Recording.
Services.StartTransaction "Start"
Services.EndTransaction "Start"
• Usage :
1)We can design more modular and efficient tests.
2)Actions enable you to parameterize specific components of a
test
3)Two or more tests can call the same action
4)Complex tests may have many actions and may share actions
with
other tests.
• Example:
12/08/21 For more QTP Scripts, visit
www.ramupalanki.com
Actions
We can divide Test Script into multiple actions by creating
new actions or by inserting existing actions.
Kinds of actions:
• Non-Reusable Action : An action that can be used only in the
test in which it was created, and only once.
• Example:
Tree
View
Expert
View