tag:blogger.com,1999:blog-55318387601135838142023-11-16T09:45:52.700-08:00HP Loadrunner TutorialHP Loadrunner Tutorial provides complete performance Testing conceptsRajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-5531838760113583814.post-10065885923439881092019-04-10T11:08:00.001-07:002019-05-03T11:17:40.092-07:00How to create a script for Rest API in loadrunner<div dir="ltr" style="text-align: left;" trbidi="on">
THIS SITE IS MOVED TO NEW SITE WITH LOTS OF REAL TIME EXAMPLES<br />
<br />
<h2 style="text-align: left;">
<a href="http://www.easyselenium.com/ladrunner-tutorial/" target="_blank"> http://www.easyselenium.com/ladrunner-tutorial/</a></h2>
<div>
<a href="http://www.easyselenium.com/how-to-create-a-script-for-rest-api-in-loadrunner/" target="_blank"><span style="font-family: Georgia, Times New Roman, serif; font-size: large;">http://www.easyselenium.com/how-to-create-a-script-for-rest-api-in-loadrunner/</span></a></div>
<div>
<br /></div>
</div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-78793508481524019462017-02-25T01:38:00.000-08:002019-05-03T11:21:13.505-07:00How to Design a Goal Oriented Scenario<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<div style="text-align: justify;">
SITE IS MOVED TO NEW <a href="http://www.easyselenium.com/how-to-design-a-goal-oriented-scenario/" target="_blank">LOADRUNNER </a>TUTORIAL SITE<br />
<br />
<span style="font-family: Georgia, Times New Roman, serif; font-size: large;"><a href="http://www.easyselenium.com/how-to-design-a-goal-oriented-scenario/">http://www.easyselenium.com/how-to-design-a-goal-oriented-scenario/</a></span><br />
<br />
PLEASE READ ALL MY BLOG POSTS IN ABOVE SITE..</div>
</div>
<div style="text-align: justify;">
</div>
</div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-26900562811513256392017-02-24T09:01:00.000-08:002017-03-21T11:13:24.776-07:00Loadrunner Actions<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<div style="text-align: justify;">
Loadrunner Actions,Three types of Actions in Loadrunner that is vuser_int,Action,vuser_end actions,Main execution load script will written in Action window and remaining vuser_int,vuser_end actions useful in one time script execution.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikCI5znSGvNXLOJ9FPP9fl-UvmaNkyKifV3T5EuC8afKb7P4cUe4DXzzwbAhiAsHU2N1TiXf0jwd0s4HMsNX1RpKTEaCOLG8tIZk05aO3_8P0NNQeNAq7DYwhDpYVryOQiXoc2zxAQLDo/s1600/Loadrunner+Actions.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Loadrunner Actions" border="0" height="292" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikCI5znSGvNXLOJ9FPP9fl-UvmaNkyKifV3T5EuC8afKb7P4cUe4DXzzwbAhiAsHU2N1TiXf0jwd0s4HMsNX1RpKTEaCOLG8tIZk05aO3_8P0NNQeNAq7DYwhDpYVryOQiXoc2zxAQLDo/s400/Loadrunner+Actions.png" title="Loadrunner Actions" width="400" /></a></div>
<div style="text-align: justify;">
<br /></div>
<h2 style="text-align: justify;">
Loadrunner Actions</h2>
<div style="text-align: justify;">
Loadrunner Actions or Vuser script files are divided into three sections those are and these Actions are useful in scripting in VUgen as above Screen shot.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1. Vuser_init</div>
<div style="text-align: justify;">
2. Actions</div>
<div style="text-align: justify;">
3. vuser_end</div>
<h2 style="text-align: justify;">
Vuser_init:</h2>
<div style="text-align: justify;">
Below are the task perform by the Vuser_init() action in Loadrunner</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1. Vuser_init is the first Action executed in virtual user Generator in case you write any test script.</div>
<div style="text-align: justify;">
2. Vuser_init action saves in vuser_init.c extension.</div>
<div style="text-align: justify;">
3. Vuser_init test script executes only one time in entire Virtual User Life Cycle.</div>
<div style="text-align: justify;">
4. If you want to run for multiple set of data then you have to use Parameterization Testing process.</div>
<div style="text-align: justify;">
5. In case using Vuser_init action script then it is useful in one time initiation for Examples : Login to system</div>
<h2 style="text-align: justify;">
Action:</h2>
<div style="text-align: justify;">
1.Action is the main section where you have to perform user actions with the help of recording or manual scripting.</div>
<div style="text-align: justify;">
2.Action file also saves in c extension,you can rename Action to your desired script name.</div>
<div style="text-align: justify;">
3.You can correlate,perform parameterization testing in Action test scripts with the help of multiple set of data.</div>
<div style="text-align: justify;">
4.You can insert Blocks in Actions using Run Time Settings.</div>
<h2 style="text-align: justify;">
Vuser_end:</h2>
<div style="text-align: justify;">
Below are the task perform by the Vuser_init() action in Loadrunner,those are</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1. Vuser_end file saves in c extension as vuser_end.c</div>
<div style="text-align: justify;">
2. Here Vuser will end their actions for example Logout of system.</div>
<div style="text-align: justify;">
3. Vuser_end action means end of Vuser life cycle execution.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Please provide your valuable comments on this Post in case you like it and got enough knowledge on Loadrunner Actions.Thank you for reading my Loadrunner Tutorials website.</div>
</div>
<div style="text-align: justify;">
<br /></div>
<div>
</div>
</div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com3tag:blogger.com,1999:blog-5531838760113583814.post-27375695270731592792017-02-22T07:21:00.000-08:002017-03-22T09:52:59.301-07:00Existing Stopped From Running in Loadrunner<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: inherit;">Existing Stopped From Running in Loadrunner,While working with Loadrunner Controller you will face some of the problems like this type of issues.You will not able to identify why error is displaying while running scripts in Loadrunner Controller with load generators.</span><br />
<span style="font-family: inherit;"><br /></span>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjZckoDXBYpbOiYmzu37Zq8L93L_9DxOx9AkAtxor1EmjxNqE5aBpdYs-a5SXUbqwHNXmj4PR4uVsJGuspHr-_Kfzv9dRHSpPPO-pJARSA2msrBliwPv1xB_4ilEnYebSP_zipUdtpV1w/s1600/Existing+stopped+from+running+in+loadrunner.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><span style="font-family: inherit;"><img alt="Existing stopped from running in loadrunner" border="0" height="148" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjZckoDXBYpbOiYmzu37Zq8L93L_9DxOx9AkAtxor1EmjxNqE5aBpdYs-a5SXUbqwHNXmj4PR4uVsJGuspHr-_Kfzv9dRHSpPPO-pJARSA2msrBliwPv1xB_4ilEnYebSP_zipUdtpV1w/s400/Existing+stopped+from+running+in+loadrunner.png" title="Existing stopped from running in loadrunner" width="400" /></span></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="font-family: inherit;">EXISTING STOPPED FROM RUNNING IN LOADRUNNER</span></td></tr>
</tbody></table>
<span style="font-family: inherit;"><br /></span>
<h2 style="text-align: left;">
<span style="font-family: inherit;">Also Read:</span></h2>
<a href="https://hploadrunnertutorial.blogspot.in/2016/05/how-to-create-a-script-for-rest-api-in-loadrunner.html" target="_blank"><span style="font-family: inherit;">Loadrunner REST API testing.</span></a><br />
<a href="https://hploadrunnertutorial.blogspot.in/2016/10/lrxmlfind-function-example.html" target="_blank"><span style="font-family: inherit;">lr_xml_find examples.</span></a><br />
<a href="https://hploadrunnertutorial.blogspot.in/2017/02/how-to-design-a-goal-oriented-scenario.html" target="_blank"><span style="font-family: inherit;">Design Goal oriented Scenario- Controller</span></a><br />
<a href="https://hploadrunnertutorial.blogspot.in/2017/02/loadrunner-actions.html" target="_blank"><span style="font-family: inherit;">Loadrunner Actions</span></a><br />
<h2 style="text-align: left;">
<span style="font-family: inherit;">Existing Stopped From Running in Loadrunner</span></h2>
<span style="font-family: inherit;">You will face this type of issues in Loadrunner Controller because of below activities,those are</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">1.Using Loadrunner old versions.</span><br />
<span style="font-family: inherit;">2.HP UFT is installed after installing HP Loadrunner.</span><br />
<span style="font-family: inherit;">3.Installing HP Loadrunner after installing HP UFT.</span><br />
<span style="font-family: inherit;">4.Hp Loadrunner and HP UFT versions are not matching like UFT 11.50 and Loadrunner 12.50.</span><br />
<span style="font-family: inherit;">5.Your C drive space is very less.</span><br />
<h2 style="text-align: left;">
<span style="font-family: inherit;">Solution to Resolve:</span></h2>
<span style="font-family: inherit;">I have faced this type of problems while working with Loadrunner Controller for Web-services Scripting ,not able to identify what is the issue actually,while running scripts all the Vusers are not getting stopped and not able to stop the Vusers manually because Stop button is in disable mode.All the Vuser are stopped under Existing Status but still script is executing in case Duration is completed i.e Specified Time is completed ex:10 minutes.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: Georgia, Times New Roman, serif;"><span style="color: red;"><b>Note : </b></span>While You are facing this type of issues,immediately you need to check your C drive </span><br />
<span style="font-family: Georgia, Times New Roman, serif;">space,if you want to run your script perfectly with out any problems in Controller then your </span><br />
<span style="font-family: Georgia, Times New Roman, serif;">C drive should have above 1 GB space.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">In this situation when i trying to open Analysis controller giving error message as Not enough space in C with some path,then i understood ,immediately i have deleted some unimportant software's and deleted unimportant files in C drive then My disk space is becomes 2 GB,Then i have restarted the Scenario in Controller,it's a miracle it was working fine with out any error messages,alerts etc.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">Thank you for Reading ,please share this post in social media so that many people can read and get solution for "Existing Stopped From Running in Loadrunner".</span><span style="font-family: inherit;">Please provide your valuable comments on this post.</span><br />
<br /></div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com1tag:blogger.com,1999:blog-5531838760113583814.post-751303498884999392017-01-26T06:10:00.000-08:002017-03-22T10:50:38.610-07:00warning The string with parameter delimiters is not a parameter<div dir="ltr" style="text-align: left;" trbidi="on">
warning The string with parameter delimiters is not a parameter in loadrunner while executing the virtual user scripts for web-services with parameterization. I have created the script for web services and executed with out parameterization then it was working fine,when i execute the test script with parameter values then in Results summary execution showing error message as <strong><span style="color: blue; font-family: Georgia, Times New Roman, serif;">"warning: The string 'xxxxxx' with parameter delimiters is not a parameter."</span></strong><br />
<h2>
warning The string with parameter delimiters is not a parameter</h2>
In order to resolve this type of errors in loadrunner scripts,you have to follow below steps.<br />
<br />
1.After creation of your script should execute with out parameterization values like <span style="color: blue; font-family: Georgia, Times New Roman, serif;">{results_one}</span>.<br />
2.While creating parameterization values syntax should be as expected as <span style="font-family: Georgia, Times New Roman, serif;"><span style="color: blue;">"{parameter value}"</span>.</span><br />
3.Modify Loadrunner Run time Settings as per iterations.<br />
4.Verify duplicate parameter name for multiple different values.<br />
<h2>
Resolution:</h2>
When i am facing this problem simply i have recorded the script in another action and created new parameter names with separate csv file ,then miracle it is working or test execution is working fine.That is the reason we have check our script first then we can go for search.<br />
<h2 style="text-align: left;">
Also Read:</h2>
<a href="https://hploadrunnertutorial.blogspot.in/2016/10/lrxmlfind-function-example.html" target="_blank"><b>lr_xml_find examples</b></a><br />
<a href="https://hploadrunnertutorial.blogspot.in/2017/02/loadrunner-actions.html" target="_blank"><b>Loadrunner Actions</b></a><br />
<a href="https://hploadrunnertutorial.blogspot.in/2016/05/how-to-create-a-script-for-rest-api-in-loadrunner.html" target="_blank"><b>Create a script for REST API</b></a><br />
<a href="https://hploadrunnertutorial.blogspot.in/2017/02/how-to-design-a-goal-oriented-scenario.html" target="_blank"><b>Design Goal Oriented Scenarios</b></a><br />
<a href="https://hploadrunnertutorial.blogspot.in/2016/10/web-services-scripting-using-loadrunner.html" target="_blank"><b>Loadrunner Web Services Scripting</b></a></div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-11593910367034238762017-01-25T10:28:00.000-08:002019-05-03T11:35:26.194-07:00Transactions in Loadrunner<div dir="ltr" style="text-align: left;" trbidi="on">
Transactions in Loadrunner is classified into two types start and End transactions which is useful in identifying the response time taken for particular iterations or particular Actions for VUGen scripts. In my previous post you have learn web services scripting and Rest API scripting with examples,please read once for more information.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<b>MY BLOG POSTS HAS BEEN MOVED TO NEW WEBSITE,PLEASE VISIT LOADRUNNER TUTORIALS WITH REAL TIME EXAMPLES</b></div>
<div class="separator" style="clear: both; text-align: center;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.easyselenium.com/transactions-in-loadrunner/"><span style="font-family: Georgia, Times New Roman, serif; font-size: large;">http://www.easyselenium.com/transactions-in-loadrunner/</span></a></div>
<br />
Thank you for reading,pleases share this post with different social media so that many people will get knowledge.</div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com1tag:blogger.com,1999:blog-5531838760113583814.post-66854895826987532952017-01-13T09:45:00.000-08:002020-10-01T22:52:52.442-07:00REST API Services Testing using loadrunner<strong>REST API Services Testing using loadrunner</strong>,rest api services uses web http/html protocol while creating REST API Services scripts using virtual user generator,which is a loadrunner component.Most of the companies are using REST API services in order provide better security in customer data,fast execution for communication between<br/>multiple applications.<br/><br/><strong>Please read <span style="color: #0000ff;"><a style="color: #0000ff;" href="http://www.wikishown.com/loadrunner-tutorial/">Complete Loadrunner Tutorial</a></span></strong><br/><br/>[embed]https://youtu.be/jYlUPEC1WfE[/embed]<br/><h2>REST API Services Testing using loadrunner</h2><br/>In this post we will create REST API Services script in Virtual User Generator i.e VUGen,Please follow below steps to create script for REST API services using VUgen.<br/><h2>Steps:</h2><br/>1.REST API URL<br/>2.Which Protocol should use<br/>3.What is the input parameters<br/>4.What is the output Response<br/>5.Content- Type<br/>6.Method - GET,POST,DELETE etc.<br/><br/>Once you know all above details then it is easy to create the script with the help of below simple syntax ,plesae use below syntax for all rest api services for load testing.<br/><pre>web_custom_request("Card_validation",<br/>"URL=http://ipaddress:portno/cardApi/api1/card/linkcard",<br/>"Method=POST",<br/>"Resource=0",<br/>"EncType=application/json",<br/>"Mode=HTTP",<br/>"Body="Body={\"cardNo\":\"9898989898989898\",\"cardType\":\"CreditCard\",\"MobileNo\":\"1111111111\"}",<br/><strong><span style="color: #0000ff;">LAST</span></strong>);</pre><br/><h2>CODE Explanation:</h2><br/>As you see above code i have used web_custom_request() function which is allow users to create custom HTTP request with any useful method(POST,GET,DELETE etc)<br/><br/>1.Card_validation : Request Name<br/><h3><strong>List of Resources:</strong></h3><br/>URL<br/>Method<br/>Resource<br/>EncType<br/>Mode<br/>Body<br/><h2>Method=POST:</h2><br/>As based on above resources we will create REST API Services scripting as you see <strong><span style="color: #ff6600;">"Method=POST"</span></strong> which is posting the values to database,in case you want to get the details from the database then you can use "<strong><span style="color: #ff6600;">Method=GET</span></strong>".<br/><h2>EncType=application/json:</h2><br/>As i have used application/json because content-Type of REST API service is developed with Media Type,as REST API Services has below Media Types,those are<br/><br/>1.application/json<br/>2.application/xml<br/>3.text/xml<br/>4.multipart/form-data<br/>5.multipart/mixed<br/><br/>Most of the REST API services are developed with <span style="color: #ff6600;">application/json,application/xml and text/xml</span> media types,this one provided by developer.<br/><h2>Mode=HTTP:</h2><br/>As i mention in first paragraph REST API service is developed with HTTP protocol for data transfering to multiple systems.While creating the REST API script you need to select<br/>Web-HTTP/HTML protocol.<br/><h2>Body:</h2><br/>Body resource which contains input request parameters as i written in above script.The main rest api input request is as below<br/><pre>{<br/>"cardNo":"9898989898989898",<br/>"cardType":"CreditCard",<br/>"MobileNo":"1111111111"<br/>}</pre><br/>You can write above input request into below code in order to mention in Body resource.Please check below code.<br/><pre>"Body={\"cardNo\":\"9898989898989898\",\"cardType\":\"CreditCard\",\"MobileNo\":\"1111111111\"}"</pre><br/><h2>LAST:</h2><br/>LAST argument which tells a market which indicates the end of the field list.This total web_custom_request() function returns <strong><span style="color: #ff6600;">LR_FAIL(1) or LR_PASS(0)</span> </strong>on successful and on failure of web_custom_request()<br/>function execution.<br/><h2>Parameterization:</h2><br/>We can perform Parameterization for input parameters as we mention in Body ,Please read <strong><span style="color: #0000ff;"><a style="color: #0000ff;" href="http://www.wikishown.com/correlation-in-loadrunner-example/" target="_blank">Correlation in loadrunner</a></span></strong> post,you will get clear idea about manual and automatic correlation for any script whether it could be a web request,rest api or Web-Services.<br/><br/>Thank you for reading,i hope you got good knowledge about REST API Services Testing using loadrunner,please provide your valuable comments and suggestions on this post.Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-50252942401765475132017-01-08T01:11:00.000-08:002020-10-01T22:53:00.615-07:00Extrares in LoadrunnerExtrares in Loadrunner which generates while recording WEB-HTTP/HTML protocol applications i.e web applications. Extrares records all available resources for each and every particular web url for example <strong><span style="color: #0000ff;">http://www.wikishown.com</span></strong>. We will see Extrares with examples and how it impact the response time of your web applications.<br/><h2>Extrares in Loadrunner</h2><br/>What is Extrares in Loadrunner,While generating or recording the test scripts in VUGen (Virtual User Generator) records each and every web url and in order to load that particular url it will check what are the extra files are associated with particular web url. As Extrares loads see below recorded code for more information.<br/><pre>web_url("wikishown", <br/> "URL=<span style="color: #0000ff;">http://www.wikishown.com</span>", <br/> "Resource=0", <br/> "RecContentType=text/html", <br/> "Referer=", <br/> "Snapshot=t8.inf", <br/> "Mode=HTML", <br/> <strong><span style="color: #0000ff;">EXTRARES</span></strong>, <br/> "<span style="color: #ff0000;">Url</span>=<strong><span style="color: #008000;">images/bb_h_img2.jpg</span></strong>", ENDITEM, <br/> "<span style="color: #ff0000;">Url</span>=<strong><span style="color: #008000;">images/bb_h_img1.jpg</span></strong>", ENDITEM, <br/> "<span style="color: #ff0000;">Url</span>=<strong><span style="color: #008000;">images/bb_h_img3.jpg</span></strong>", ENDITEM, <br/> "<span style="color: #ff0000;">Url</span>=<span style="color: #008000;"><strong>images/loadingAnimation.gif</strong></span>", ENDITEM, <br/> "<span style="color: #ff0000;">Url</span>=<span style="color: #008000;"><strong>../favicon.ico", "Referer="</strong></span>, ENDITEM, <br/> <strong><span style="color: #0000ff;">LAST</span></strong>);<br/></pre><br/><span style="color: #ff6600;"><strong>EXTRARES</strong></span> recording all available images,java-script,j query, css files before loading the particular URL or pages in Virtual User Generator and while executing the Action first of all it will load all available resources i.e images,css etc files then it move to next step for execution,Here you will face problems for downloading resources because some time VUGen takes more time ,some time takes less times.<br/><iframe src="https://www.youtube.com/embed/UES7hbk5Pmk" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe><br/><h2>What should do in case Timeout for downloading resources</h2><br/>You can take below following below steps in order to overcome the problems,those are<br/><br/>1.Comment the EXTRARES in the script.<br/>2.Increase Step download Timeout(Sec).<br/>3.You can use web_set_timeout() function.<br/><br/>In case EXTRARES are commented while executing the Test script then it is not possible to estimate or calculate average response time for application transactions.It will look like below with comments.As per below script EXTRARES will not load and it will execute the step successfully.<br/><pre>web_url("wikishown", <br/> "URL=http://www.wikishown.com", <br/> "Resource=0", <br/> "RecContentType=text/html", <br/> "Referer=", <br/> "Snapshot=t8.inf", <br/> "Mode=HTML", <br/> /*EXTRARES, <br/> "Url=images/bb_h_img2.jpg", ENDITEM, <br/> "Url=images/bb_h_img1.jpg", ENDITEM, <br/> "Url=images/bb_h_img3.jpg", ENDITEM, <br/> "Url=images/loadingAnimation.gif", ENDITEM, <br/> "Url=../favicon.ico", "Referer=", ENDITEM, */<br/> LAST);</pre><br/><h2>Step Download Timeout</h2><br/>Step download Timeout is one of the run time setting menu under Internet Protocols,please read <strong><span style="color: #0000ff;"><a style="color: #0000ff;" href="http://www.wikishown.com/error-27751-step-download-timeout-120-seconds-expired/">Step Download Timeout(Sec)</a></span></strong> post for more details.Coming to third point you can use <strong><span style="color: #ff6600;">web_set_timeout("STEP","")</span></strong> function to increase the timeout before web_url() in order to specify more time for downloading available resources.The script looks like below with <span style="color: #0000ff;"><strong>web_set_timeout()</strong></span>.<br/><pre>web_set_timeout("STEP","60");<br/>web_url("wikishown", <br/> "URL=http://www.wikishown.com", <br/> "Resource=0", <br/> "RecContentType=text/html", <br/> "Referer=", <br/> "Snapshot=t8.inf", <br/> "Mode=HTML", <br/> /*EXTRARES, <br/> "Url=images/bb_h_img2.jpg", ENDITEM, <br/> "Url=images/bb_h_img1.jpg", ENDITEM, <br/> "Url=images/bb_h_img3.jpg", ENDITEM, <br/> "Url=images/loadingAnimation.gif", ENDITEM, <br/> "Url=../favicon.ico", "Referer=", ENDITEM, */<br/> LAST);</pre><br/>Let's understand the line web_set_timeout("STEP","60") ,here STEP indicates Time–out on each VuGen step ,indicates on which step timeout should apply.<br/><strong>STEP -</strong> indicates on which step timeout should apply<br/><strong>60 -</strong> Indicates how many seconds.<br/><br/>I hope you got good information on Extrares in Loadrunner,in case you like my post please provide your valuable comments and suggestions.Thank you for reading my <strong><span style="color: #0000ff;"><a style="color: #0000ff;" href="http://www.wikishown.com">website</a></span></strong>.Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com1tag:blogger.com,1999:blog-5531838760113583814.post-52532600622691390762017-01-07T19:33:00.000-08:002020-10-01T22:53:43.753-07:00Error: -27751: Step download timeout (120 seconds) has expiredError: -27751: Step download timeout 120 seconds has expired downloading resource,While working with HTTP/HTML protocols or web applications you will face some problems while executing the test scripts in loadrunner - VUGen component.The following error message gives you when <strong><span style="color: #800000;">web_set_url(url name)</span></strong> downloading the required resources which could be as follow,those are declare or recorded in <strong><span style="color: #800000;">EXTRARES</span></strong> as below<br/><h2>Error: -27751: Step download timeout 120 seconds has expired</h2><br/><pre style=""background-color: #C9E5FF;">web_url("bigbazaar", <br/> "URL=http://wikishown.com/", <br/> "Resource=0", <br/> "RecContentType=text/html", <br/> "Referer=", <br/> "Snapshot=t8.inf", <br/> "Mode=HTML", <br/> EXTRARES, <br/> "Url=images/bb_h_img2.jpg", ENDITEM, <br/> "Url=images/bb_h_img1.jpg", ENDITEM, <br/> "Url=images/bb_h_img3.jpg", ENDITEM, <br/> "Url=images/loadingAnimation.gif", ENDITEM, <br/> "Url=../favicon.ico", "Referer=", ENDITEM, <br/> LAST);</pre><br/>In order to execute web_url() successfully Virtual User generator first downloads EXTRARES and it start execute the web_url() function ,in case downloading time completed as per setting then you will error message in reply log as<br/><br/><span style="color: #ff0000;"><strong>Error: -27751: Step download timeout (120 seconds) has expired when downloading resource</strong></span><br/><br/>Resource downloading default time is 120 seconds,you can change resource downloading settings in Run time settings,please follow below steps to change resource<br/>downloading time settings.<br/><br/><strong>STEP 1 :</strong> Open Run Time Settings.<br/><strong>STEP 2 :</strong> Go to <strong><span style="color: #0000ff;"><span style="color: #800000;">Internet Protocol - Preferences</span></span><span style="color: #0000ff;">.</span></strong><br/><br/>[caption id="attachment_1020" align="aligncenter" width="561"]<img class="wp-image-1020 size-full" title="Error: -27751: Step download timeout (120 seconds) has expired" src="http://www.wikishown.com/wp-content/uploads/2017/01/Preferences-Options.png" alt="Error: -27751: Step download timeout (120 seconds) has expired" width="561" height="382" /> Preferences Options[/caption]<br/><br/><strong>STEP 3 :</strong> Click on <span style="color: #800000;"><strong>Options</strong></span> button on preferences window.<br/><strong>STEP 4 :</strong> Just scroll down to <span style="color: #800000;"><strong>General - Step Download Timeout (secs)</strong></span> here default time is <strong><span style="color: #800000;">120 seconds</span></strong>.You can change it to your desired value.<br/><strong>STEP 5 :</strong>Click on OK and again Click on OK button<br/><br/>In case you want to set timeout value in script itself then you can use web_set_timeout() function to increase time limit in script for downloading resources as below<br/><h2>web_set_timeout()</h2><br/>The function which works to wait until given time to CONNECT,RECEIVE OR STEP to complete particular action.<br/><pre style=""background-color: #C9E5FF;">web_set_timeout("STEP","60");</pre><br/>After setting the time increased limit,now try to run your script in VUGen ,you will not face any problems while downloading the resources and test script will run successfully with out any problem.Please provide your valuable comments on this posts, so that i will know that you got solution.<br/><h3 style="text-align: center;"><strong><span style="color: #0000ff;"><a style="color: #0000ff;" href="http://www.wikishown.com/lr_xml_extract-example/">PREVIOUS TOPIC</a></span></strong></h3>Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-85359977349728274162016-12-15T09:42:00.000-08:002020-10-01T22:53:51.468-07:00lr_xml_extract example<strong>lr_xml_extract function</strong> extract particular value or total XML details from a String,lr_xml_extract example provides complete real time examples to work with different load testing scripts in your real time projects.<br/><br/><strong><span style="color: #ff0000;">Loadrunner Articles:</span> <a href="http://www.wikishown.com/lr_xml_find-function-example/">LR_XML_FIND function Examples</a></strong><br/><h2>What is lr_xml_extract?</h2><br/>lr_xml_extract function extract or retrieve the value from a XML which could be input parameters or it could be XML response/Results.We can say this function extract the XML pieces you can say particular data from a String.In this post i am taking SOAP web-services example to extract value from a XML why because web services are designed in the form of XML form.<br/><h2>Syntax</h2><br/>lr_xml_extract([<XML input string>] ,[<XML Parameter>] ,[<XML Query>],[LAST]);<br/><h2>Example:</h2><br/><pre>lr_xml_extract("XML={CreateFlightOrder_101}","XMLFragmentParam=Result","Query=CreateFlightOrderResult/TotalPrice",LAST)</pre><br/>1.XML Input String: It is the string indicates from which XML fragments results or input parameters should take or identify.<br/><strong>Example :</strong> XML={CreateFlightOrder_101}<br/><br/><strong>2.XML parameters:</strong> In this specifications we are going to save the results as per Query i.e XMLFragmentParam=Result,Here i am saving XML query results into Result parameter and displaying those string values with the help of lr_output_message function.<br/><br/><strong>3.XML Query :</strong> It is very important to write the query for XML fragment whether this could be for Input parameter or it could be for XML response.You can write XML Query as per your requirement ,most of the time we are writing the query in order to verify the value in XML Response to validate the same.<br/>Example : Query=CreateFlightOrderResult/TotalPrice<br/><br/><strong>4.LAST :</strong> lAST it is giving two results one is if Query is satisfied then it will give you the results as PASS from LR_PASS and in case XML Query is not satisfied then it will give you results as FAIL from LR_FAIL.<br/><h2>lr_xml_extract example</h2><br/>Please understand below example ,here i am using Web Services Scripting,in case you want to learn <span style="color: #ff0000;"><strong><a style="color: #ff0000;" href="http://www.wikishown.com/web-services-scripting-using-loadrunner/">Web Services Scripting</a></strong></span> please read my article.Let's see the below example.<br/><h2>Create Flight Order Request:</h2><br/>Below are the SOAP Web Services XML Requests and Response.<br/><pre><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hp="HP.SOAQ.SampleApp"><br/> <soapenv:Header/><br/> <soapenv:Body><br/> <hp:CreateFlightOrder><br/> <hp:FlightOrder><br/> <hp:Class>Economy</hp:Class><br/> <hp:CustomerName>Rajesh Kuchana</hp:CustomerName><br/> <hp:DepartureDate>2016-12-17</hp:DepartureDate><br/> <hp:FlightNumber>1089</hp:FlightNumber><br/> <hp:NumberOfTickets>1</hp:NumberOfTickets><br/> </hp:FlightOrder><br/> </hp:CreateFlightOrder><br/> </soapenv:Body><br/></soapenv:Envelope></pre><br/><h2>Create Flight Order Response</h2><br/><pre><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><br/> <s:Body><br/> <CreateFlightOrderResponse xmlns="HP.SOAQ.SampleApp"><br/> <CreateFlightOrderResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><br/> <OrderNumber>50</OrderNumber><br/> <TotalPrice>196</TotalPrice><br/> </CreateFlightOrderResult><br/> </CreateFlightOrderResponse><br/> </s:Body><br/></s:Envelope></pre><br/>Now if you want to extract <TotalPrice>196</TotalPrice> then you can write XML Query as below<br/><pre>Query=CreateFlightOrderResult/TotalPrice</pre><br/><strong>CreateFlightOrderResult</strong> : Starting opening tag under this tag TotalPrice value is displaying<br/><strong>TotalPrice :</strong> This is the value we want to extract from XML response.<br/><br/>You can write for other value i.e <OrderNumber>50</OrderNumber><br/><pre>Query=CreateFlightOrderResult/OrderNumber</pre><br/>Then it will print the results as <OrderNumber>50</OrderNumber><br/><h2>Loadrunner Web-Services Script:</h2><br/>I have recorded this script with the help of WebServices protocols and as per above XML Query path prepared lr_xml_extract function.<br/><pre>Action()<br/>{<br/> lr_start_transaction("01_CreateFlightOrder");<br/> web_service_call("StepName=CreateFlightOrder_101",<br/> "SOAPMethod=HPFlights_Service|FlightsServiceMethods|CreateFlightOrder",<br/> "ResponseParam=response",<br/> "Service=HPFlights_Service",<br/> "ExpectedResponse=SoapResult",<br/> "Snapshot=t1477884670.inf",<br/> BEGIN_ARGUMENTS,<br/> "xml:FlightOrder="<br/> "<FlightOrder>"<br/> "<Class>Economy</Class>"<br/> "<CustomerName>Rajesh Kuchana</CustomerName>"<br/> "<DepartureDate>2016-12-17</DepartureDate>"<br/> "<FlightNumber>1089</FlightNumber>"<br/> "<NumberOfTickets>1</NumberOfTickets>"<br/> "</FlightOrder>",<br/> END_ARGUMENTS,<br/> BEGIN_RESULT,<br/> "CreateFlightOrderResult/OrderNumber=Param_OrderNumber",<br/> "CreateFlightOrderResult/TotalPrice=Param_TotalPrice",<br/> END_RESULT,<br/> LAST);<br/> <br/> //Extract the value using lr_xml_extract function<br/> lr_xml_extract("XML={CreateFlightOrder_101_Response}",<br/> "Query=CreateFlightOrderResult/TotalPrice","XMLFragmentParam=Result",LAST);<br/> <br/> //Print the Results with the help of lr_output_message() function <br/> lr_output_message(lr_eval_string("Extracted Value is :-{Result}")); <br/> <br/> lr_end_transaction("01_CreateFlightOrder",LR_AUTO);<br/><br/>return 0;<br/>}</pre><br/>Once you run above script VuGen displays all your each and every step details in ReplyLog and XML Response,lr_xml_extract function results as below.<br/><h2>Output:</h2><br/>Action.c(4): Notify: Saving Parameter "CreateFlightOrder_101_Response = <CreateFlightOrder><CreateFlightOrderResult><OrderNumber>54</OrderNumber><TotalPrice>196</TotalPrice></CreateFlightOrderResult></CreateFlightOrder>".<br/>Action.c(4): Notify: Saving Parameter "response = <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><CreateFlightOrderResponse xmlns="HP.SOAQ.SampleApp"><CreateFlightOrderResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><OrderNumber>54</OrderNumber><TotalPrice>196</TotalPrice></CreateFlightOrderResult></CreateFlightOrderResponse></s:Body></s:Envelope>".<br/>Action.c(4): Notify: Saving Parameter "Param_OrderNumber = 54".<br/>Action.c(4): Notify: Saving Parameter "Param_TotalPrice = 196".<br/>Action.c(4): Web service call "CreateFlightOrder_101" was successful<br/>Action.c(30): Notify: Parameter Substitution: parameter "CreateFlightOrder_101_Response" = "<CreateFlightOrder><CreateFlightOrderResult><OrderNumber>54</OrderNumber><TotalPrice>196</TotalPrice></CreateFlightOrderResult></CreateFlightOrder>"<br/><strong><span style="color: #0000ff;">Action.c(30): Notify: Saving Parameter "Result = <TotalPrice>196</TotalPrice>".</span></strong><br/><strong><span style="color: #0000ff;">Action.c(30): "lr_xml_extract" succeeded, 1 match processed</span></strong><br/>Action.c(32): Notify: Parameter Substitution: parameter "Result" = "<TotalPrice>196</TotalPrice>"<br/>Action.c(32): <strong><span style="color: #0000ff;">Extracted Value is :-<TotalPrice>196</TotalPrice></span></strong><br/>Action.c(34): Notify: Transaction "01_CreateFlightOrder" ended with "<span style="color: #0000ff;"><strong>Pass</strong></span>" status (Duration: 1.8496 Wasted Time: 0.3214).<br/><br/>[caption id="attachment_995" align="aligncenter" width="569"]<img class="size-full wp-image-995" src="http://www.wikishown.com/wp-content/uploads/2016/12/lr_xml_extract-Results.png" alt="Reply Summary" width="569" height="199" /> Reply Summary[/caption]<br/><h2>What have you Learned?</h2><br/>1.What is lr_xml_extract function<br/>2.lr_xml_extract example<br/>3.How to extract value using lr_xml_extract<br/>4.How to print output message using lr_output_message.<br/><br/>Please provide your valuable comments on this post and as well as provide your suggestions,in case you like my post please share it to different social networking sites.Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-72434294637749928062016-10-30T10:40:00.000-07:002020-10-01T22:54:00.007-07:00Loadrunner FunctionsLoadrunner Functions will give you brief idea about what are the functions are available in Loadrunner in Virtual User Generator,Let's see functions one by one.<br/><h2>Loadrunner Functions</h2><br/>Virtual User Generator has below following functions.We will see each functions examples in Next posts.<br/><br/>1.Utility Functions<br/>2.AJAX Click and Reference Functions<br/>3.AMF Functions<br/>4.Citrix Vuser Functions<br/>5.COM Vuser Functions<br/>6.Datavase Vuser Functions<br/>7.DNS Functions<br/>8.Flex Functions<br/>9.FTP Vuser Functions<br/>10.IMAP Functions<br/>11.JAVA over HTTP Functions<br/>12.Listing Directory Functions<br/>13.Media Player Functions<br/>14.MS Exchange Functions<br/>15.Dot NET Functions<br/>16.Oracle NCA Functions<br/>17.Remote Desktop Functions<br/>18.SAP Functions<br/>19.WEB Vuser Functions<br/>20.Web Services Functions - You can read <strong><span style="color: #0000ff;"><a style="color: #0000ff;" href="http://www.wikishown.com/web-services-scripting-using-loadrunner/" target="_blank">Web Services Scripting</a></span></strong><br/>21.XML Functions<br/>22.Silver Light Functions<br/><br/>With the help of above functions you can work on different platform applications and in different ways and you can verify performance testing of different platform applications.I hope you got some information about Loadrunner Functions available in Virtual User Generator(VUGEN).Thank you for reading,please share and provide your valuable comments on this topic.Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-26354312332351449062016-10-30T04:35:00.000-07:002020-10-01T22:54:08.676-07:00Parameterization in Loadrunner examplesWelcome to parameterization in loadrunner examples ,in my previous post you learned <strong><span style="color: #0000ff;"><a style="color: #0000ff;" href="http://www.wikishown.com/web-services-scripting-using-loadrunner/">Web Services scripting</a></span></strong> in Loadrunner,now in this post you will learn how to do parameterization for your test scripts in Virtual User Generator,in order to work with multiple test data to verify how your test scripts works correctly.<br/><h2>Parameterization in Loadrunner examples</h2><br/>Parameterization means Replacing hard coded values in the script with the test data is called Parameterization. Parameterization will helps to reduce script size & Avoid cache effect.Now let's see below example to understand clearly to perform parameterization of test script in loadrunner.<br/><br/>I am using Web Services script to perform parameterization to understand clearly,you can use Web Applications but while working with Web Services you will learn more knowledge.Let's see below example.<br/><h2>Web Service Request</h2><br/><!-- HTML generated using hilite.me --><br/><div style="background: #f0f0f0; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;"><br/><pre style="margin: 0; line-height: 125%;">Action()<br/>{<br/> web_service_call( <span style="color: #4070a0;">"StepName=CreateFlightOrder_101"</span>,<br/> <span style="color: #4070a0;">"SOAPMethod=HPFlights_Service|FlightsServiceMethods|CreateFlightOrder"</span>,<br/> <span style="color: #4070a0;">"ResponseParam=response"</span>,<br/> <span style="color: #4070a0;">"Service=HPFlights_Service"</span>,<br/> <span style="color: #4070a0;">"ExpectedResponse=SoapResult"</span>,<br/> <span style="color: #4070a0;">"Snapshot=t1477723319.inf"</span>,<br/> BEGIN_ARGUMENTS,<br/> <span style="color: #4070a0;">"xml:FlightOrder="</span><br/> <span style="color: #4070a0;">"<FlightOrder>"</span><br/> <span style="color: #4070a0;">"<Class>Economy</Class>"</span><br/> <span style="color: #4070a0;">"<CustomerName>Rajesh kumar</CustomerName>"</span><br/> <span style="color: #4070a0;">"<DepartureDate>2016-10-31</DepartureDate>"</span><br/> <span style="color: #4070a0;">"<FlightNumber>1089</FlightNumber>"</span><br/> <span style="color: #4070a0;">"<NumberOfTickets>1</NumberOfTickets>"</span><br/> <span style="color: #4070a0;">"</FlightOrder>"</span>,<br/> END_ARGUMENTS,<br/> BEGIN_RESULT,<br/> <span style="color: #4070a0;">"CreateFlightOrderResult/OrderNumber=Param_OrderNumber"</span>,<br/> <span style="color: #4070a0;">"CreateFlightOrderResult/TotalPrice=Param_TotalPrice"</span>,<br/> END_RESULT,<br/> LAST);<br/><br/> <span style="color: #007020; font-weight: bold;">return</span> <span style="color: #40a070;">0</span>;<br/>}<br/></pre><br/></div><br/>For Above Create Flight Order request we are going to perform parameterization for Below tags/input arguments to complete test scenario for multiple iterations.<br/><h3>Flight Order</h3><br/>1.Class<br/>2.Customer Name<br/>3.DepartureDate<br/>4.Flight Number<br/>5.NumberOfTickets<br/><div style="background: #111111; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;"><br/><pre style="margin: 0; line-height: 125%;"><span style="color: #0086d2;">"xml:FlightOrder="</span><br/><span style="color: #0086d2;">"<FlightOrder>"</span><br/><span style="color: #0086d2;">"<Class>Economy</Class>"</span><br/><span style="color: #0086d2;">"<CustomerName>Rajesh kumar</CustomerName>"</span><br/><span style="color: #0086d2;">"<DepartureDate>2016-10-31</DepartureDate>"</span><br/><span style="color: #0086d2;">"<FlightNumber>1089</FlightNumber>"</span><br/><span style="color: #0086d2;">"<NumberOfTickets>1</NumberOfTickets>"</span><br/><span style="color: #0086d2;">"</FlightOrder>"</span><span style="color: #ffffff;">,</span><br/></pre><br/></div><br/>Why i have taken above input arguments means ,in order to create the Flight order you should require above input parameters to get response and i am taking just three records to do parameterization in loadrunner.<br/><h3>STEP 1:</h3><br/>1.Select the value i.e Economy in Class tag.<br/>2.Right Click on Selected Value.<br/>3.Click on Replace with Parameter - Create New Parameter.<br/><br/>[caption id="attachment_893" align="aligncenter" width="727"]<img class="size-full wp-image-893" src="http://www.wikishown.com/wp-content/uploads/2016/10/Create-New-Parameter.png" alt="Create New Parameter" width="727" height="394" /> Create New Parameter[/caption]<br/><br/>4.Enter Parameter Name as Class_name.<br/>5.Click on Properties button.<br/><br/>[caption id="attachment_894" align="aligncenter" width="542"]<img class="size-full wp-image-894" src="http://www.wikishown.com/wp-content/uploads/2016/10/Create-Parameter_Properties.png" alt="Create Parameter_Properties" width="542" height="276" /> Create Parameter_Properties[/caption]<br/><br/>6.Parameter Properties window will open.<br/><h3>STEP 2:</h3><br/>Now we need to create CSV file for test data please follow below steps to create CSV file.<br/><br/>1.Click on Browse button and go to your script directory path E:\Loadrunner_Tutorials\FlightService.<br/><br/>[caption id="attachment_895" align="aligncenter" width="547"]<img class="size-full wp-image-895" src="http://www.wikishown.com/wp-content/uploads/2016/10/Parameter-Properties_FilePath.png" alt="Parameter Properties_FilePath" width="547" height="569" /> Parameter Properties_FilePath[/caption]<br/><br/>2.Select Files of Type as All Files and Enter File name as CreateFlightOrder.csv extension.<br/><br/>[caption id="attachment_896" align="aligncenter" width="579"]<img class="size-full wp-image-896" src="http://www.wikishown.com/wp-content/uploads/2016/10/Create-Flight-Order-CSV-file.png" alt="Create Flight Order CSV file" width="579" height="499" /> Create Flight Order CSV file[/caption]<br/><br/>3.Click on Open Button,now in Parameter Properties window File path will shows as csv file.<br/>4.Click on Create Table button and Click on OK button.<br/><br/>[caption id="attachment_898" align="aligncenter" width="530"]<img class="size-full wp-image-898" src="http://www.wikishown.com/wp-content/uploads/2016/10/Create-Table.png" alt="Create Table" width="530" height="403" /> Create Table[/caption]<br/><br/>[caption id="attachment_897" align="aligncenter" width="465"]<img class="size-full wp-image-897" src="http://www.wikishown.com/wp-content/uploads/2016/10/Create-Table_Column-Names.png" alt="Create Table_Column Names" width="465" height="407" /> Create Table_Column Names[/caption]<br/><br/>5.Now it will create Given Parameter Name as Column name in table and selected Value as Value in Row.<br/><h3>STEP 3:</h3><br/>1.Now it's Time to Select some settings in Parameter Properties window for each columns to pick up Unique test data for each iteration.<br/>2.Select Column name in Select Column tab - By Name as below screenshot and Select Next Row as Unique from drop down lists.<br/><br/>[caption id="attachment_899" align="aligncenter" width="546"]<img class="size-full wp-image-899" src="http://www.wikishown.com/wp-content/uploads/2016/10/Parameter-Properties_SelectColumn.png" alt="Parameter Properties_SelectColumn" width="546" height="570" /> Parameter Properties_SelectColumn[/caption]<br/><br/>3.Click on Close button.<br/>4.Click on OK button.<br/>5.Click on No button on HP Virtual User Generator pop up.<br/><h3>STEP 4:</h3><br/>1.Now select second value i.e CustomerName tag value i.e Rajesh kumar.<br/>2.Right Click on Selected Value.<br/>3.Click on Replace with Parameter - Create New Parameter.<br/>4.Enter Parameter Name as Cust_Name.<br/>5.Click on Properties button.<br/>6.Now Select CreateFlightOrder.csv file.<br/>7.Click on Add Column,click on OK button.<br/><br/>[caption id="attachment_900" align="aligncenter" width="420"]<img class="size-full wp-image-900" src="http://www.wikishown.com/wp-content/uploads/2016/10/Add-Column.png" alt="Add Column" width="420" height="299" /> Add Column[/caption]<br/><br/>8.Repeat same steps for DepartureDate,FlightNumber and NumberOfTickets,now your Parameter Properties window looks like below.<br/><br/>[caption id="attachment_901" align="aligncenter" width="675"]<img class="size-full wp-image-901" src="http://www.wikishown.com/wp-content/uploads/2016/10/Parameter-List-1.png" alt="Parameter List" width="675" height="607" /> Parameter List[/caption]<br/><br/>9.Click on SAVE button in VUGen window.<br/>10.Now Test Script will looks as below with parameters.<br/><!-- HTML generated using hilite.me --><br/><div style="background: #f0f0f0; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;"><br/><pre style="margin: 0; line-height: 125%;">Action()<br/>{<br/>lr_start_transaction(<span style="color: #4070a0;">"01_CreateFlight_Order"</span>);<br/>web_service_call( <span style="color: #4070a0;">"StepName=CreateFlightOrder_101"</span>,<br/><span style="color: #4070a0;">"SOAPMethod=HPFlights_Service|FlightsServiceMethods|CreateFlightOrder"</span>,<br/><span style="color: #4070a0;">"ResponseParam=response"</span>,<br/><span style="color: #4070a0;">"Service=HPFlights_Service"</span>,<br/><span style="color: #4070a0;">"ExpectedResponse=SoapResult"</span>,<br/><span style="color: #4070a0;">"Snapshot=t1477723319.inf"</span>,<br/>BEGIN_ARGUMENTS,<br/><span style="color: #4070a0;">"xml:FlightOrder="</span><br/><span style="color: #4070a0;">"<FlightOrder>"</span><br/><span style="color: #4070a0;">"<Class>{Class_name}</Class>"</span><br/><span style="color: #4070a0;">"<CustomerName>{Cust_Name}</CustomerName>"</span><br/><span style="color: #4070a0;">"<DepartureDate>{Departure_Date}</DepartureDate>"</span><br/><span style="color: #4070a0;">"<FlightNumber>{Flight_Number}</FlightNumber>"</span><br/><span style="color: #4070a0;">"<NumberOfTickets>{No_Tickets}</NumberOfTickets>"</span><br/><span style="color: #4070a0;">"</FlightOrder>"</span>,<br/>END_ARGUMENTS,<br/>BEGIN_RESULT,<br/><span style="color: #4070a0;">"CreateFlightOrderResult/OrderNumber=Param_OrderNumber"</span>,<br/><span style="color: #4070a0;">"CreateFlightOrderResult/TotalPrice=Param_TotalPrice"</span>,<br/>END_RESULT,<br/>LAST);<br/>lr_end_transaction(<span style="color: #4070a0;">"01_CreateFlight_Order"</span>,LR_AUTO);<br/><br/><span style="color: #007020; font-weight: bold;">return</span> <span style="color: #40a070;">0</span>;<br/>}<br/></pre><br/></div><br/><h3>STEP 5:</h3><br/>1.Now go to Test Script directory path to Edit CSV file E:\Loadrunner_Tutorials\FlightService.<br/>2.Open Your CSV file with Notepad++ or Notepad,you can open/edit csv file data in Parameter tab of Virtual User Generator.<br/>3.Enter your test data in csv file.Now your csv file will display as below.<br/><br/>[caption id="attachment_902" align="aligncenter" width="711"]<img class="size-full wp-image-902" src="http://www.wikishown.com/wp-content/uploads/2016/10/Edit-with-Notepad.png" alt="Edit with Notepad" width="711" height="319" /> Edit with Notepad[/caption]<br/><br/>4.Save your script in Vugen window.<br/><h3>STEP 6:</h3><br/>1.Now it's time to change settings for Run Time settings.<br/>2.Click on <strong><span style="color: #0000ff;"><a style="color: #0000ff;" href="http://www.wikishown.com/loadrunner-runtime-settings/" target="_blank">Run Time Settings</a></span></strong> in Solution Explorer.<br/><br/>[caption id="attachment_904" align="aligncenter" width="505"]<img class="size-full wp-image-904" src="http://www.wikishown.com/wp-content/uploads/2016/10/Run-Time-Settings-2.png" alt="Run Time Settings" width="505" height="446" /> Run Time Settings[/caption]<br/><br/>3.In Run Time settings go to Run Login<br/>4.Enter Number of Iterations to run ,as per CSV file 3 because 3 records i have inserted in CSV file.<br/><br/>[caption id="attachment_905" align="aligncenter" width="533"]<img class="size-full wp-image-905" src="http://www.wikishown.com/wp-content/uploads/2016/10/Run-Time-Settings-Run-Logic.png" alt="Run Time Settings-Run Logic" width="533" height="402" /> Run Time Settings-Run Logic[/caption]<br/><br/>5.Click on OK<br/>6.Go to Log - Select Extended Log-Select All Check Boxes.<br/><br/>[caption id="attachment_906" align="aligncenter" width="609"]<img class="size-full wp-image-906" src="http://www.wikishown.com/wp-content/uploads/2016/10/Run-Time-Settings-Log.png" alt="Run Time Settings - Log" width="609" height="440" /> Run Time Settings - Log[/caption]<br/><br/>7.Click on OK button.<br/><h3>STEP 7:</h3><br/>Now Save your changes and Click on RUN icon in VUGen window.Your script execute for three time because Number of Iterations is 3 with unique test data.<br/><br/>[caption id="attachment_892" align="aligncenter" width="195"]<img class="size-full wp-image-892" src="http://www.wikishown.com/wp-content/uploads/2016/10/Run.png" alt="Run" width="195" height="72" /> <strong>Run</strong>[/caption]<br/><h2>Replay Summary</h2><br/>[caption id="attachment_889" align="aligncenter" width="470"]<img class="size-full wp-image-889" src="http://www.wikishown.com/wp-content/uploads/2016/10/Replay-Summary-1.png" alt="Replay Summary" width="470" height="400" /> Replay Summary[/caption]<br/><h2>Replay Status</h2><br/>[caption id="attachment_890" align="aligncenter" width="799"]<img class="size-full wp-image-890" src="http://www.wikishown.com/wp-content/uploads/2016/10/Replay-Status.png" alt="Replay Status" width="799" height="365" /> Replay Status[/caption]<br/><h2>Test Results</h2><br/>[caption id="attachment_891" align="aligncenter" width="769"]<img class="size-full wp-image-891" src="http://www.wikishown.com/wp-content/uploads/2016/10/Test-Results-1.png" alt="Test Results" width="769" height="502" /> Test Results[/caption]<br/><br/>I hope you understood the concept of Parameterization in loadrunner with above example,please share my post and provide your valuable comments,suggestions on this post.Thank you for reading.Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-3905693241856110782016-10-29T07:45:00.000-07:002019-05-03T11:28:19.542-07:00Web Services Scripting Using Loadrunner<div dir="ltr" style="text-align: left;" trbidi="on">
Web services scripting using loadrunner tutorial gives you clear details with real time examples,in my previous post i have given prepare script for REST API in loadrunner please go through once.<br />
<h2 style="text-align: left;">
What Are Web Services?</h2>
Web Services are client and server based applications which communicate on the world wide web's(WWW) and HTTP - Hyper Text Transfer Protocol.Web Services includes SOAP,REST and JSON implementations,with the help of Web Services applications communicates with another systems/applications or transfer data from one system to another system.<br />
<h2 style="text-align: left;">
This blog is moved to my new WebSite,Please Read all New POSTS with REAL time examples.</h2>
<div>
<br /></div>
<div>
<h2 style="text-align: left;">
<a href="http://www.easyselenium.com/web-services-scripting-using-loadrunner/" target="_blank">LOADRUNNER TUTORIALS WITH REAL TIME EXAMPLES ,</a></h2>
</div>
<div>
<a href="http://www.easyselenium.com/web-services-scripting-using-loadrunner/"><span style="font-family: Georgia, Times New Roman, serif; font-size: large;">http://www.easyselenium.com/web-services-scripting-using-loadrunner/</span></a></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com2tag:blogger.com,1999:blog-5531838760113583814.post-80273978095475468182016-10-22T06:59:00.000-07:002020-10-01T22:54:16.349-07:00Effort Estimation template for performance testingWelcome to Loadrunner ,in this Effort Estimation template for performance testing you will learn how to create Load/Performance testing Effort Estimation for different Business scenarios.Actually what is Effort Esstimation in Software Testing,Effort Estimation nothing but testing plan for particular project or component as per available number of Employes and number of testing hours/days required to complete the testing.Let's discuss or learn with real time examples.<br/><h2>Effort Estimation template for performance testing</h2><br/>Performance Testing Effort Estimation template have different points to consider before preparing the estimation for your project or applications or Business process,some of the major factors are<br/><br/>1.Business process Scenario<br/>2.What are the major projects are available right now<br/>3.How much Employe/Resources can afford on this project(In case handling Multiple projects)<br/>4.What are the transaction steps involved<br/><h2>Test Estimation Effort Template</h2><br/>Test Estimate Template contains different fields as below<br/><br/>1.Doc Ref.No<br/>2.Business Process<br/>3.Performance Script<br/>4.Performance Script Details<br/>5.No of Hours(Resource-based)<br/><h2>Doc Reference No</h2><br/>Doc Reference Number refers business process FSD or BRD or Business NFR doc number like 1.2,1.3 etc.So here it could be Doc 1.2<br/><h2>Business Process</h2><br/>Business process means one scenario like Send an email from Gmail application.In this business scenario you can find number of steps to perform to complete one transaction as below<br/><br/>1.Open Gmail<br/>2.Login with valid credentials<br/>3.It will display inbox,<br/>4.Click Compose<br/>5.Enter To address,cc,Subject<br/>6.Enter Mail Body<br/>7.Attachments etc<br/>8.Click on Send<br/><br/><iframe src="https://www.youtube.com/embed/9m8XZ5BnyYE" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe><br/><br/>As per above step's you have to identify how much time it will take to create the script in Vugen.<br/><h2>Performance Script Details</h2><br/>Performance Scrip details have different various point as below<br/><br/><strong>1.Vuser Script Recording</strong> - To Record scripts in Virtual User Generator for a Business Process.<br/><strong>2.Vuser Script Validation</strong> - Validate the <span style="color: #800000;"><a style="color: #800000;" href="http://www.wikishown.com/lr_xml_find-function-example/" target="_blank"><strong>script with Conditions</strong> </a></span>, prepare <strong><span style="color: #800000;"><a style="color: #800000;" href="http://www.wikishown.com/correlation-in-loadrunner-example/" target="_blank">Correlation and add functions</a></span></strong>.<br/><strong>3.Performance Script Enhancements</strong> - Preparing Test data for execution , <strong><span style="color: #800000;"><a style="color: #800000;" href="http://www.wikishown.com/loadrunner-runtime-settings/" target="_blank">Runtime Settings</a></span></strong>,Replacing dynamic values with Correlated values , Saving the values into parameter and Parameterization in the script.<br/><strong>4.Vuser Script Execution</strong> - Execution of Business process Script in VUGen to verify the script.<br/><strong>5.Loadrunner Controller Scenario</strong> - Preparing real world mimic scenario for prepared Business process Script as below details.<br/>1.Number of virtual users to use.<br/>2.Number of virtual users to initiate with how many seconds.<br/>3.Number of Hours to Run the script.<br/>4.How to stop the VUsers at a time or slowly means 2 or 5 or 6 etc.<br/><strong>6.Scenario Execution</strong> - After creating or preparing the scenario in Controller run your scenario by starting the Load Generator in order to verify how many transactions are pass/fail or contains errors while running the scripts.<br/><strong>7.Analysis Reports</strong> - Analyze the reports with the help of Analysis component in Loadrunner to check what are the bottlenecks,how many transactions are pass/fail and HTTP status code etc points you can verify in Analysis.<br/><br/>For each and every step should have no of hours in the testing estimation sheet as below screenshot and at last we are calculating the total hours to required to complete the Business process and send it for approval.Once approval received from respective manager then resource will start preparing Scripts for Business scenarios.<br/><br/>You can prepare Effort Estimation as below ,please check screen-shot.<br/><br/>[caption id="attachment_840" align="aligncenter" width="647"]<img class="wp-image-840 size-full" title="Effort Estimation template for performance testing" src="http://www.wikishown.com/wp-content/uploads/2016/10/Effort-Estimation-template-for-performance-testing.jpg" alt="Effort Estimation template for performance testing" width="647" height="484" /> Effort Estimation template for performance testing[/caption]<br/><h2>What have you learned?</h2><br/>1.What is Business Process<br/>2.What is Test Effort Estimation<br/>3.Factors should be consider<br/>4.Testing Estimation Template details<br/>5.How to prepare Performance Testing Estimation based on Performance Scripts for a Business Process.<br/><br/>Please share this post in case you like and got good knowledge on this topic.Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-3521461242556958982016-10-20T08:51:00.000-07:002020-10-01T22:54:24.394-07:00Calculate Vusers for load testingIn this How to Calculate Vusers for load testing,you will learn calculate virtual users for your load testing or stress testing in order to achieve results which mimics real world.<br/><h2>What is load testing?</h2><br/>Load testing is describes how your application behaves for a given load at peak hours as well as how much time it will take to provide response for a particular request to verify your application speed,performance of the application.Load testing can be done with JMeter(<strong><span style="color: #ff0000;"><a style="color: #ff0000;" href="http://learn-jmeter.blogspot.in">Learn JMeter</a></span></strong>) or any other open source tool but in open source tool you can't run with more VUsers to check behavior of your applications.<br/><h2>Calculate Vusers for load testing</h2><br/>You can calculate number of vusers required for load testing with a basic formula as below<br/><br/>No of Vusers = TPS * (Response Time + Think Time)<br/>TPS – Transactions per Second<br/><br/>Now here you can't simply provide 50,70,100,250,500 etc VUsers to test load on your applications,above requirements are given by the clients in below formats,then you have to calculate based on client requirements.<br/><h2>Business NFR:</h2><br/>Business NFR contains business requirements about application under test,in order to verify application performance with load testing.<br/><h3>Details:</h3><br/>Details will contain test scenarios.<br/><br/>Example : Verify Bank account details.<br/><h3>Business Rules:</h3><br/>Business rules contains actual results as per 3 months old data or 6 months old data with the help of analytic,Business Remarks gives below details about application(AUT).<br/><br/>Number of Transactions per Seconds : 600<br/>Average Response Time : 3 sec<br/>Think Time : 3 sec<br/><br/>So now it is easy to calculate number of virtual users required for a test scenario as below<br/><pre>Number of Virtual Users = 200*(2+1)<br/>Number Of Virtual Users = 200*3<br/>Number of Virtual Users = 600</pre><br/>So required virtual users for your test scenario is 600 VUsers for peak loads,some time users will vary may be less or more but in peak time users will increase suppose example as Festival time most of the companies running promotions on their applications to attract new users at that time number of users automatically increase,this is called peak load time.Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-50475401842365369432016-10-19T10:29:00.000-07:002020-10-01T22:54:33.005-07:00New Features in LoadRunner 12.53HP Loadrunner 12.53 version is released and below are the New Features in LoadRunner 12.53 are added,please find the details,also read LoadRunner tutorials for good knowledge.LoadRunner releases 11.01,11.02 to 11.50.12.02,12.50 and 12.53.<br/><h2>New Features in LoadRunner 12.53</h2><br/>Git integration in VuGen<br/>Web - HTTP/HTML and Mobile Application - HTTP/HTML protocol unification<br/>Linux load generator improvements<br/>New PCoIP (remote access) protocol<br/>Enhanced SAPUI5 recording in TruClient<br/>REST step-builder editor in VuGen<br/>JSON manipulation APIs<br/>HTTP Video Streaming (HTML5, HLS) support<br/>HTTP/2 support<br/>Enhancements to Java-based protocols<br/>64-bit replay support in various Java protocols and C Vuser protocol<br/>Added in 12.53 Patch 2: Support for NV Insights<br/>New Supported Technologies and Platforms<br/>VuGen Enhancements<br/>TruClient Enhancements<br/>Virtual Table Server (VTS) Enhancements<br/>General Protocol Enhancements<br/>Controller Enhancements<br/>Analysis Enhancements<br/>Help Center Enhancements<br/>Security Enhancements<br/>Installation Enhancements<br/>Integrations with the latest HPE product versions<br/><h2>New Technologies</h2><br/>Windows 10<br/>Microsoft Edge browser<br/>Visual Studio 2013 add-in<br/>Visual Studio 2015 add-in<br/>Upgraded Eclipse IDE add-in<br/>SUSE Linux Enterprise Server 12<br/>Red Hat Enterprise Linux 7.2<br/>hLinux.<br/><h2>TruClient Enhancements</h2><br/>Loadrunner 12.50 supports Chromium 46 ,Firefox 40.0.3 and Internet Explorer 10 and 11 ,9 is not supported.<br/>New End Events,Automatic End Event in Browser.<br/>Enhancements Automatic Object Identification.<br/>Enhancements in Control actions during recording the script.<br/><br/>Loadrunner 12.50 enhanced in some of the Protocols those are Citrix,C Vuser , Flex ,FTP , Java Protocol,Oracle 2-Tier,SAPGUI,Web – HTTP/HTML and last WebServices.Enhanced Analysis web GUI and provided good look in HTML reports.Loadrunner 12.50 integrated with some of the following products for better performance testing ,those are<br/><br/>Service Virtualization: Support for Windows 10<br/>Diagnostics<br/>Network Virtualization<br/>Unified Functional Testing<br/>Application Lifecycle Management<br/>Performance Center<br/>Business Process Monitor<br/>Jenkins<br/><br/>Please see the complete list of enhancements in <a href="http://lrhelp.saas.hpe.com/en/latest/help/WebHelp/Content/WelcomeContent/c_WhatsNew.htm">HP Site</a>.Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com0tag:blogger.com,1999:blog-5531838760113583814.post-15979879705625702602016-10-16T02:35:00.000-07:002019-05-04T01:37:00.319-07:00lr_xml_find function example<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
In this lr_xml_find function example you will learn how to use lr_xml_find in LoadRunner Vugen script.The lr_xml_find function verifies that whether XML values return by the server which will contains a specified query or not,simply lr_xml_find verifies the XML values with the help of XML Query.<br />
<br />
<br />
<h2>
lr_xml_find function example,Please read All REAL TIME EXAMPLES OF LOADRUNNER HERE</h2>
<div>
<a href="http://www.easyselenium.com/lr_xml_find-function-example/"><span style="font-family: "georgia" , "times new roman" , serif; font-size: large;">http://www.easyselenium.com/lr_xml_find-function-example/</span></a></div>
<div>
<br /></div>
</div>
</div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com1tag:blogger.com,1999:blog-5531838760113583814.post-23841499669089509432016-07-08T08:12:00.000-07:002017-03-30T10:20:36.544-07:00Loadrunner Runtime Settings<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Most important settings in VuGen is Loarunner Runtime Settings which is very useful in preparing the scenarios and for vugen scripting execution.While running the script these Runtime settings should be proper in order to execute the script as requirement for examples</div>
<h2 style="text-align: justify;">
Loadrunner Runtime Settings</h2>
<div style="text-align: justify;">
1.Running the script for Multiple users.</div>
<div style="text-align: justify;">
2.Running the script with think time.</div>
<div style="text-align: justify;">
3.Running the script with / out proxy set up.</div>
<div style="text-align: justify;">
4.Running the script with extended log to see in details response etc.</div>
<h2 style="text-align: justify;">
Runtime Settings has below lists</h2>
<div style="text-align: justify;">
In General there are 6 components those are</div>
<h2 style="text-align: justify;">
1.Run Logic :</h2>
<div style="text-align: justify;">
Run Logic configure the number of iterations to repeat the same action by each Vuser.</div>
<div style="text-align: justify;">
>Main : This iterations repeats the user actions with the given number of times.Here Iterations are applicable only for action methods where scripting is prepared.</div>
<div style="text-align: justify;">
>Block: It defines the Block iterations to repeat each user action with different number of times.Please find the screen shot below.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic2Jb0zoPpRurYEdbJw4rOCwsM-XU12kkyg5V1GxIzUbdH-Xz3prXV0g0uAANo_TnpI6ghyphenhyphenYaNWekVddng8t9SWDJo1vNQK8VA1B8e3OWErb8WjCDgp1gCtjSTMCAdEjeSDIsB66Laf1c/s1600/loadrunner+runtime+settings.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="loadrunner runtime settings" border="0" height="470" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic2Jb0zoPpRurYEdbJw4rOCwsM-XU12kkyg5V1GxIzUbdH-Xz3prXV0g0uAANo_TnpI6ghyphenhyphenYaNWekVddng8t9SWDJo1vNQK8VA1B8e3OWErb8WjCDgp1gCtjSTMCAdEjeSDIsB66Laf1c/s640/loadrunner+runtime+settings.jpg" title="loadrunner runtime settings" width="640" /></a></div>
<div style="text-align: justify;">
<br /></div>
<h2 style="text-align: justify;">
2.Pacing:</h2>
<div style="text-align: justify;">
Pacing in Runtime settings is a virtual user waiting time between the iteration executions as below</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1.As soon as the previous iteration ends</div>
<div style="text-align: justify;">
2.After the previous iteration ends – with a "fixed/random" delay of seconds.</div>
<div style="text-align: justify;">
3.At "fixed/random" intervals, every – seconds.Please see below screen shot for clear idea.</div>
<h2 style="text-align: justify;">
3.Log:</h2>
<div style="text-align: justify;">
In order to check the execution log for response data we will use Log menu and it captures the behavior of the script execution.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Log menu has below sub Options:</div>
<div style="text-align: justify;">
Send Messages only when an error occurs.</div>
<div style="text-align: justify;">
Load runner will display messages in log only when error occurs in script execution.</div>
<div style="text-align: justify;">
Always Send Messages.</div>
<div style="text-align: justify;">
Always send messages option has two options those are</div>
<div style="text-align: justify;">
A.Standard Log :Standard log display default log for script execution.</div>
<div style="text-align: justify;">
B.Extended Log:Extended Log display the script execution as per below selected option those are</div>
<h2 style="text-align: justify;">
1.Parameter Substitution :</h2>
<div style="text-align: justify;">
Log displays with each parameter substitution ,it is useful when we are doing parameterization testing.It will show each script response,for each parameter substitution like for 50 users it displays all 50 iteration script response in log in details.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>2.Data returned by server : </b>It displays only the data which is return by the server to Vusers ,sometime it display server connections also.</div>
<div style="text-align: justify;">
<b>3.Advanced trace :</b> It display all the vuser messages and function calls in case we are using any functions in scripts like examples</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1.lr_start_transaction("User_Login")</div>
<div style="text-align: justify;">
2.lr_end_transaction("User_Login",LR_AUTO)</div>
<div style="text-align: justify;">
3.lr_error_message()</div>
<div style="text-align: justify;">
4.lr_output_message("User Login is successful")</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Please see below screenshot.</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPHE5MsY-gRM5gIgQcIuL7NKCuGXuQTOvQgiF9Rml6sLQ3TpQbiEIdfpKOYKJxnf9s7D6ERy_s1ShIB_5VzPjWhy-mS1ENJ_wtYePekbVV2h9hBdmZphbsKSvckUPy5eGq1F9w1PApVYY/s1600/Rentime+Settings+Log.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="loadrunner runtime settins" border="0" height="358" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPHE5MsY-gRM5gIgQcIuL7NKCuGXuQTOvQgiF9Rml6sLQ3TpQbiEIdfpKOYKJxnf9s7D6ERy_s1ShIB_5VzPjWhy-mS1ENJ_wtYePekbVV2h9hBdmZphbsKSvckUPy5eGq1F9w1PApVYY/s400/Rentime+Settings+Log.png" title="Loadrunner Log run time settins" width="400" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<h2 style="text-align: justify;">
4.Think Time:</h2>
<div style="text-align: justify;">
Think Time defines as It is a user waiting time between the transaction executions in the script.</div>
<div style="text-align: justify;">
For example</div>
<div style="text-align: justify;">
1.User login to application and waits some time to display my account screen.</div>
<div style="text-align: justify;">
2.Compose emails and verifying the message body with some time before sending.</div>
<div style="text-align: justify;">
3.Online Transactions.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Think Time has below options</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
a.Ignore Think Time</div>
<div style="text-align: justify;">
b.Replay Think Time</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1.As Recorded</div>
<div style="text-align: justify;">
2.Multiply recorded think time by: --</div>
<div style="text-align: justify;">
3.Use random percentage of recorder think time:Min: -- %,Max: -- %</div>
<div style="text-align: justify;">
4.Limit think time to – seconds. Please see below screenshot.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Most of the time we will choose Replay Think Time As Recorded option in Runtime Settings foe script.</div>
<h2 style="text-align: justify;">
5.Additional attributes:</h2>
<div style="text-align: justify;">
It is useful in reading value from run-time settings and which is helpful in pass value into script using run time settings.Declare argument name and value here and we can use those values into script and save the value into string using lr_save_string() and lr_get_attrib_string() functions.</div>
<h2 style="text-align: justify;">
6.Miscellaneous:</h2>
<div style="text-align: justify;">
In this menu we are having 7 options those are</div>
<h2 style="text-align: justify;">
Error Handling:</h2>
<div style="text-align: justify;">
1.Continue On Error : as name indicates script will execute in case error occurs while execution.</div>
<div style="text-align: justify;">
2.Fail open transactions on lr_error_message : It will fail all open transactions once the function lr_error_message is called by the user in the transactions.</div>
<div style="text-align: justify;">
3.Generate snapshot on error:It will generate snapshot of error while script execution at Runtime and display in snapshot menu.Always we has to check/select Generate Snapshot on error to capture error pages at Runtime.</div>
<h2 style="text-align: justify;">
Multi Threading:</h2>
<div style="text-align: justify;">
1.Run Vuser as a process:</div>
<div style="text-align: justify;">
a.It is useful in running each vuser as a complete process.</div>
<div style="text-align: justify;">
b.For each Vuser it creates a separate driver program in the load generator.</div>
<div style="text-align: justify;">
c.It occupies more system resources in load generator as it created a separate driver program. (For each Vuser mdrv.exe)</div>
<h2 style="text-align: justify;">
2.Run Vuser as a thread</h2>
<div style="text-align: justify;">
a.For all the Vusers, it creates a single driver program in the load generator.</div>
<div style="text-align: justify;">
b.Occupies less system resources as it is using a single driver program for all the Vusers (mdrv.exe)</div>
<h2 style="text-align: justify;">
Automatic Transaction:</h2>
<div style="text-align: justify;">
1.Defines each action as a transaction (Always disable this)</div>
<div style="text-align: justify;">
2.Defines each step as a transaction.</div>
<h2 style="text-align: justify;">
7.Network:</h2>
<div style="text-align: justify;">
The name indicates setting of Network speed as use maximum Bandwidth , Use bandwidth which is starting from kbps,Use custom bandwidth where user can provide specified band width speed for script execution.</div>
<h2 style="text-align: justify;">
8.Browser</h2>
<div style="text-align: justify;">
Browser Emulation:In Browser Emulation can do all the browser level enhancements.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1.Simulate Browser Cache</div>
<div style="text-align: justify;">
2.Simulate a new user on each iteration :Whenever we not require to reuse the browser cache, Enable Simulate a new user on each iteration and by clearing the existing cache on each iteration.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Browser Properties are</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1.Simulate Browser Cache</div>
<div style="text-align: justify;">
2.Download non-HTML Resources</div>
<div style="text-align: justify;">
3.Simulate a new user on each iteration</div>
<h2 style="text-align: justify;">
9.Internet Protocol</h2>
<div style="text-align: justify;">
Internet protocol has below options,</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Proxy : While execution of some scripts it requires proper proxy setting for example outside of the network applications in corporate offices.For outside network applications, it is mandatory to have proxy settings to access the links.At that time we will go for proxy settings and proxy has below options</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1.No Proxy(Direct Connection to the Internet)</div>
<div style="text-align: justify;">
2.Obtain the proxy settings from default browser i.e IE,Chrome etc</div>
<div style="text-align: justify;">
3.Use Custom Proxy :Here we can provide our custom proxy details like Port Number and Ip address(Host address.)</div>
<div style="text-align: justify;">
1.For the LAN (Load Generators and Servers are residing on the same network) based performance testing, it is recommended to use No Proxy.</div>
<div style="text-align: justify;">
2.For WAN based OR Internet-based (Load Generators and Servers are residing on different network) Performance Testing, it is recommended to use Obtain the proxy settings from the default browser.</div>
<h2 style="text-align: justify;">
10.Preferences:</h2>
<div style="text-align: justify;">
Preferences in LoadRunner provides details about</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
1.Enable Image and Text Check</div>
<div style="text-align: justify;">
2.Generate Web Performance Report Generation which contains Hits per second, Page per second and Response bytes per second.</div>
<div style="text-align: justify;">
3.Advanced Download Files Content Check</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
In Case like this article please provide your valuable comments and suggestions.Thank you for reading.</div>
</div>
Rajesh Khttp://www.blogger.com/profile/09960916864629221114noreply@blogger.com3