Asynchronous Functions - JavaScript

Click one of the following functions for more information:

web.regAsyncAttributesRegisters the next action function that has requests and responses with the specified URL as the beginning of an Asynchronous ConversationClosed An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..
web.stopAsyncStops the specified Asynchronous ConversationClosed An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled. including all its active and future tasks.
web.syncSuspends the Vuser script execution until the specified parameter exists.
web.utilSetRequestBodySets a string to be the request body for the next request sent in the ConversationClosed An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..
web.utilSetRequestHeaderSets a string to be the request header and value for the next request sent in the ConversationClosed An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..
web.utilSetRequestUrlSets a string to be the request url for the next request sent in the ConversationClosed An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..

Callbacks

NameSyntaxDescription
Request CallbackRequestCBCalled before a request is sent, allowing you to modify a request's URL and body.
Response CallbackResponseCBCalled once at the end of a conversation when complete response is received. May not be called For “Push” conversation.
Response Body Buffer CallbackResponseBodyBufferCB Called on receiving portions of response body content for “Push” conversation
Response Header Buffer CallbackResponseHeadersCBCalled once on receiving response headers for “Push” conversation.