Qtp Training Deepti 2 Of 44780


Published on

Published in: Technology, News & Politics
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Qtp Training Deepti 2 Of 44780

  1. 1. <ul><ul><ul><li>Automation Fundamental Concepts </li></ul></ul></ul><ul><ul><ul><li>& </li></ul></ul></ul><ul><ul><ul><li>QTP At A Glance – Day 2 </li></ul></ul></ul><ul><li>Prepared By : Kolhar IR (Shiva) </li></ul><ul><li>Created On : 27-09-2005 </li></ul>
  2. 2. Summary of Day 1 (Revision) <ul><li>Summary of Day 1 from Attendees </li></ul><ul><li>Summary by Deepti about Day 1 training </li></ul><ul><li>Agenda for Day 2 </li></ul>
  3. 3. Working with Test Objects in QTP <ul><li>Test Object Model Conceptualization </li></ul><ul><li>Applying the Test Object Model Concept </li></ul><ul><li>Viewing Object properties Using Object Spy </li></ul><ul><li>Demo on Test Object Model features of QTP </li></ul>
  4. 4. Test Object Model Cont… <ul><li>How Quick test Pro learns objects in application ? </li></ul><ul><li>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, </li></ul><ul><li>Mandatory properties </li></ul><ul><li>Assistive properties.. </li></ul><ul><li>Ordinal identifier…… </li></ul><ul><li>Smart Identification.. </li></ul>
  5. 5. Test Object Model Cont… <ul><li>Mandatory properties: </li></ul><ul><li>For each Test Object class, Quick Test has list of mandatory properties… </li></ul><ul><li>Assistive properties: </li></ul><ul><li>Quick Test adds assistive properties one by one to the description until it has compiled a unique description… </li></ul><ul><li>Ordinal identifier: </li></ul><ul><li>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. </li></ul><ul><li>Smart Identification: </li></ul><ul><li>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. </li></ul>
  6. 6. Test Object Model <ul><li>How Quick Test Identifies objects during the test run? </li></ul><ul><li>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… </li></ul>
  7. 7. Test Object Model <ul><li>Test Object : </li></ul><ul><li> Test Object is an object that Quick Test creates in the test to represent the actual object in the application… </li></ul><ul><li>Run Time Object : </li></ul><ul><li>It is the actual object in the web site or application on which methods are performed during the test run.. </li></ul>
  8. 8. Test Object Model <ul><li>Viewing object properties by Object Spy : </li></ul><ul><li>Using the object spy, users can view the properties of any object in an open application… </li></ul>
  9. 9. Test Object Model <ul><li>Viewing object methods and methods syntax using object spy… </li></ul><ul><li>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… </li></ul>
  10. 10. Test Object Model
  11. 11. Managing Test objects <ul><li>Object Repository Dialog box : </li></ul><ul><li>- Per Action Mode </li></ul><ul><li> - Shared Action Mode </li></ul>
  12. 12. Managing Test objects <ul><li>Identifying the Object : </li></ul><ul><li> - Logical Name </li></ul><ul><li> - Class </li></ul><ul><li>Viewing the Objects Property : </li></ul><ul><ul><li>Type - Constant, Data table property ,variable parameter. </li></ul></ul><ul><ul><li>Property - Name of the Property </li></ul></ul><ul><ul><li>Value - The value of the property </li></ul></ul><ul><ul><li>- Smart Identifier </li></ul></ul><ul><ul><li>- Add/ Remove </li></ul></ul>
  13. 13. Managing Test Objects <ul><li>Adding or Viewing New objects : </li></ul><ul><li>- Add New Objects </li></ul><ul><li> - Object spy </li></ul><ul><li>- 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… </li></ul><ul><li>- Modify the Test object properties </li></ul><ul><li>- Finding the Test object properties </li></ul><ul><li>- Modifying the Logical Names </li></ul>
  14. 14. Managing Test Objects <ul><li>Object Properties Modification </li></ul><ul><li>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 </li></ul><ul><li>- SetTOProperty </li></ul><ul><li>- GetTOProperty </li></ul>
  15. 15. Main phases of QTP testing Process <ul><li>Preparing to record </li></ul><ul><li>Recording a session on the application </li></ul><ul><li>Executing the test </li></ul><ul><li>Enhancing your test </li></ul><ul><li>Debugging your test </li></ul><ul><li>Re-executing the tests on a new version of the application </li></ul><ul><li>Analyzing the test results </li></ul><ul><li>Reporting defects </li></ul>
  16. 16. <ul><li>Please record a test and run the script. </li></ul><ul><li>Analyze the test result. </li></ul>DEMO
  17. 18. Types of Checkpoints (Verification Process) Check that a Web page (or any portion of it) is displayed as expected. Checks an area of a Web page or application after capturing it as a bitmap Bitmap Checkpoint Check whether the expected text string is displayed in the expected location on a Web page or dialog box Checks that a text string is displayed in the appropriate place in a Web page or application window Text / Text Area Checkpoint Check how long a Web page takes to load or if a Web page contains broken links. Checks the characteristics of a Web page Page checkpoint Check that the value in a table cell is correct. Checks information in a table Table Checkpoint Check that the image source file is correct. Checks the property values of an image Image Checkpoint Check that a radio button is selected. Checks values of an object’s properties Standard Checkpoint
  18. 19. Types of Checkpoints Cont… 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. Checks the data content of XML documents XML Checkpoint Check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines. Identifies areas of a Web site to check for Section 508 compliancy Accessibility Checkpoint Check that the value in a database query is correct. Checks the contents of databases accessed by an application or Web site Database Checkpoint
  19. 20. Demo on using checkpoints <ul><li>Apply different types of checkpoints to the recorded test. </li></ul><ul><li>Analyze the test results </li></ul>
  20. 21. Parameterising Tests <ul><li>Different Types of Parameters </li></ul><ul><ul><li>Test & Action Parameters </li></ul></ul><ul><ul><li>Data Table </li></ul></ul><ul><ul><li>Environment Variable </li></ul></ul><ul><li>Defining a Data Table Parameter </li></ul><ul><li>Adding Parameter Values to a Data Table </li></ul><ul><li>Modifying Steps Affected by Parameterization </li></ul><ul><li>Running and Analyzing a Parameterized Test </li></ul>
  21. 22. Creating Output Values <ul><li>Creating an Output Value </li></ul><ul><li>Running and Analyzing a Test with Output Values </li></ul>
  22. 23. Using Regular Expressions <ul><li>Regular Expression Syntax </li></ul><ul><li>Working with Regular Expressions </li></ul><ul><li>Running and Analyzing a Test with Regular Expressions </li></ul>
  23. 24. Dividing Tests into Multiple Actions <ul><li>Working with Multiple Actions </li></ul><ul><li>Creating New Actions </li></ul><ul><li>Inserting Existing Actions </li></ul><ul><li>Parameterizing an Action </li></ul><ul><li>Running and Analyzing a Multi-action Test </li></ul><ul><li>Different Types of Actions </li></ul>
  24. 25. Recovery Scenarios <ul><li>Defining Recovery Scenarios </li></ul><ul><li>Creating a Recovery File </li></ul><ul><li>Understanding the Recovery Scenario Manager Dialog Box </li></ul><ul><li>Understanding the Recovery Scenario Wizard </li></ul><ul><li>Welcome to the Recovery Scenario Wizard Screen </li></ul>
  25. 26. Recovery Scenario <ul><li>Welcome to the Recovery Scenario Wizard Screen </li></ul><ul><li>Select Trigger Event Screen </li></ul><ul><li>Specify Pop-up Window Conditions Screen </li></ul><ul><li>Select Object Screen </li></ul><ul><li>Set Object Properties and Values Screen </li></ul><ul><li>Select Test Run Error Screen </li></ul>
  26. 27. Recovery Scenario <ul><li>Select Processes Screen </li></ul><ul><li>Recovery Operations Screen </li></ul><ul><li>Recovery Operation Screen </li></ul><ul><li>Recovery Operation – Click Button or Press Key Screen </li></ul><ul><li>Recovery Operation – Close Processes Screen </li></ul><ul><li>Recovery Operation – Function Call Screen </li></ul>
  27. 28. Recovery Scenario <ul><li>Post-Recovery Test Run Options Screen </li></ul><ul><li>Name and Description Screen </li></ul><ul><li>Completing the Recovery Scenario Wizard Screen </li></ul><ul><li>Saving the Recovery Scenario in a Recovery File </li></ul><ul><li>Managing Recovery Scenarios </li></ul>
  28. 29. Thank You