Asynchronous Functions - JavaScript

Click one of the following functions for more information:

web.regAsyncAttributes Registers the next action function that has requests and responses with the specified URL as the beginning of an Asynchronous ConversationClosedAn 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.stopAsync Stops the specified Asynchronous ConversationClosedAn 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.sync Suspends the Vuser script execution until the specified parameter exists.
web.utilSetFormattedRequestBody Sets an XML string to be the request body for the next request sent in a Flex ConversationClosedAn 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.utilSetRequestBody Sets a string to be the request body for the next request sent in the ConversationClosedAn 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.utilSetRequestUrl Sets a string to be the request url for the next request sent in the ConversationClosedAn 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

Name Syntax Description
Request Callback RequestCB Called before a request is sent, allowing you to modify a request's URL and body.
Response Callback ResponseCB Called once at the end of a conversation when complete response is received. May not be called For “Push” conversation.
Response Body Buffer Callback ResponseBodyBufferCB Called on receiving portions of response body content for “Push” conversation
Response Header Buffer Callback ResponseHeadersCB Called once on receiving response headers for “Push” conversation.