Performancing Metrics

Performance blog: Understanding Snapshot Attribute in LoadRunner

Friday, November 13, 2009

Understanding Snapshot Attribute in LoadRunner

A snapshot is a graphical representation of the current step and it is an Attribute to functions like Web_URL, web_custom_request etc in LoadRunner

A Sample request is shown below

web_custom_request("Sample_Request",
"URL=http://… /Service",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Mode=HTML",
"Snapshot=t1.inf", //Snapshot attribute is commented
"EncType=text/xml; charset=utf-8",
"Body="
LAST);

When working in Tree view, VuGen displays the snapshot of the selected step in the right pane (as Shown Below). The snapshot shows the client window after the step was executed.(Refer Snapshot)
LoadRunner Snapshot

VuGen captures a base snapshot during recording and another one during replay. You compare the Record and Replay snapshots to determine the dynamic values that need to be correlated in order to run the script.

If Snapshot Attribute is not placed in the request, then Image file will not be generated during the replay(Refer Snapshot).

web_custom_request("Sample_Request",
"URL=http://… /Service",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body="
LAST);

LoadRunner Snapshot

4 comments:

Vipul Baheti said...

HI,

i am getting this wired issue, am using LR 11.0 and while recording all the snapshots are saved locally and in the code as well the snapshot parameter is present, but when i go to tree view it tells me no snapshot available to display..

Can you pls suggest what can be the issue and i have checked and verifies all the run time setting with recording options but its not working..

Anoushka Sakthi said...

Your article inspired me more and keep writing.

Qtp training in Chennai
iOS Training in Chennai
JAVA Training in Chennai
Big Data Training in Chennai
Selenium Training in Chennai
German Classes in chennai
Salesforce Training in Chennai
Salesforce Course in Chennai

Anonymous said...

Thanks for sharing such a great blog Keep posting.. 
Loadrunner Training in Delhi

Pathway for German Language said...
This comment has been removed by the author.