Reuse tests on different hosts: Server connection variables


+

Search Tips   |   Advanced Search

 

Overview

If the application being tested is identical different systems, you can change the web host name and port variables, and use the tests on the both.

Before beginning, confirm that test generation preferences are set to support data correlation, go to...

...and verify that...

...is selected. If not, select that option and regenerate the test.


Change the name of the host or proxy server on all requests in a test

  1. Double-click a test

  2. Expand the Test Variable section at the top of the test, and click the Server Connection variable containing the hostname to change.

  3. In the Test Element Details area...

    ...perform the following steps:

    1. Type the new host name in the Host field.

    2. Optional: Type a new port number in the Port field.

    The new hostname and port combination is correlated to the test variable, which contains the value currently being used.


Results

To change the host names and ports of many tests, put the server connection variable in a datapool and associate the datapool with the tests. When you change the name and port in the datapool, that change is propagated throughout the tests in the datapool.


Related

  1. HTTP test editor overview
  2. Define performance requirements in tests
  3. Add an authentication folder
  4. Verify expected behavior
  5. Cookies - How loops affect the state of virtual users
  6. Split a test
  7. Split a test page
  8. Merge test pages
  9. Disable and enable secondary HTTP requests
  10. View a test in the Protocol Data view
  11. Test Siebel applications