Hewlett PackardŽ QuickTest Pro Launcher (qtp.jar)
The Hewlett PackardŽ QuickTest Pro launcher allows running test generated using QuickTest Pro.Configuration
Theqtp.xml file allows pre-configuring the launcher with some default values:| Parameter | Description |
| General | |
| Test root path | This must indicate where are located all the JMeter tests. This is a root path. Each test in XStudio has a canonical path that will be appended to this path. This path MUST not include an ending slash. Default value is: C:/test_repository/tests/qtp
|
| Windows cscript.exe path | This must indicate the path to the VB interpreter included withing Windows used to run the test. Default value is: C:/WINDOWS/system32/cscript.exe
|
These values can be changed while creating the campaign session from XStudio.
Requirements
The launcher will generate and execute a VB script that will open QTP and run the required test.Tutorial: Creating and executing QTP tests
In this tutorial, we will learn to run some QTP tests.Prerequisites
Install QTP wherever you want and create a QTP test.Create a dedicated category for QTP tests and create a test
- create a category QTP associated to the launcher qtp.jar
- under this category, create (somewhere in the tree) a test with name Test1 and with a canonical path set to folder1.
- create a couple of test cases with names first and second for this test.
Creating a test campaign
- create a campaign including only the test Test1
- create a campaign session using a configuration having all the default values.
Run a campaign session
Run the campaign sessionAfter the session's execution is completed, you can look at the results from XStudio:
- the messages indicate the failure rate and the average time to execute the queries
- you can also check that all the qtp traces and the qtp xml report are uploaded in XStudio