QTP – Quick Test Professional – Quick Test Pro 5.0 6.0 7.5 8.0 8.2 9.0 QTP is used to test web pages it helps in Regression Testing, Functional Testing by recording and playback process QTP provides eight checkpoints 1. 2. 3. 4. 5. 6. 7. 8.
Property check Bitmap check Text checkpoint Text area checkpoint Database checkpoint XML Checkpoint XML File checkpoint XML Accessibility check
Note: By default QTP provides 3 Add-ins 1. 2. 3.
Active X Control Visual Basic Web Test
Additional add-ins can be downloaded from hp-mercury site (SAP / Java / .net / People Soft) Note: QTP Provides two type of views 1. 2.
Keyword View (Tree) Expert View (Code)
Working with QTP Tool (Practical Approach) 1. 2. 3.
Activate QTP Tool (Start Programs QTP QTP) Select the Add ins from the Add in manager and click on OK button Select Blank Test option to login into QTP Framework. QTP Displays (Keyword View, Expert View, Global Work sheet & Active Screen)
Keyword View: It provides the actions that are performed at the time of recording
Expert View: It provides an object orient approach script (TSL) based on the actions performed (VBScript can be written in Expert view) Global Worksheet: It helps in implementing Data Driven test and to parameterize the recorded script Active Screen: It provides the snapshot of actions performed on application under test / Web site Note: QTP can be used to test windows client server application or web applications 4.
Start Recording (F3)
Note: QTP Provides 3 modes of recording 1. Standard Recording 2. Analog Recording 3. Low level Recording
5. Select the option “Open the following browser when a record or run session begins” and provide the browser name from the drop down list and URL – Uniform / Universal Resource Locator and click on apply / OK button to start recording functional operation on web site 6. Perform functional operations on Web site by providing User name and password (jojo/bean) and click on sign in button, book the ticket by providing customer details and stop recording the functional operations (F4) Note: Analyze the recorded script and tree hierarchy in Keyword view and expert view, alter the script if required and playback to analyze the test results 7. Playback the recorded script (F5)