1 / 54

An Introduction to HP QuickTest Professional (QTP)

An Introduction to HP QuickTest Professional (QTP). >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<. Topics being Covered. Introduction to Automation Introduction to QTP and its Salient Features Environment Supported Creating and Enhancing a test suite

gazit
Download Presentation

An Introduction to HP QuickTest Professional (QTP)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. An Introduction to HP QuickTest Professional (QTP) >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  2. Topics being Covered Introduction to Automation Introduction to QTP and its Salient Features Environment Supported Creating and Enhancing a test suite Integration of QTP with Winrunner and Test director >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  3. Introduction to Automation >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  4. Why Testing tools? No Testing Manual Testing Automated Testing • - Speed • - Repeatability • - Programming capabilities • - Coverage • - Reliability • - Reusability • - Save Time • Time consuming • Low reliability • Human resources • Inconsistent >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  5. Which Test Cases to Automate? Tests that need to be run for every build of the application (sanity check, regression test) Tests that use multiple data values for the same actions (data driven tests) Stress/load testing Tests requiring a great deal of precision More repetitive execution! Better candidate for automation. REGRESSION TESTING >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  6. Leading Available Automation Tools >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  7. QTP – An Introduction Quick Test Professional is the flagship functional testing tool from Mercury Interactive. It is an icon based tool, which automates the functional & regression testing of an application. QTP is easier to use and implement for both technical & non technical testers in comparison to other functional testing tools available. Latest Available versions is QTP 10.0 >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  8. Salient Features Scripting Language is VBScript which is easy to use , understand and program even complex functionalities with ease.. Uses “Active Screen” technology to record scripts which aids the tester in referring to the screens object properties. Library files contains VBScript functions and subroutines that can be added to the test. Support Modern Development Environment. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  9. Environments Supported Basic Web Technologies HTML DHTML XML Browsers Netscape Internet Explorer AOL Advanced Web Technologies JavaScript Java ActiveX • Multimedia Technologies • Flash • RealAudio/Real Video • MS Media Player • ERP Solutions • mySAP.com • Siebel 2001 • Oracle • PeopleSoft • .NET • Win Forms • Web Forms • NET Control • Web Services • XML • WSDL >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  10. Custom C/S PowerBuilder Forte Delphi Centura Stingray SmallTalk Environments Not Supported ERP/CRM • Baan • PeopleSoft Windows • Siebel 5, 6 GUI Clients • Oracle GUI Forms By using Addin we can access some of these environments >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  11. The Main Screen Menu Bar File toolbar Test toolbar Test pane Object Action Screen >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  12. Important Toolbars Test toolbar: containing buttons to assist you in the testing process Debug toolbar:containing buttons to assist you in debugging your test Action toolbar: containing buttons and a list of actions, enabling you to view the details of an individual action or the entire test flow Test pane: containing two tabs to view your test—the Keyword View and the Expert View Test Details pane : containing the Active Screen Data Table: containing two or more tabs to assist you in parameterizing your test—Global and one tab for each Action >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  13. Test Object Model This is a large set of object types or classes that Quick Test uses to represent the objects in AUTs Properties Methods A test objectis an object that - represents the actual object - stores information about that object. A run-time objectis the actual object in the AUT. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  14. Test Object Model Test Object Run Time Object QTP Test Object Modeling Quick Test Professional maps the Run Time Object to a Test Object already present in its repository. Once recognized it can repeat all our actions. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  15. Objects You may have called your button as button1, but QTP recognizes it with the name Calculate HTML Code for the button CALCULATE <INPUT id=button1 type=button value=“Calculate” name= “button1” title="" LANGUAGE=javascript onclick="return button1_onclick()"> >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  16. Object Repository Object Repositories >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  17. Object Repository Object Repository acts as a translator between QTP script and the Operating System ( similar to GUI map concept in win runner). Types of Object Repositories Shared Object Repository Per Action Object Repository Object Repositories >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  18. Per Action vs Shared Object Repository Per Action Object Repository • Separate action repository for each action. • If an object description changes, you need to modify the object in every action repository using that object. • No need for any Object Repository administrator. • Preferred method if application won’t change during renovation • Default Object Repository. Preferable for novice QTP users. Shared Object Repository • can use the same shared object repository file for multiple tests. • If an object description changes, you only have to modify in the shared Object Repository – all tests will playback properly. • Requires Shared object repository creation and maintenance. • Crucial if application may change during renovation • Most commonly used across Automation projects. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  19. Record & Playback >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  20. To Record a Test Steps to follow: 1 Open Quick Test. 2 Open a test: To create a new test, click on New To open an existing test, click on Open 3 Click the Record button If you are recording for the first time the Record and Run Settings dialog box opens. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  21. Playback Sprint\zXC abcde >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  22. Keyword View 1. Actions bring in modularity 2. Iteration can be controlled. 3. Actions can be reused. • First nameis the name of the edit box. • Set is the method >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  23. Expert View The Expert View uses VBScript >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  24. Check Points in QTP A checkpoint verifies that expected information is displayed in your application while the test is running. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  25. Types of Check Points >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  26. Inserting Check Points Right Click the object and select Insert Checkpoint. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  27. Analyzing a Test with Check Points Checkpoint Failed Checkpoint Passed >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  28. Synchronization Points >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  29. What is a Synchronization Point? A synchronization point is a line in the test script that instructs QTP to wait for a certain response from the application during playback. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  30. Why Synchronize? Script Script AUT AUT Run script Run script Inputs data to AUT Inputs datato AUT Acceptsinput Acceptsinput Sends data to database server Attemptsnext step Sends data to database server Waits Script fails Waits for server; cannot continue Server processes data Waits Synchronization point Synchronization point Server returns results Client affirms transaction is complete Waits Continues Without synchronization point With synchronization point >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  31. How to Add Synchronization Points • Locate the lines in the script to insert the synchronization point • In Quick Test choose Insert > Step > Synchronization Point. The mouse pointer turns into a pointing hand. This should be done while recording. • Using the Hand Pointer click on the object to Synchronize. • Add Synchronization Point dialog box opens. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  32. How to Add Synchronization Points • Select the Property name and its corresponding value which you want to use for the synchronization point. • Enter the synchronization point timeout (in milliseconds) and Click OK. A Wait Property step is added to your test. For e.g for this case the step inserted in the script will be Dialog(“Login”).WaitProperty "enabled", 1, 10000 >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  33. Test Parameterization >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  34. How Long Does it Wait? TIME PARAMETER (test script) + Object synchronization timeout (Test Settings) = TOTAL TIME >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  35. Why Parameterization ? Parameterization allows us to pick different values at run time. Reduces Time and Effort. Usage of data drivers allow us to use the same data for various input boxes. Parameterization can also be done for checkpoints. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  36. Parameterization Continues 1. The hard coded values can be made to vary. 2. The values will be taken from the excel sheet. 3. Right click on the object name and select method arguments >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  37. Global and Action Data Sheets The Data Table contains two types of sheets: Global sheet: This enables you to share information from one action to another. Should be used for data drivers and Output Values. Action Sheet: Each action also has its own sheet in the Data Table so that you can insert data that applies only to that action. When there are parameters in a current action’s sheet, you can set Quick Test to run one or more iterations on that action before continuing with the current global iteration of the test. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  38. Output Values Used when the output for one action is to be used as an input for a subsequent action. This can be parameterized. Even labels can be used as output values. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  39. Analyzing Test Results >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  40. Test Results Window Test Results Tree Test Result Details Status Summary >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  41. Test Results • Test Results Tree - an icon-based view of the steps that were performed while the test was running. Similar to the test tree in Quick Test main screen • Iteration Summary – Provides the Status (pass/Fail) of each iteration individually. • Status Summary - Indicates the number of checkpoints or reports that passed, failed, and raised warnings during the test. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  42. Viewing Test Results Iteration Failed >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  43. Actions >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  44. Actions Actions can divide a test into several distinct business Processes. Each actions signifies a logical independent test. To divide a test into actions you can Insert a New Action Split an existing action into two Actions Insert a copy of an existing Action Insert a call to an existing Action In this way several actions can be integrated to each other within the test or across different tests logically. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  45. Creating Actions Click on the new Action Icon Enter the name of the new Action and assign its attributes >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  46. Types of Actions Reusable Action: Can be reused in the same test multiple times. Can be used in another test Read Only Parameter data can be from a local excel (Editable) original action sheet (Read Only) Nested Action: An action within an action. Helps maintain the modularity of your test Enables to run one action or another based on the results of a conditional statement >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  47. Copy of an Action A lightweight protocol for exchange of information in a decentralized, distributed environment. An XML notation for describing how messages are assembled and transmitted over HTTP between service consumers (clients) and service providers (servers) XML based protocol that consists of three parts: Envelope describes the contents of a message and how to process it, and contain extra details such as security information or the final destination of the message. Header is a generic mechanism for adding features to a SOAP message in a decentralized manner without prior agreement between the communicating parties. The Body is a container for mandatory information intended for the ultimate recipient of the message. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  48. Call to an Action Calls to actions are read-only in the calling test. They can only be modified in the test in which they were created. Enables you to use the same action in several tests and makes it easy to maintain tests. Can make calls to only “Reusable” actions. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  49. Integration of Winrunner, QTP & Test Director >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

  50. Why Integrate QTP ? With Win Runner Facilitates running Win Runner tests and call TSL functions in compiled modules with parameters by creating calls to Win Runner tests and functions. With Test Director (TD) TD, Mercury Interactive test management tool, can help you organize and control the testing process. It provides an intuitive and efficient method for scheduling and running tests, collecting test results, analyzing the results, and managing test versions. >>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

More Related