Saturday, October 19, 2013

Important concepts in load runner scripting

To perfect in loadrunner scripting please go through with the below concepts .
Guide lines for performance scripting.
1) Under stand the  HTTP Request and Response.
2)  Record the script in Action Method.
3) disable all the script level properties.
4) Always better to record the script in HTML page with 'A script containing explicit URL only' by selecting this option under Advance HTML.
5) Always enable "Generate web_reg_find function for page titles" in advance properties.
6) Select "Enable the correlation during recording" option in correlation properties if you want to do automatic correlation.
7) Insert the transaction points for each page request to measure the response time.

HTTP Request and Response:

First need to understand the request and response  from client to server.
An HTTP request will be sent from browser to server.
Generally most useful methods in loadrunner are get and post

Get method :
Get method is used to Requests data from a specified resource

Example :accessing gmail application from browser,every one will have the same login page and we will get that using Get method

Post Method:
post method Submits data to be processed to a specified resource

Example :The transaction id generating from server which is different for every user and we can get from Post method.

In loadrunner get method is replaced with web_url and Post method is replaced with web_submit_data


There are different tools available in the market to analyze the HTTP traffic, those are
1) Firefox-HTTPfox
2) IE-HTTPwatch
3) Fiddler and etc..

Record the script in Action Method:
Record the script in Action Method including login and logout for quick recording later if we want we can split the login and logout  functions in other block  and we can call  those functions wherever required.

Disable the script level properties:

I will update the steps to right load runner script manually without recording

Transaction Points:










No comments:

Post a Comment