Defining the End of an Asynchronous Conversation

Applies to Web - HTTP/HTML, Flex, and Web Services Vuser scripts.

After VuGen scans a Vuser script for asynchronous communication, the Async tab of the Design Studio lists the asynchronous conversations that VuGen found in the script. A web_stop_async step is inserted into the Vuser script at the end of each asynchronous conversation that was detected. Use VuGen's Step Navigator to find the associated web_stop_async steps in the Vuser script.

Note: In some cases VuGen will not add a web_stop_async step at the end of an asynchronous conversation. This may occur when VuGen is not able to determine where the asynchronous conversation ends. This can occur when the asynchronous conversation was added due to a specific Async rule or when the asynchronous conversation was not ended during the recording. For details on Async rules, see Async Rules Overview.

After VuGen has inserted a web_stop_async step into a Vuser script, make sure the web_stop_async step was added in the correct location in the script, that is – where the asynchronous conversation should end when the Vuser script runs.

In order to make sure the asynchronous conversation ends correctly when the script runs, it may be necessary to modify the details of the web_stop_async step in the Vuser script. For details, see Fine-Tuning the End of an Asynchronous Conversation.

Note: All Async conversations are automatically terminated at the end of each iteration even if the Simulate a new user each iteration runtime option is disabled.

For details on how an asynchronous conversation is started, see Defining the Start of an Asynchronous Conversation.

Example: web_stop_async

In the code sample below, VuGen added a web_stop_async step at the end of a poll conversation. In this example, the original polling steps are commented out, and the lr_think_time steps that separated them have been merged into one lr_think_time step in order to emulate the duration of the entire poll conversation.

Back to top