Published on

  • Be the first to comment

  • Be the first to like this

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

No notes for slide
  • Quick Test Professional was initially launched by Mercury Interactive and in 2007 the company was taken over by HP and hence is known as HP Quick test Professional.
  • Qtp

    1. 1. Quick Test Professional 9.2V QTP stands Quick Test Professional, an automated testing tool provided by HP/Mercury Interactive Presented By: Priya Sharma Trivedi
    2. 2. Technologies Supported Default Support 1. Standard Windows applications 2. Web objects / Applications 3. ActiveX controls 4. Visual Basic applications Additional QuickTest add-ins Support, 1. Java 2. Oracle 3. SAP Solutions, 4. .NET Windows 5. Web Forms, 6. Siebel, 7. PeopleSoft, 8. Web services, and terminal emulator applications. QTP At a Glance …..
    3. 3. Testing Process with QTP <ul><li>Quick Test Pro involves 3 main stages: </li></ul><ul><li>Creating Test scripts </li></ul><ul><li>Running Tests </li></ul><ul><li>Analyzing Test Results </li></ul>
    4. 4. Testing Process with QTP <ul><li>Creating Tests </li></ul><ul><li>Create a test script by recording a manual test scenario on the AUT (Application Under Test) using QTP. </li></ul><ul><li>Quick Test Pro graphically displays each step users perform in the form of a collapsible, icon based tree view in QTP’s Keyword View. </li></ul>
    5. 5. Testing Process with QTP <ul><li>Running Tests & Analyzing Test Results </li></ul><ul><li>Running Tests : </li></ul><ul><ul><li>Once the test scripts are recorded / created, next step is to execute them…While running (executing) the tests Quick Test Pro connects to the web site or AUT and performs each operation in the test as performed manually while recording / creating tests (test scripts)… </li></ul></ul><ul><li>Debugging Test : To identify and eliminate the defects in the test scripts. </li></ul><ul><li>Analyzing Test Results : </li></ul><ul><li>Once the test scripts are executed, test results and the summary can be viewed for result analysis. </li></ul>
    6. 6. Add-in Manager <ul><li>Default Add-ins </li></ul><ul><ul><li>ActiveX </li></ul></ul><ul><ul><li>Visual basic </li></ul></ul><ul><ul><li>Web </li></ul></ul><ul><li>Other Add-Ins </li></ul><ul><ul><li>Siebel </li></ul></ul><ul><ul><li>Java </li></ul></ul><ul><ul><li>SAP </li></ul></ul><ul><ul><li>Oracle </li></ul></ul><ul><ul><li>.Net and many more </li></ul></ul>
    7. 7. Add-in Manager Cont… <ul><li>QTP’s Add-in Manager facilitates the users to select the technology / environment from variety of environments suitable for the AUT (Application Under Test) </li></ul><ul><li>Once an add-in is loaded, users can record that application in its supported environment and thus QTP recognizes the objects specific to the application under test (AUT) as loaded through Add-in Manager. </li></ul><ul><li>It is critical for the users to know the development technologies / environment of AUT, and load right Add-Ins while invoking Quick Test Pro. </li></ul>
    8. 8. QTP 9.2 Basic Features <ul><li>The suitable platform to run QTP 9.2 is Windows XP operating system and IE 7.0. QTP 9.2 instructs that the scripts are to be recorded using IE 7.0 browser but you can play back them in other browsers but it is always advisable to work with IE 7.0 </li></ul><ul><li>Quick Test Professional or QTP 9.2 Basic Features </li></ul><ul><li>QTP 9.2 is Object Based Testing Tool, it identifies every thing on the application at an Object Level. </li></ul><ul><li>QTP 9.2 Tool is used for performing Functional and Regression Testing. </li></ul><ul><li>QTP 9.2 follows Keyword Driven Approach. </li></ul><ul><li>QTP 9.2 is compatible with Windows XP operating system. </li></ul><ul><li>QTP 9.2 supports Graphical user interface (GUI) and Web Based Applications for automation and it does not support Command user interface (CUI) applications. </li></ul><ul><li>QTP 9.2 uses Microsoft Visual Basic Scripting language for writing scripts and Excel for Data driven testing. </li></ul><ul><li>We can run SQL queries directly from QTP 9.2. </li></ul><ul><li>QTP 9.2 can be integrated with tools like WinRunner and Quality Center. </li></ul><ul><li>QTP 9.2 supports Internet Explorer but is IE 7.0 is most suited for recording but can be played back in other browsers. </li></ul><ul><li>QTP 9.2 is a Desktop Application (I-Tier/Stand alone). </li></ul><ul><li>QTP 9.2 comes with two types of Licenses 1. Seat or Node License: For only one system 2. Concurrent or float license: For multiple systems based on the license privilege. 3. Trial Version: QTP 9.2 trial version runs for 14 days. </li></ul>
    9. 9. First Look of QTP 9.2 <ul><li>As soon as you install Quick Test Professional 9.2 you can run the application either from the desktop on which a shortcut of the application is created or you can launch QTP 9.2 by going to Start Menu -> Programs -> Quick Test Professional and click on the menu item. </li></ul><ul><li>The window “Add in Manager” is opened. Since we are learning to use QTP 9.2 un check all the addins and click OK button. </li></ul>
    10. 10. Quick Test Professional - Record & Run Modes <ul><li>Recording Modes </li></ul><ul><ul><li>Normal </li></ul></ul><ul><ul><li>Analog </li></ul></ul><ul><ul><li>Low level </li></ul></ul><ul><li>Run Modes </li></ul><ul><ul><li>Normal </li></ul></ul><ul><ul><li>Fast </li></ul></ul><ul><ul><li>Update </li></ul></ul>
    11. 11. Quick Test Professional - Options  General <ul><li>Best Practices for General Options: </li></ul><ul><ul><li>Deselect all check boxes except “Save data for integrating with performance testing …” and “Display Add-in Manager on startup” which is default setting. </li></ul></ul><ul><ul><li>Click on “Restore Layout” button to reset screens to the initial setting when QuickTest was first installed. </li></ul></ul>
    12. 12. Quick Test Professional - Options  Run
    13. 13. Quick Test Professional - Options  Run <ul><li>Best Practices for Options for Run Mode: </li></ul><ul><ul><li>Run Mode as Normal: </li></ul></ul><ul><ul><ul><li>This ensures that the execution arrow appears to help with trouble shooting the tests. </li></ul></ul></ul><ul><ul><ul><li>Synchronization becomes better for the AUT (Application Under Test) </li></ul></ul></ul><ul><ul><li>Test Results: </li></ul></ul><ul><ul><ul><li>Deselect the option “View Results when run session ends” </li></ul></ul></ul><ul><ul><li>Mercury Tool Integration: </li></ul></ul><ul><ul><ul><li>Select &quot;Allow other Mercury products to run tests and components“ </li></ul></ul></ul><ul><ul><li>Screen Capture: </li></ul></ul><ul><ul><ul><li>Save step screen capture to results &quot;On error and warnings&quot; </li></ul></ul></ul>
    14. 14. Record and Run Settings
    15. 15. Record and Run Settings <ul><li>Best Practices for Record & Run Settings, </li></ul><ul><ul><li>Set the options to configure QTP to &quot;Record and run test on any open Windows- based application“ </li></ul></ul><ul><ul><li>Set the option - This window will appear the first time you click on the Record button in the new test. </li></ul></ul><ul><ul><li>Manually recall this window by selecting Test  Record and Run settings </li></ul></ul>
    16. 16. <ul><li>What are the default Add-ins in Add-in manager </li></ul><ul><li>a. Active x, Web, Visual Basic. </li></ul><ul><li>b. .Net, SAP, Oracle. </li></ul><ul><li>c. Siebel. </li></ul>Quick Quiz
    17. 17. QTP - Main Window
    18. 18. QTP - Main Window
    19. 19. QTP - Main Window <ul><li>Test Pane: </li></ul><ul><ul><li>Test Pane contains two labs to view the tests, </li></ul></ul><ul><li>- Keyword View </li></ul><ul><li>- Expert View </li></ul><ul><ul><li>Keyword View: </li></ul></ul><ul><ul><ul><li>Quick Test Pro displays your test in the form of a collapsible, icon based tree… </li></ul></ul></ul><ul><ul><li>Expert View: </li></ul></ul><ul><ul><ul><li>Quick Test Pro displays the source code (VB Script) of the tests in this view. </li></ul></ul></ul>
    20. 20. QTP - Main Window
    21. 21. QTP - Main Window <ul><li>Data Table : </li></ul><ul><li>Data table assists in Parameterizing the tests… </li></ul><ul><li>Debug Viewer Pane : </li></ul><ul><li>It assists in debugging tests with the help of </li></ul><ul><li>Watch Expressions, Variables, and Command. </li></ul>
    22. 22. Quick Test Pro Commands <ul><li>Quick Test Pro Commands : </li></ul><ul><li>The Quick Test Pro commands can be chosen from the menu bar or from a Tool bar. </li></ul><ul><li>File Tool bar : </li></ul><ul><li>File tool bar contains buttons for managing the test. </li></ul>
    23. 23. Quick Test Pro Commands <ul><li>Test Tool bar : </li></ul><ul><li>Test tool bar contains buttons for the commands used when creating or maintaining the tests… </li></ul>
    24. 24. Quick Test Pro Commands <ul><li>Debug Tool Bar : </li></ul><ul><li>It contains buttons for commands used when debugging the steps in the tests… </li></ul>
    25. 25. Quick Test Pro Commands <ul><li>Action Tool Bar : </li></ul><ul><li> To view all actions in the test flow or to view the details of a selected action… </li></ul>