First I will talk about Load Runner.
Basically Load runner is a very powerful tool to do performance testing.Load Runner is a record and play tool.
It have 3 main components.
VuGen(Virtual User Generator)
Controller
Analysis
VuGen: VuGen is mainly used to create scripts for any application module.In VuGen we can customize our scripts based on our requirement.
Mainly in VuGen we will focus on the below:
To handle Session-id(Server Generated Values)and cookies.
To Verify Web pages.
Check for application stability(Test with different users ).
According to the requirement add conditions,loops and API's calls.
To handle Session-id and cookies in VuGen we have a procedure called "Co-Relation".
Now I will discuss how to apply co-relation
In Load Runner when we will record script so in that script some dynamic value will generate from the server side to handle these type of value we have to use Co-relation in load runner.
Basically we have to record same scripts two times to know that which value is changing every time.
then using the Wdiff(Window difference in two scripts) can easily identified which value is changing.
For now we have to use co-relation function:
Web_reg_save_param(dynamic value,LB,RB,ORD,LAST);
dynamic value:name of the value which value is changing every time.
LB:Left boundary of the value .
RB:Right boundary of the value
ORD:ORD value is depend on the dynamic value (How many time value is coming).
For Ex.name=outboundFlight value=230;378;11/20/2003 checked >
In my script this value is changing every time.
To Verify web pages
After recording the script I want to check my script will it is going to the right page or not.
For that we have 2 type of validation.
Text Check:To check the text present in webpage or not.
Web_reg_find("Text=Welcome to the Web Tours site", "Search=Body", LAST);
In this example I wanted to search "Welcome to the Web Tours site"text.by using this function we will easily find the text on the web page.
Image Check:To check the image present in webpage or not.
(web_image_check("web_image_check","src=ic_error.gif","report=success",LAST);
In this example I wanted to search a image called "ic_error.gif" so by giving this name we will able to search easily.
But Some time SRC will be not there in this case use ALT attribute to search.
(web_image_check("web_image_check","alt=image present","report=success",LAST);
Check for application stability(Test with different users )
To check the application stability given more data(user)on the application.To see this in load runner we have a one features called "Parameterization".
Basically parameterization is used for to see the system stability and functionality of the application.
Analysis:
After execution automatically analysis will generated reports and graphs according to execution.Load Runner analysis have different types of graphs and reports.
Mainly we will focus on the basics graphs like:
Hits per second-How much per second time the server is hitting the application.
Average Transaction Response time-What is the time taken by every transaction to complete the request from server side.
Transaction per second-How much time taken by each transaction.
Total transaction per second-How much time taken by total transaction.If a script having 6 module like Login,Enter details,do some operation,make a payment,see the order,logout.
how much time taken by all operation.
Total error per second-How much error is coming in every second of each transaction.
Basically Load runner is a very powerful tool to do performance testing.Load Runner is a record and play tool.
It have 3 main components.
VuGen(Virtual User Generator)
Controller
Analysis
VuGen: VuGen is mainly used to create scripts for any application module.In VuGen we can customize our scripts based on our requirement.
Mainly in VuGen we will focus on the below:
To handle Session-id(Server Generated Values)and cookies.
To Verify Web pages.
Check for application stability(Test with different users ).
According to the requirement add conditions,loops and API's calls.
To handle Session-id and cookies in VuGen we have a procedure called "Co-Relation".
Now I will discuss how to apply co-relation
In Load Runner when we will record script so in that script some dynamic value will generate from the server side to handle these type of value we have to use Co-relation in load runner.
Basically we have to record same scripts two times to know that which value is changing every time.
then using the Wdiff(Window difference in two scripts) can easily identified which value is changing.
For now we have to use co-relation function:
Web_reg_save_param(dynamic value,LB,RB,ORD,LAST);
dynamic value:name of the value which value is changing every time.
LB:Left boundary of the value .
RB:Right boundary of the value
ORD:ORD value is depend on the dynamic value (How many time value is coming).
For Ex.name=outboundFlight value=230;378;11/20/2003 checked >
In my script this value is changing every time.
web_reg_save_param("outFlightVal",
"LB=outboundFlight value=", "RB= checked >",ORD=1", LAST);
ORD=1 means value is repeating only once in the script .
To Verify web pages
After recording the script I want to check my script will it is going to the right page or not.
For that we have 2 type of validation.
- Text Check
- Image Check
Text Check:To check the text present in webpage or not.
Web_reg_find("Text=Welcome to the Web Tours site", "Search=Body", LAST);
In this example I wanted to search "Welcome to the Web Tours site"text.by using this function we will easily find the text on the web page.
Image Check:To check the image present in webpage or not.
(web_image_check("web_image_check","src=ic_error.gif","report=success",LAST);
In this example I wanted to search a image called "ic_error.gif" so by giving this name we will able to search easily.
But Some time SRC will be not there in this case use ALT attribute to search.
(web_image_check("web_image_check","alt=image present","report=success",LAST);
Check for application stability(Test with different users )
To check the application stability given more data(user)on the application.To see this in load runner we have a one features called "Parameterization".
Basically parameterization is used for to see the system stability and functionality of the application.
Analysis:
After execution automatically analysis will generated reports and graphs according to execution.Load Runner analysis have different types of graphs and reports.
Mainly we will focus on the basics graphs like:
Hits per second-How much per second time the server is hitting the application.
Average Transaction Response time-What is the time taken by every transaction to complete the request from server side.
Transaction per second-How much time taken by each transaction.
Total transaction per second-How much time taken by total transaction.If a script having 6 module like Login,Enter details,do some operation,make a payment,see the order,logout.
how much time taken by all operation.
Total error per second-How much error is coming in every second of each transaction.
Good Post. I like your blog. Thanks for Sharing!
ReplyDeleteLoadrunner Training in Delhi
ReplyDeleteThank you for sharing such great information very useful to us.
Loadrunner Training in Delhi