Share this page

# web_sync

Example: web_sync | Asynchronous Functions - C

Suspends the Vuser script execution until the specified parameter exists.

    int web_sync ( "ParamCreated=param_name", ["RetryIntervalMs=integer,] ["RetryTimeoutMs=integer,] LAST);

Argument | Description
--- | ---
ParamCreated | The name of a parameter.
RetryIntervalMs | The number of milliseconds to wait before a retry after a test of the condition yielded false. The default is 500. The default can be overridden by the "web_sync retry interval" runtime setting.
RetryTimeoutMs | The maximum number of milliseconds during which retries are allowed. The default is 30000. The default can be overridden by the "web_sync retry timeout" runtime setting. Regardless of the value of this argument or of the "web_sync retry timeout" runtime setting, the timeout never exceeds the value of the "Step download timeout" runtime setting.
LAST | A marker that indicates the end of the argument list.

## Return Values

This function returns LR_PASS (0) if the specified parameter exists, and LR_FAIL (1) if the step times out.

## Parameterization

The values of keyword-value pairs can be parameterized. For example, "ALT={altParam}".

## General Information

The parameter named in the `ParamCreated` argument is expected to be created by a concurrent activity, such as a poll or a push conversation. If the parameter has already been created when the function is invoked, it returns immediately. If not, the script run is suspended until either the parameter is created or the function times out.

See Also

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: