How to: Promote Dynamic Parameters to Web Performance Test Parameters

How to: Promote Dynamic Parameters to Web Performance Test Parameters

Some websites and applications use dynamic parameters in one or more of their web requests. A dynamic parameter is a parameter whose value is generated every time that a user runs the application. A dynamic parameter can cause your web performance test playback to fail because the dynamic value will likely be different every time that the test is run. Therefore, you cannot play back recorded values. An example of a dynamic parameter is a session ID. The session ID usually changes every 5 to 30 minutes.

The web performance test recorder and playback engine automatically handle the most common types of dynamic parameters:

  • Dynamic parameter values set in cookie value. The web performance test engine automatically handles these during playback.

  • Dynamic parameter values set in hidden fields on HTML pages, such as ASP.NET view state. These are automatically handled by the recorder adding hidden field extraction rules to the test.

  • Dynamic parameter values set as query string or form post parameters. These are handled through dynamic parameter detection when the test completes.

The default Visual Studio Ultimate configuration is to detect dynamic parameters when you record a web performance test using the Web Performance Test Recorder. However, if you have Visual Studio Ultimate configured not to detect dynamic parameters, or the web application being tested gets modified with additional dynamic parameters, the Web Performance Test Editor provides the ability to detect dynamic parameters in the web performance test.

Note Note

You can change the default behavior for detecting dynamic parameters when you run a web performance test in Visual Studio Ultimate. For more information, see How to: Configure Visual Studio Ultimate Options for Web Performance Tests.

In the Web Performance Test Editor, you can use the Promote Dynamic Parameters to Web Test Parameters button on the toolbar to automatically detect the dynamic parameter types listed above in your web performance test as described in the procedure below.

Requirements

  • Visual Studio Ultimate

To detect dynamic parameters in your Web performance test

  1. Open a web performance test.

    The Web Performance Test Editor opens and the request tree for the web performance test is displayed.

  2. In the toolbar, choose the Promote Dynamic Parameters to Web Test Parameters button.

    After the detection process completes, if any dynamic parameters are detected, the Promote Dynamic Parameters to web test parameters dialog box appears.

    The dynamic parameters are listed under the Dynamic Parameters column. The requests that the dynamic parameter will be extracted from and bound to are listed under the Extract Parameter from Response and Bind to Request columns.

    Tip Tip

    If you choose on a dynamic parameter in the Promote Dynamic Parameters to web test parameters dialog box, two requests will be highlighted in the Web Performance Test Editor request tree. The first request will be the request that the extraction rule will be added to. The second request is where the extracted value will be bound.

  3. Select or clear the check box next to the dynamic parameters you would like to automatically correlate. By default, all the dynamic parameters are checked.

  4. Choose OK.

    Note Note

    There are some forms of dynamic parameters that are not detected. To handle these parameters properly, you can add extraction rules to dynamic parameters in your web performance tests manually. For more information, see How to: Resolve Web Performance Test Playback Issues Caused by Dynamic Parameters.

Show:
© 2016 Microsoft