Performancing Metrics

Performance blog: VuGen
Showing posts with label VuGen. Show all posts
Showing posts with label VuGen. Show all posts

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

Friday, November 6, 2009

User Defined Template feature in LoadRunner 9.5

When testing the application, we also need to test several business processes, to do so we usually reuse same parameter files, runtime settings, Boiler templates etc. In addition we may also want to reuse certain functions for each of the scripts we create. Until now to do this we have to create a new script and then import and copy into it all the necessary files and settings from the existing scripts. With VUGEN 9.5 we can avoid this by using script template.


Create a script with proper boiler plate, parameters files, and runtime settings etc which are common to all the business processes and then save the template. To do this go to File menu– User Defined template – Save as Template in VUGEN

Once the template is created, apply the template, to do this go to File menu –User defined template – Create script from Template and a new script will be created with all the based data as made in the template and we can now start recording our business process on top of it.