Share this page

# Define the end of an asynchronous conversation

For a list of protocols that support asynchronous communication, see 64-bit recording, Async, and IPv6 support.

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 does 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.

- the asynchronous conversation was added due to a specific Async rule.

- the asynchronous conversation was not ended during the recording.

  For details, 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-tune 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 Define 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.

Copy code

    web_url("seed",
            "URL=https://www.mycompany.com/content.php?messages",
            "Resource=0",
            "Referer=https://www.mycompany.com/",
            "Snapshot=t17.inf",
            "Mode=HTML",
            LAST);
        lr_think_time(10);
        web_stop_async("ID=Pull_01",
            LAST);

Back to top

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 25.1-25.3 All View Local Help Center View Online Help Center Version: