During a load test, each virtual user composes the appropriate runtime requests, sends them to the server, and receives the corresponding runtime responses (a request/response combination is called a session). This process is part of the session life-cycle, that can be programmatically be altered by a component. In each step, the session properties can be accessed by the RuntimeSession object that is passed as an argument.

OnRequestInitialize

Called for every recorded request before the runtime request is composed.

OnBeforeRequest

Called after the runtime request is composed. Called only for requests that were not canceled due to being disabled or cached.

OnBeforeResponse

Called immediately after the response came back. Use this event for custom validation. If the request was canceled previously then this method will not be called.

OnAfterResponse

Called after the response is processed. Use this event to override extractor values and save the response. If the request was canceled previously then this method will not be called.