Quick Test Professional
Quick Test Process <ul><li>Quick Test testing process consists of 7 main phases </li></ul><ul><li>Preparing to record </li...
<ul><li>Enhancing your test </li></ul><ul><ul><li>Adding logic and conditional statements </li></ul></ul><ul><ul><li>Param...
<ul><li>Run Test  </li></ul><ul><ul><li>Check the behavior of your application </li></ul></ul><ul><li>Analyzing the test r...
QTP Layered Architecture <ul><li>Logical name </li></ul><ul><li>Physical Description </li></ul><ul><li>Application </li></...
QTP  High-level features <ul><li>Object Repository </li></ul><ul><li>Object Spy </li></ul><ul><li>Keyword View </li></ul><...
Add ins <ul><li>Default Add ins </li></ul><ul><ul><li>ActiveX </li></ul></ul><ul><ul><li>Multimedia </li></ul></ul><ul><ul...
Recording Modes <ul><li>Normal recording </li></ul><ul><ul><li>Records the objects in your application and the operations ...
<ul><li>Analog Recording </li></ul><ul><ul><li>Record the exact mouse and keyboard operations you perform in relation to e...
<ul><li>Low-Level Recording </li></ul><ul><ul><li>Record on any object in your application, whether or not Quick Test reco...
Record and Playback <ul><li>Advantages  </li></ul><ul><li>Useful in determining how the QTP interacts with the application...
<ul><li>Disadvantages   </li></ul><ul><li>Test scripts contains hard-coded values. </li></ul><ul><li>This is not a viable ...
Object Repository <ul><li>Interface between QTP Script and the Application </li></ul><ul><li>Contains Logical Name and phy...
Object Spy <ul><li>It is used to view object properties and Methods </li></ul><ul><li>Displays  </li></ul><ul><ul><li>Obje...
Active Screen, Keyword View, Expert View, Data Tables
Object Identification
Data Driven Approach
Enhancing Tests <ul><li>Parameterizing Tests </li></ul><ul><li>Creating Output Values </li></ul><ul><li>Creating Checkpoin...
Parameterizing Tests   <ul><li>Steps for Parameterization  </li></ul><ul><li>Defining a Data Table Parameter </li></ul><ul...
Demo………….. <ul><li>How to provide the data to the respective Parameter through Expert View </li></ul>
Results <ul><li>After running a test, we can view a report of major events that occurred during the test run. </li></ul><u...
Virtual Objects <ul><li>QTP teaches to recognize a bitmap area as a standard object except edit.  </li></ul>
Checkpoints <ul><li>Used to check the current behavior  of the application with the expected behavior. </li></ul><ul><li>T...
Synchronization  Point <ul><li>Synchronization  point is used to solve anticipated timings problems between QTP script and...
Creating Output Values <ul><li>This is just reverse to the Parameterization, In this case QTP takes the data from the appl...
QTP Advanced
Actions (1) <ul><li>Actions help to divide Test Script into logical units </li></ul><ul><li>Usage : </li></ul><ul><ul><li>...
Actions (2) <ul><li>We can divide Test Script into multiple actions by creating </li></ul><ul><li>new actions or by insert...
Transactions <ul><li>A transaction represents the business process that you are interested in measuring </li></ul><ul><li>...
Object Repository <ul><li>All object related information is stored  </li></ul><ul><li>Different from Win Runner (text file...
Test Object Model <ul><li>Set of object types or classes ( WebEdit, WebList, WebTable) </li></ul><ul><li>Each object has a...
Test Object Model (Test Object Properties)
Configuring  Web Event Recording <ul><li>Basic </li></ul><ul><ul><li>Records standard events, submit events on the forms,c...
Test Configuration <ul><li>Tools-> Options </li></ul><ul><li>Test -> Settings </li></ul><ul><li>Test-> Record and Run Sett...
Debugging Tests <ul><li>Using Step Commands </li></ul><ul><li>Pausing Test Runs </li></ul><ul><li>Setting /Removing Breakp...
Recovery Manager <ul><li>Defining Recovery Scenarios </li></ul><ul><ul><li>Trigger Event </li></ul></ul><ul><ul><ul><li>Th...
Create a Recovery Scenario <ul><li>Define Trigger Event,Recovery Operation,Post Recovery option </li></ul><ul><li>Add to t...
User Defined Functions <ul><li>Working with User Defined Functions </li></ul><ul><li>Working with Associated Library Files...
Integration with WinRunner  <ul><li>By this we will execute WinRunner script from the QuickTest  </li></ul><ul><ul><li>Cal...
Integration with Test Director <ul><li>By this integration we will store Test Case in to Test Director and execute remotel...
Q & A
Upcoming SlideShare
Loading in …5
×

Qtp Training

7,410 views

Published on

Published in: Business, Technology

Qtp Training

  1. 1. Quick Test Professional
  2. 2. Quick Test Process <ul><li>Quick Test testing process consists of 7 main phases </li></ul><ul><li>Preparing to record </li></ul><ul><ul><li>Test Environment </li></ul></ul><ul><ul><li>Test Conditions </li></ul></ul><ul><li>Recording a session on your application </li></ul><ul><ul><li>Navigate according to Test Conditions </li></ul></ul>
  3. 3. <ul><li>Enhancing your test </li></ul><ul><ul><li>Adding logic and conditional statements </li></ul></ul><ul><ul><li>Parameterization </li></ul></ul><ul><ul><li>Inserting checkpoints </li></ul></ul><ul><li>Debugging your test </li></ul><ul><ul><li>Check that it operates smoothly and without interruption . </li></ul></ul>
  4. 4. <ul><li>Run Test </li></ul><ul><ul><li>Check the behavior of your application </li></ul></ul><ul><li>Analyzing the test results </li></ul><ul><li>Reporting defects </li></ul>
  5. 5. QTP Layered Architecture <ul><li>Logical name </li></ul><ul><li>Physical Description </li></ul><ul><li>Application </li></ul><ul><li>Layer1 </li></ul><ul><li>Layer2 </li></ul><ul><li>Layer3 </li></ul>
  6. 6. QTP High-level features <ul><li>Object Repository </li></ul><ul><li>Object Spy </li></ul><ul><li>Keyword View </li></ul><ul><li>Expert View </li></ul><ul><li>Active Screen Technology </li></ul><ul><li>Data Tables (Global, Local) </li></ul><ul><li>Object Identification </li></ul><ul><li>Recovery </li></ul><ul><li>Various Add ins </li></ul>
  7. 7. Add ins <ul><li>Default Add ins </li></ul><ul><ul><li>ActiveX </li></ul></ul><ul><ul><li>Multimedia </li></ul></ul><ul><ul><li>Visual Basic </li></ul></ul><ul><ul><li>Web </li></ul></ul><ul><li>Available Add ins </li></ul><ul><ul><li>Java </li></ul></ul><ul><ul><li>.Net </li></ul></ul><ul><ul><li>etc.. </li></ul></ul>
  8. 8. Recording Modes <ul><li>Normal recording </li></ul><ul><ul><li>Records the objects in your application and the operations performed on them. This mode is the default and takes full advantage of Quick Test’s test object model. </li></ul></ul>
  9. 9. <ul><li>Analog Recording </li></ul><ul><ul><li>Record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. </li></ul></ul>Recording Modes
  10. 10. <ul><li>Low-Level Recording </li></ul><ul><ul><li>Record on any object in your application, whether or not Quick Test recognizes the specific object or the specific operation. </li></ul></ul>Recording Modes
  11. 11. Record and Playback <ul><li>Advantages </li></ul><ul><li>Useful in determining how the QTP interacts with the application under test. </li></ul><ul><li>Provides initial ideas on how to develop test scripts. </li></ul><ul><li>Useful while ‘Playing around’ with the tool </li></ul>
  12. 12. <ul><li>Disadvantages </li></ul><ul><li>Test scripts contains hard-coded values. </li></ul><ul><li>This is not a viable cost-effective test automation approach for long term. </li></ul>Record and Playback
  13. 13. Object Repository <ul><li>Interface between QTP Script and the Application </li></ul><ul><li>Contains Logical Name and physical Description </li></ul>Locate object in repository Find data-dependant property <ul><li>Parameterize </li></ul><ul><li>property’s </li></ul><ul><li>value </li></ul>
  14. 14. Object Spy <ul><li>It is used to view object properties and Methods </li></ul><ul><li>Displays </li></ul><ul><ul><li>Object hierarchy tree </li></ul></ul><ul><ul><li>Run-time object methods </li></ul></ul><ul><ul><li>or test object methods </li></ul></ul>
  15. 15. Active Screen, Keyword View, Expert View, Data Tables
  16. 16. Object Identification
  17. 17. Data Driven Approach
  18. 18. Enhancing Tests <ul><li>Parameterizing Tests </li></ul><ul><li>Creating Output Values </li></ul><ul><li>Creating Checkpoints </li></ul><ul><li>Dividing Tests into Multiple Actions </li></ul><ul><li>Inserting Transactions. </li></ul><ul><li>Calling External Files. </li></ul>
  19. 19. Parameterizing Tests <ul><li>Steps for Parameterization </li></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>Demo………………..
  20. 20. Demo………….. <ul><li>How to provide the data to the respective Parameter through Expert View </li></ul>
  21. 21. Results <ul><li>After running a test, we can view a report of major events that occurred during the test run. </li></ul><ul><li>The Test Results window contains a description of the steps performed during the test run. </li></ul><ul><li>If the test contains Data Table parameters, and the test settings it shows on Test Results window. </li></ul><ul><li>Results are grouped by the actions in the test. </li></ul>
  22. 22. Virtual Objects <ul><li>QTP teaches to recognize a bitmap area as a standard object except edit. </li></ul>
  23. 23. Checkpoints <ul><li>Used to check the current behavior of the application with the expected behavior. </li></ul><ul><li>Text /Text Area Checkpoint </li></ul><ul><li>Standard Checkpoint </li></ul><ul><li>Table Checkpoint </li></ul><ul><li>Page checkpoint </li></ul><ul><li>Database Checkpoint </li></ul><ul><li>Image Checkpoint </li></ul><ul><li>Accessibility Checkpoint </li></ul><ul><li>Bitmap Checkpoint </li></ul><ul><li>XML Checkpoint </li></ul>
  24. 24. Synchronization Point <ul><li>Synchronization point is used to solve anticipated timings problems between QTP script and the application. </li></ul><ul><li>Why synchronize </li></ul><ul><ul><li>Waiting for a Message box to appear </li></ul></ul><ul><ul><li>Wait for a object status </li></ul></ul><ul><ul><li>Wait for the page to load </li></ul></ul><ul><li>Methods </li></ul><ul><ul><li>Sync </li></ul></ul><ul><ul><li>Exist </li></ul></ul><ul><ul><li>WaitProperty </li></ul></ul><ul><ul><li>Wait </li></ul></ul>
  25. 25. Creating Output Values <ul><li>This is just reverse to the Parameterization, In this case QTP takes the data from the application and displays the same in the Data Table. </li></ul>
  26. 26. QTP Advanced
  27. 27. Actions (1) <ul><li>Actions help to divide Test Script into logical units </li></ul><ul><li>Usage : </li></ul><ul><ul><li>1)We can design more modular and efficient tests. </li></ul></ul><ul><li> 2)Actions enable you to parameterize specific components </li></ul><ul><li>of a test </li></ul><ul><li> 3)Two or more tests can call the same action </li></ul><ul><li> 4)Complex tests may have many actions and may share </li></ul><ul><li>actions with other tests. </li></ul><ul><li>Example: </li></ul>
  28. 28. Actions (2) <ul><li>We can divide Test Script into multiple actions by creating </li></ul><ul><li>new actions or by inserting existing actions. </li></ul><ul><li>Actions Classification: </li></ul><ul><li>Non-Reusable Action : An action that can be used only in the test in which it was created </li></ul><ul><li>Reusable Action : An action that can be called multiple times by the test in which it was created (the local test) as well as by other tests. </li></ul><ul><li>External Action : A reusable action created in another test. External actions are read-only in the calling test. They can be modified only in the test in which they were created. </li></ul>
  29. 29. Transactions <ul><li>A transaction represents the business process that you are interested in measuring </li></ul><ul><li>You can measure how long it takes to run a section of your test by defining transactions . </li></ul><ul><li>User can Plan the Scenario as transaction and use the Start Transaction and End Transaction while Recording. </li></ul>
  30. 30. Object Repository <ul><li>All object related information is stored </li></ul><ul><li>Different from Win Runner (text file) , QTP its binary file </li></ul><ul><li>Type </li></ul><ul><ul><li>Shared (.tsr) </li></ul></ul><ul><ul><li>Per action (.mtr) </li></ul></ul><ul><li>Managing Objects </li></ul><ul><ul><li>Change a test object property value </li></ul></ul><ul><ul><li>SetTOProperty </li></ul></ul><ul><ul><li>Add properties </li></ul></ul><ul><ul><li>Parameterize a object property with Data table </li></ul></ul><ul><ul><li>Regular expressions </li></ul></ul>
  31. 31. Test Object Model <ul><li>Set of object types or classes ( WebEdit, WebList, WebTable) </li></ul><ul><li>Each object has associated properties and methods. </li></ul><ul><li>Recorded properties will help tool to uniquely identify objects </li></ul><ul><ul><li>Mandatory properties </li></ul></ul><ul><ul><li>Assistive properties </li></ul></ul><ul><ul><li>Ordinal identifier </li></ul></ul><ul><ul><ul><li>Index or location </li></ul></ul></ul><ul><li>Record vs. Replay </li></ul><ul><ul><li>Test Object vs. Runtime – Object </li></ul></ul><ul><ul><li>Quick Test vs. Object Creator (Microsoft Explorer,Netscape) </li></ul></ul><ul><li>Methods </li></ul><ul><ul><li>GetTOProperty, SetTOProperty </li></ul></ul><ul><ul><li>GetROProperty </li></ul></ul>
  32. 32. Test Object Model (Test Object Properties)
  33. 33. Configuring Web Event Recording <ul><li>Basic </li></ul><ul><ul><li>Records standard events, submit events on the forms,click events (handler or behavior) </li></ul></ul><ul><li>Medium </li></ul><ul><ul><li>Records click event on the <DIV><SPAN> and <TD> html tag objects, apart from the basic </li></ul></ul><ul><li>High </li></ul><ul><ul><li>Records mouseover,mousedown and double-click events with handler </li></ul></ul>
  34. 34. Test Configuration <ul><li>Tools-> Options </li></ul><ul><li>Test -> Settings </li></ul><ul><li>Test-> Record and Run Settings </li></ul><ul><li>Setting(testing_option) = new_value </li></ul><ul><li>new_value = Setting(testing_option) </li></ul>
  35. 35. Debugging Tests <ul><li>Using Step Commands </li></ul><ul><li>Pausing Test Runs </li></ul><ul><li>Setting /Removing Breakpoints </li></ul><ul><li>Using Debug Viewer </li></ul>
  36. 36. Recovery Manager <ul><li>Defining Recovery Scenarios </li></ul><ul><ul><li>Trigger Event </li></ul></ul><ul><ul><ul><li>The event that interrupts your test run, for e.g a window pops up </li></ul></ul></ul><ul><ul><li>Recovery Operation </li></ul></ul><ul><ul><ul><li>The operation that needs to be performed to continue the test for e.g clicking “Yes” button? </li></ul></ul></ul><ul><ul><li>Post Recovery Test Run options </li></ul></ul><ul><ul><ul><li>What would be your next step? </li></ul></ul></ul>
  37. 37. Create a Recovery Scenario <ul><li>Define Trigger Event,Recovery Operation,Post Recovery option </li></ul><ul><li>Add to the test, using the scenario tab of Test->Settings </li></ul><ul><li>Programmatically Enabling, disabling Recovery Scenarios </li></ul><ul><ul><li>Recovery.enabled = true </li></ul></ul><ul><ul><li>Recovery.enabled = false </li></ul></ul>
  38. 38. User Defined Functions <ul><li>Working with User Defined Functions </li></ul><ul><li>Working with Associated Library Files </li></ul><ul><ul><li>Test ->Settings-> Resources </li></ul></ul><ul><li>Executing externally-defined functions </li></ul><ul><ul><li>Executefilename <path> </li></ul></ul>
  39. 39. Integration with WinRunner <ul><li>By this we will execute WinRunner script from the QuickTest </li></ul><ul><ul><li>Call to WinRunner test </li></ul></ul><ul><ul><li>Call to WinRunner Function </li></ul></ul>
  40. 40. Integration with Test Director <ul><li>By this integration we will store Test Case in to Test Director and execute remotely. </li></ul>
  41. 41. Q & A

×