Reuse tests on different hosts: Server connection variables
Your tests represent a significant investment in time and effort. You can share or reuse them for different configurations and web hosts by changing the variables for the host name and port.
Before beginning, confirm that test generation preferences are set to support data correlation. Click Window > Preferences > Test > Performance Test Generation > HTTP Test Generation, click the Data Correlation tab, and verify that Automatically correlate host and port data is selected. If not, select that option and regenerate the test.
Perhaps you develop the tests on a lab computer and then they want to run them on a production server. If the application that you are testing is identical on both computers, you can change the host name and reuse the tests on the production server.
To change the name of the host or proxy server on all requests in a test:
- In the Test Navigator, browse to the test and double-click it.
- Expand the Test Variable section at the top of the test, and click the Server Connection variable containing the hostname to change.
- In the Test Element Details area, perform the following steps:
- Type the new host name in the Host field.
- 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. For more information, see Create a datapool and associate with a test.
Related:
Redirection support for HTTP tests
HTTP test editor overview
Cut and paste in tests
Test variables
Specify the number of allowable URL redirects during test runs
Define performance requirements in tests
Add an authentication folder
Verify expected behavior
Specify error-handling behavior
How loops affect the state of virtual users
Split a test
Split a test page
Merge test pages
Disable and enable secondary HTTP requests
Convert tests to use SSL connections
View a test in the Protocol Data view
Test Siebel applications
Error 404 - Not Found Error 404 - Not Found
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.