Tool Mentor: Edit Tests with IBM Rational Performance Tester
This tool mentor describes how to use IBM Rational Performance Tester to edit a performance test.
Tool: IBM Rational Performance Tester
Relationships
Main Description

Overview

With the test editor, you can manually write a test for a Web application. But more typically, you use the editor to inspect or customize a test that was automatically generated from a recorded session with an application that you started from your browser.

You can edit tests in a number of ways by, for example, providing tests with variable data, correlating response and request data in a test, adding verification points to a test, adding elements to a test, and extending tests with custom code. In this tool mentor, the focus will be on one fo the more frequently encountered types of editing, namely adding a verification point (VP) to a test.

For more information on editing a test in IBM® Rational® Performance Tester, see the topic Editing Tests in the online Help.

A verification point is used to determine whether or not expected behavior occurred. In cases where the expected behavior does not occur at a verification point, an error is reported. In Rational Performance Tester, three types of verification points are supported:

  • Page Title VPs: reports an error if no page title, or a title different from what you expected, was returned
  • Response Code VPs: reports an error if a response code different from what you expected was returned
  • Response Size VPs: reports an error if the size of a response is different from what you expected

Tool Steps

To edit a test by adding a verficiation point, perform the following steps:

  1. Open the test.
  2. In the Test Editor, set the scope of the verification point by clicking either the test name, a test page, or a page request. Depending on which item you choose, the verification point you select is added to all test pages, to a particular page in the test, or to a particular request in a page.
  3. Right-click and select one of the following:
    • Enable Page Title VPs
    • Enable Response Code VPs
    • Enable Response Size VPs

For more information on verification points and editing performance tests in general, see the following topics in the Rational Performance Tester online Help:

  • Specifying the Expected Content
  • Specifyting the Expected Page Title
  • Specifying the Expected Response Code
  • Specifying the Expected Response Size