Using Application Performance Management in a schedule

You can use Application Performance Management (APM) in a schedule to enable AppDynamics or Dynatrace applications and enhance the data collection during load testing by adding HTTP headers to the request in your HTTP tests. You can also use APM to monitor the performance of applications.

Before you begin

You must have completed the following tasks:
  • Created a VU schedule or Rate schedule.
  • Added an HTTP test to the schedule.

About this task

You can select the page or the transaction to enable the data to be displayed in the selected application and run the schedule. After the schedule run is complete, you can open the Test Log page, and select the request. You can then click the Protocol Data tab and open the Request page.

Based on the page or transaction that you select, the Request page displays a header that is added automatically to the current page of every request as described in the following table:

If you select... Then...
Pages

A header called PT_Page with a value of the current page is added to every request.

Transactions
A header called PT_Transaction with a value of the current page is added to every request.
Note: If you do not add any transaction to the schedule, then the header is not added to the request.
Note: The PT_Page and PT_Transaction request headers that are added to the selected requests during the test run can enhance the data collection with AppDynamics or Dynatrace.

Procedure

  1. Open the schedule from the test editor.
  2. Select the schedule from the Schedule Contents section.
  3. Select Application Performance Management from the Category field.
  4. Select one of the following checkboxes to enable transaction and page requests into APM by using HTTP headers.
    • Enable AppDynamics
    • Enable Dynatrace
  5. Select any of the following checkboxes to control the header that is added to every request:
    • Pages: Select this checkbox to add a header called PT_Page with a value of the current page name to every request.
    • Transactions: Select this checkbox to add a header called PT_Transaction with a value of the current transaction name to every request within a transaction.
  6. Select one of the following options to filter the requests:
    • All: Click this option to add headers to all the requests.
    • Primary Request Only: Click this option to add headers to the primary requests only.
  7. Select the Filter by Host/Port checkbox to filter the requests based on the hostname and port number of the existing connections in the tests.
  8. Select the Filter by User Defined checkbox, and then perform the following steps if you want to filter the requests based on the strings that you defined:
    1. Click Add.
    2. Enter a string name in the Text field.
    3. Select any of the following checkboxes based on your requirement:
      • Case-sensitive: Select this checkbox to find the content that is sensitive to the capitalization of letters that are entered in the Text field.
      • Regular expression: Select this checkbox to accept a regular expression to match the string that is entered in the Text field.
    4. Click OK.
  9. Select any one of the following checkboxes to add the filters for the category:
    • Both filters match: Click this option to select only the requests that match both the Filter by Host/Port and Filter by User Defined filters.
    • Either filter matches: Click this option to select the requests that match either Filter by Host/Port or Filter by User Defined filters.

Results

You have enabled the AppDynamics or Dynatrace application in a schedule by using APM.

What to do next

You can save and run the schedule. After the schedule run is complete, you can open the Test Log page, and select the request. You can then click the Protocol Data > Request and verify the request details.