|
HP Quick Test Pro Automated Test ToolHere are technical notes on HP's QTP (Quick Test Professioal) software used to automate functional testing It contains hard won insights not obvious from available documentation. | Topics this page:
|
Related Topics: |
The Place of QTP among HP (Mercury) ProductsQTP object (Javascript) recognition technogies are being used within LoadRunner's "Click and Script" recording mode. Veterans of WinRunner used to the freedom of a blank code editor screen may feel "claustrophobic" when using QuickTest because they must work within the confines of QuickTest's structured GUI, which looks and feels much like Microsoft Visual Studio. Memory Consumption by Product VersionAddiition of GUI features has resulted in increase of memory requirements for the QTP executable (QTPro.exe) invoked from the bin folder where it's installed.
Numbers in the Memory column is obtained from within the Windows Task Manager Processes tab "Mem Usage" column for QTPro.exe. is (compared to 27K for IEXPLORE.EXE): QTPro.exe consumes 16 threads when idle. On the other hand, avoiding that blank editor window (for newbies) is what HP claims is an advantage for QTP. That and the ability to test Microsoft .NET and AJAX apps, which HP is not adding to Winrunner. Nevertheless, HP was brilliant at turning WinRunner, a dead legacy product into a "money maker" by refusing to sell QTP by itself but as a "Functional Testing" package that bundles QTP and WinRunner (at a higher price than QTP alone). AFAIK, Quick Test Pro retails for $9000 for each floating license, or $6000 for a node-lock license. plus $2000 for the Test Director. Maintenance fees are an additional 25% per year. |
|
Functional Testing ProcessBefore you plunge in, keep in mind the Real Benefits and Pitfalls of using Automated Functional Testing Products Here is my approach for using all of HP/Mercury tools to do functional testing:
|
|
|
Test Script AssetsHere are the artifacts of a complete Quick Test automated testing system: |
|
Run Result Configuration
When you click "Run", the default run results folder is something like:
Bubba1 is the computer name. LOCALS~1 is for "Local Settings" Temp\~tlp3 is a folder QTP created for the day. ~Test1 is a folder QTP created for the default test script name. Res1 is the folder for a specific test run's result files QTP created. This is hard to find. So create a folder structure that reflects your project.
Subsystem under Test Process Stream under Test Testing Phase Testing Build Test Script Test Run |
RecordingClose all Windows apps and browser windows before you start recording. Automation > Record and Run Settings can be baffling because if you want to record a Web session, you need to set SAP settings to "Record and run test on any open SAP Gui for Windows application." Standard Windows recording Low-level Analog-level recording |
Password Recording and EditingWhen QTP sees a password field being recorded, it automatically creates the script using its SetSecure operation. Passwords change, so remember to recognize and handle situation. |
|
Parameterizing Input Values
When QTP creates scripts from recording, data values are captured as constants which stay constant (unchanged). To replace constants captured with variables, click on a Value column cell and the parameter icon for the Value Configuration Options dialog. Select Environment to define or select a parameter from the script's environment variables. Select Data Table to use the value in a "data-driven test" which varies each iteration's value from a Data Table parameters. The Data Table for both Generic and Actions is stored as file Default.xls. Select Random Number
| Environment Variables ActionIteration |
Display Parameters
Obtain Action Parameters from other actions using object
|
. |
Exception Handling
Four trigger exception events activate the QTP Recovery Scenario Manager: The Recovery scenario manager wizard that guides you through defining a recovery scenario has 3 steps: 1. Triggered Events 2. Recovery steps 3. Post Recovery Test-Run
|
|
Synchronization
| ... |
Debugging
|
Advisor & User Group Hangouts
|
Consultants: Fee Based Offerings & Jobs |
|
|
Certified ProfessionalHP's Certification Program HP Quality Center 9.2 Software Exam #HP0-M15 based on HP Instructor-led 1-day ($750 US) course Using Quality Center 9.2 #QC92USING-COURSE-01 and HP Instructor-led 4-day ($3000 US) course Using Quality Center 9.2 Suite #QC92USING-COURSE-01 |
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page
Thank you! |