Introduction to QTP

QuickTest Professional, the Mercury advanced keyword-driven testing solution enables you to test standard Windows applications, Web objects, ActiveX controls, and Visual Basic applications. You can also acquire additional QuickTest add-ins for a number of special environments (such as Java, Oracle, SAP Solutions, .NET Windows and Web Forms, Siebel, PeopleSoft, Web services, and terminal emulator applications).
QuickTest Window
The QuickTest window contains the following key elements:
QuickTest title bar—Displays the name of the currently open test or component.
Menu bar—Displays menus of QuickTest commands.
File toolbar—Contains buttons to assist you in managing your test or component.
Testing toolbar—Contains buttons to assist you in the testing process.
Debug toolbar—Contains buttons to assist you in debugging your test or component (not displayed by default).
Action toolbar—Contains buttons and a list of actions, enabling you to view the details of an individual action or the entire test flow.
Test pane—Contains the Keyword View and Expert View tabs.
Active Screen—Provides a snapshot of your application as it appeared when you performed a certain step during the recording session.
Data Table—Assists you in parameterizing your test or component. For a test, the Data Table contains the Global tab and a tab for each action. For a component, the Data Table contains single tab.
Debug Viewer pane—Assists you in debugging your test or component. The Debug Viewer pane contains the Watch Expressions, Variables, and Command tabs (not displayed by default).
Status bar—Displays the status of the QuickTest application.

QTP - Main Window
Test Pane:
Test Pane contains two labs to view the tests,
- Keyword View
- Expert View
Keyword View:
Quick Test Pro displays your test in the form of a collapsible, icon based tree…
Expert View:
Quick Test Pro displays the source code (VB Script) of the tests in this view.
Prepare to Record
Objectives
-Review documented user steps of a business transaction.
-Understand the application under test and its environment.
-Prepare the test environment to utilize QuickTest Professional correctly.
Quick Test Professional - Record & Run Modes
Recording Modes
-Normal
-Analog
-Low level
Run Modes
-Normal
-Fast
-Update
Quick Test Professional -Settings
QuickTest Professional Options->General
A best practice when setting general options for QuickTest are to:
-Deselect all check boxes except “Save data for integrating with performance testing …” and “Display Add-in Manager on startup”.
-Click on “Restore Layout” button to reset screens to the initial setting when QuickTest was first installed.

Quick Test Professional - Tools -> Options -> Run

Best Practices for Options for Run Mode:
1.Run Mode as Normal:
-This ensures that the execution arrow appears to help with trouble shooting the tests.
-Synchronization becomes better for the AUT (Application Under Test)
2.Test Results:
-Deselect the option “View Results when run session ends”
3.Mercury Tool Integration:
-Select "Allow other Mercury products to run tests and components“
4.Screen Capture:
-Save step screen capture to results "On error and warnings"
QTP -> Record and Run Settings
Best Practices for Record & Run Settings
1.Set the options to configure QTP to "Record and run test on any open Windows- based application“
2.Set the option - This window will appear the first time you click on the Record button in the new test.
3.Manually recall this window by selecting Automation->Record and Run settings

No comments:

Post a Comment