Generating HTTP tests from a Web UI test

The performance tests record the HTTP traffic against the HTTP server that hosts the application under test. You would have recorded many scenarios against the server. If a new version of the server is about to be used, there can be changes in the HTTP traffic for all of the existing tests. You might have to re-record all of the tests to bring them back to the state where they can be run successfully. This is a time-consuming process.

Before you begin

You must have installed HCL OneTest™ PerformanceHCL OneTest UI in the same package group, also referred to as shell-share mode.

About this task

When you know that a new version of the HTTP server is going to be installed and it would impact your performance tests, you can record the scenarios with the Web UI Test recorder of HCL OneTest UI and then just generate the HTTP tests. When you have all of the HTTP tests generated, you can add the required test elements and run them to view the performance results. When the new version of the server is installed, you can start refreshing the generated HTTP tests. This action records the traffic from the Web UI test and uses the test elements such as loops and datapool that were edited in the HTTP test with the new HTTP traffic. The new HTTP tests are re-recorded with new HTTP traffic without manual intervention.

Procedure

  1. From the Web UI perspective, create a Web UI test. For information about creating a Web UI test, see its product documentation.
  2. In the Test Navigator view of Performance Test perspective, right-click the Web UI test and click Generate HTTP Test. You can have only one Web UI test as the master test. The HTTP Test recorder opens the web browser and automatically records the HTTP traffic for the UI actions that were recorded in the Web UI test and generates the HTTP test.
  3. To refresh the HTTP test, right-click the generated HTTP test and select Refresh HTTP Test. This option is available only for the HTTP tests that were generated out of Web UI tests.
  4. Specify a name for the test, select a project, and click Next.
  5. Click Finish. The HTTP Test recorder opens the web browser and automatically records the HTTP traffic from the Web UI test and generates the HTTP test against the new version of the server.
Feedback