GetSubrequestContent Function

Description:

This functions is only valid in Navigate and Submit commands.
The GetSubrequestContent function sets a HTTP response (except HTTP headers) of a NAVIGATE or SUBMIT subrequest in a string variable.
The subrequest can be specified by:

Format:

NAVIGATE PRIMARY ur    subrequestContentVar = GetSubrequestContent(index);
    subrequestContentVar = GetSubrequestContent(index, frameIndex);
    subrequestContentVar = GetSubrequestContent(subrequestUrl, urlIndex, [nocase|regexp]);
    subrequestContentVar = GetSubrequestContent(subrequestUrl, urlIndex, frameIndex, [nocase|regexp]);
 

Parameters:

index

integer expression which specifies the index of the subrequest to extract.

frameIndex

integer expression which specifies the index of the frame which contains the subrequest to extract.

subrequestUrl

character string expression which specifies the url (regular expression if the regexp option is specified) of the subrequest to extract.

urlIndex

integer expression which specifies the index of the subrequest to extract (with url=subRequestUrl).

 

Example:

STRING szSubRequestContent;

NAVIGATE PRIMARY "http://demo.fmstocks.com/fmstocks/default.asp" IDENTIFIER 1
    szSubRequestContent=GetSubRequestContent("http://demo.fmstocks.com/fmstocks/home.asp", 1, NOCASE)

See also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap