qtp training deepti 2 of 44780
DESCRIPTION
TRANSCRIPT
![Page 1: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/1.jpg)
© 2004 Hewlett-Packard Development Company, L.P.The information contained herein is subject to change without notice
Automation Fundamental Concepts
&
QTP At A Glance – Day 2
• Prepared By : Kolhar IR (Shiva)• Created On : 27-09-2005
![Page 2: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/2.jpg)
Summary of Day 1 (Revision)
• Summary of Day 1 from Attendees• Summary by Deepti about Day 1 training• Agenda for Day 2
![Page 3: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/3.jpg)
Working with Test Objects in QTP
Test Object Model Conceptualization
Applying the Test Object Model Concept
Viewing Object properties Using Object Spy
Demo on Test Object Model features of QTP
![Page 4: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/4.jpg)
Test Object Model Cont…
How Quick test Pro learns objects in application ?
Quick Test first looks at the object on which user is recording and stores it as a test object & then determines which test object class it fits into by,
1. Mandatory properties
2. Assistive properties..
3. Ordinal identifier……
4. Smart Identification..
![Page 5: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/5.jpg)
Test Object Model Cont…1. Mandatory properties:
For each Test Object class, Quick Test has list of mandatory properties…
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.
![Page 6: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/6.jpg)
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…
![Page 7: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/7.jpg)
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…
Run Time Object :
It is the actual object in the web site or application on which methods are performed during the test run..
![Page 8: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/8.jpg)
Test Object Model Viewing object properties by Object Spy :
Using the object spy, users can view the properties of any object in an open application…
![Page 9: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/9.jpg)
Test Object Model
Viewing object methods and methods syntax using object spy…
Object Spy enables users to view both the run time object methods, the test object methods associated with an object and to view the syntax for a selected method…
![Page 10: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/10.jpg)
Test Object Model
![Page 11: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/11.jpg)
Managing Test objects Object Repository Dialog box :
- Per Action Mode
- Shared Action Mode
![Page 12: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/12.jpg)
Managing Test objectsIdentifying the Object :
- Logical Name
- Class
Viewing the Objects Property :
Type - Constant, Data table property ,variable parameter.
Property - Name of the PropertyValue - The value of the property - Smart Identifier - Add/ Remove
![Page 13: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/13.jpg)
Managing Test Objects Adding or Viewing New objects :
- Add New Objects
- Object spy
- Saves all the object properties and values from a per action object repository to a separate file for use as a shared object repository in another test…
- Modify the Test object properties
- Finding the Test object properties
- Modifying the Logical Names
![Page 14: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/14.jpg)
Managing Test Objects
Object Properties Modification Users can modify the properties of the temporary
version of the object during the test run with out affecting the permanent values in the object repository
- SetTOProperty
- GetTOProperty
![Page 15: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/15.jpg)
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
![Page 16: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/16.jpg)
• Please record a test and run the script.• Analyze the test result.
DEMO
![Page 17: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/17.jpg)
![Page 18: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/18.jpg)
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 an image
Check that the image source file is 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 / Text Area Checkpoint
Checks that a text string is displayed in the appropriate place in a Web page or application window
Check whether the expected text string is displayed in the expected location on a Web page or dialog box
Bitmap Checkpoint Checks an area of a Web page or application after capturing it as a bitmap
Check that a Web page (or any portion of it) is displayed as expected.
![Page 19: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/19.jpg)
Types of Checkpoints Cont…Database Checkpoint
Checks the contents of databases accessed by an application or Web site
Check that the value in a database query is correct.
Accessibility Checkpoint
Identifies areas of a Web site to check for Section 508 compliancy
Check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines.
XML Checkpoint Checks the data content of XML documents
Note: XML file checkpoints are used to check a specified XML file; XML application checkpoints are used to check an XML document within a Web page.
![Page 20: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/20.jpg)
Demo on using checkpoints
Apply different types of checkpoints to the recorded test.
Analyze the test results
![Page 21: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/21.jpg)
Parameterising Tests• Different Types of Parameters − Test & Action Parameters− Data Table− Environment Variable
• Defining a Data Table Parameter• Adding Parameter Values to a Data Table• Modifying Steps Affected by Parameterization• Running and Analyzing a Parameterized Test
![Page 22: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/22.jpg)
Creating Output Values
• Creating an Output Value • Running and Analyzing a Test with Output
Values
![Page 23: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/23.jpg)
Using Regular Expressions
• Regular Expression Syntax • Working with Regular Expressions • Running and Analyzing a Test with Regular
Expressions
![Page 24: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/24.jpg)
Dividing Tests into Multiple Actions
• Working with Multiple Actions • Creating New Actions • Inserting Existing Actions • Parameterizing an Action • Running and Analyzing a Multi-action Test • Different Types of Actions
![Page 25: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/25.jpg)
Recovery Scenarios
• Defining Recovery Scenarios • Creating a Recovery File • Understanding the Recovery Scenario
Manager Dialog Box • Understanding the Recovery Scenario
Wizard • Welcome to the Recovery Scenario Wizard
Screen
![Page 26: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/26.jpg)
Recovery Scenario
• Welcome to the Recovery Scenario Wizard Screen
• Select Trigger Event Screen • Specify Pop-up Window Conditions Screen • Select Object Screen • Set Object Properties and Values Screen • Select Test Run Error Screen
![Page 27: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/27.jpg)
Recovery Scenario
• Select Processes Screen • Recovery Operations Screen • Recovery Operation Screen • Recovery Operation – Click Button or Press
Key Screen • Recovery Operation – Close Processes
Screen • Recovery Operation – Function Call Screen
![Page 28: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/28.jpg)
Recovery Scenario
• Post-Recovery Test Run Options Screen • Name and Description Screen • Completing the Recovery Scenario Wizard
Screen • Saving the Recovery Scenario in a
Recovery File • Managing Recovery Scenarios
![Page 29: Qtp Training Deepti 2 Of 44780](https://reader033.vdocuments.site/reader033/viewer/2022061114/5462a941b1af9f71408b522e/html5/thumbnails/29.jpg)
Thank You