What is web_global_verification?

Please Like Us!!!

LoadRunner Interview Questions

Q: What is web_global_verification?
A: web_global_verification registers a request to search for a string in page returns from all the subsequent requests. web_global_verification is similar to web_reg_find in terms of attributes and functioning, the only difference being web_reg_find searches only one request whereas web_global_verification searches all subsequent requests.

Syntax:
int web_global_verification( List of Attributes, LAST );

Example:
1) web_global_verification(“Text=Googly”, LAST );
In the above example, web_global_verification would search for text Googly in the response from all subsequent requests.

2) web_global_verification(“Text=Desi”,”SaveCount=srchcnt”,LAST);
In the above example, web_global_verification would search for text Desi in the response from all subsequent requests and save the count of matches in variable ‘srchcnt’.

3) web_global_verification(“Text=Error”, “Fail=Found”, LAST );
In the above example, web_global_verification would search for text ‘Error’ in the response from all sbusequent requests, if the text is found the execution would fail for current iteration.

4) web_global_verification(“TextPfx=Error number”,”TextSfx=occured”, LAST );
In the above example, web_global_verification would search for text starting with ‘Error number’ and ending with text ‘occured’. TextPfx indicates Text Prefix and TextSfx indicates Text Suffix.

Reviews & Comments

Enjoy!