Disabling and enabling secondary HTTP requests
You can disable all secondary requests within an HTTP performance test or a subset of requests in the test. Secondary requests are all requests within a page other than the primary request.
About this task
Procedure
- In the Test Navigator, browse to the test, and double-click
it. The test opens.
- In the Test Element Details area, click the HTTP Options tab.
- At Secondary request behavior, click Modify.
- In the Enable or Disable Secondary Requests box, select
one or more of the following options:
Option Description All secondary Selects all secondary requests. Images Selects all secondary requests that are image-related. This selection includes all secondary requests where the Content-type header of the response contains image or the path of the URI of the request contains a .gif, .png, .jpg, .bmp. or .tif extension. Host/Port based Selects all secondary requests that use the specified host:port pair for connections. A list of host:port pairs in the test is displayed. User-defined Selects all secondary requests where the user-specified string, or a string matching a user-specified regular expression, is in the request URI. - You typically keep the boxes under Do not disable
secondary requests selected, which leaves them enabled.
However, if you have extensive knowledge of the system under test and have already done some troubleshooting, you might clear these boxes in the following cases:
- With responses containing set-cookie headers: If the cookies set in a particular request are not important to the remaining requests, you may disable them. This decision requires you to know how the system under test uses cookies.
- With data sources used by enabled requests: If a test contains superfluous data correlation, you may disable it. This decision requires you to know how the system under test uses data correlation.
- Select Disable or Enable to
modify the secondary requests.The requests are now enabled or disabled.