When you record HTTP traffic in an IBM Rational Performance Tester test, you get traffic from outside the domain of your application. In version 9.1 of Rational Performance Tester, you can choose which domain you want to include in your test. In this version, you see Select domains before the Rational Performance Tester workbench generates the test that you just recorded.
To try the new version, download Rational Performance Tester for free.
How to select domains
- Record a new test.
- Close the browser to stop the recording.
- Observe the Generate HTTP > Domains selection window.
- Clear the domains that you don’t want to capture traffic from.
Record an HTTP test against http://ibm.com/ through Mozilla Firefox. When you finish recording, you'll see the Domains Selection window.
Aside from IBM, you also see Mozilla and Google. Apparently, network traffic is also coming from these domains. If you want to measure response times that you would normally experience when you access ibm.com, you choose all domains. If you want to measure traffic only from specific domains, you clear the corresponding check boxes.
Suppose that you want to know the responses only from the ibm.com server and not traffic from google.com and other non-IBM traffic. In that case, you clear all check boxes except the one that says ibm.
After you run the test, the test log shows only IBM traffic.In this case, IBM United Kingdom because my proxy server’s location is somewhere in England. The parts that you excluded don’t appear in the test log. Review the following two test logs, all domains selected and only ibm.com. The test opens http://ibm.com and closes that page.
Defaults, changes, and the way back
The default is to capture traffic from all domains. Previous versions of Rational Performance Tester capture traffic from all domains.
Possibly, you don’t know yet what domains to exclude from your test run. In that case, you keep the default setting. Afterward, you can disable the domains before you run the test.
- Open the test from the Navigator.
- Highlight the part of the test that you want to exclude. Then, click Disable.
- Press Save.
You can include all domains as the default setting. Select Select all and remember my decision. The next time that you record and generate a test, the Domains Selection doesn’t appear. After you close the browser, you run directly into the test generation.
Look at the sentence between brackets.
To enable domain selection again, go to ‘HTTP test generation’ preferences page.
That means, do the following clicks.
- Click Window > Preferences > HTTP Test Generation.
- Select Enable Domain review before test generation.