Stackoverflow LoadRunner

Syndicate content
most recent 30 from 2016-07-22T20:02:54Z
Updated: 3 days 13 hours ago

Use Load runner web_reg_save_param_regexp save the number after tvNode_R- from a block of html code

Tue, 06/21/2016 - 17:50

I use the regular expression attached but it works without adding the highlighted "ORG_40365", once I added "ORG_40365" it does not work. However, I need to specify the occurrence related to specific node and need to add "ORG_40365" at the end. Otherwise will return other value unexpected. Please click here to see the web_reg_save_param_regexp used

I cannot copy the code here as it does not allow me to save with error.

I have the above string and want to save 9704 after tvNode_R-. However, the regular expression does not work.

Any help would be greatly appreciated!

Categories: LoadRunner Lists

Cross Vuser Transactions in Loadrunner

Tue, 06/21/2016 - 00:56

I am currently developing loadrunner scripts for performance testing of an application which processes in asynchronous mode. The application, which I am doing performance testing accepts input files through SFTP and send processed output on an output location through SFTP.

In order to build script to measure performance of the application, I am planning to use two Vugen Scripts, one for submitting the input file and the second one for receiving the output file. To measure the time duration between input and output, I wanted to user Cross Vugen Transaction.

I have gone through the documentation in user guide but that is too little for me to understand and implement. Could you please provide me with a sample script or more detailed steps on how to implement, execute and view Cross Vugen Transactions.

Please note that I am beginner in vugen scripts and any help in this regard would be much appreciated.

Categories: LoadRunner Lists

Live Streaming in LoadRunner

Mon, 06/20/2016 - 08:50

web_stream_play function in LoadRunner takes default keep alive timeout of 60 seconds even if the keep alive timeout is set to 120 seconds in Run Time Settings. Any idea on this? How can this be resolved?

Categories: LoadRunner Lists

Trying from past 4 days not able to fix the issue

Mon, 06/20/2016 - 08:10

Iam giving the excat LB values and RB values..But still iam facing an issue..Can anyone plz help me in this.Thanks in advanceError -26377: No match found for the requested.parameter "ViewState ". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 10000000 bytes, use web_set_max_html_param_len to increase the parameter size[MsgId: MERR-26377] Action.c(28): Notify: Saving Parameter "ViewState _count = 0".

Categories: LoadRunner Lists

How can i substitute variables inside an array in the WebSocketBuffer.h file of loadrunner

Sat, 06/18/2016 - 01:56

I have captured a loadrunner script using Web-Http protocol. The website uses websocket internally. So I have the WebsocketCB and WebSocketBuffer files created. There is a WebSocketSend array where one of the values within the array needs to be modified before sending.

char WebSocketSend0[] = "Data: dynamicvalue";

I am able to save the dynamic values from another packet to a variable. But i am not able to substitute it in the above array. I used the following convention for a "test" variable

char WebSocketSend0[] = "Data: lr_eval_string("{test}")";

But it threw up lots of compilation errors. Is there anyway i can make the substitution , otherwise i have to write lots of code to modify the array.

Categories: LoadRunner Lists

Correlating multiple dynamic values

Thu, 06/16/2016 - 10:56

How can I get the value of important id and ValueType?

I have tried using web_save_param_regexp (but unfortunately I don't fully understand how the function works).

I have also tried using web_save_param (with the help of offset and length). unfortunately once again I cannot get the accurate value some values change in length specially when the total amount values dynamically changes per run.

<important id=\"insertsomevalueshere\" record=\"1\" nucTotal=\"NUC609.40\"><total amount=\"68.75\" currency=\"USD\"/><total amount=\"609.40\" currency=\"USD\"/><out avgsomecost=\"540.65\" ValueType=\"insertsomevalueshere\" containsawesomeness=\"1\" Score=\"-97961\" somedatatype=\"1\" typeofData=\"VAL\" web=\"1\">
Categories: LoadRunner Lists

HP Virtual User Generator 11 - How to log a different user for each test script action

Wed, 06/15/2016 - 10:53

Hopefully this is a simple one :) I am new to VuGen and trying to figure out the following...

I understand that to log in as a specic user you use the following command.


For each action within my script I would like to use a different user. For some reason, although I am not getting any errors, when the second action runs the user does not change. What am I missing here ?

Note: at the end of each action I am using the following code:

web_browser("Close", "Snapshot=t001.inf", DESCRIPTION, ACTION, "UserAction=Close", LAST);


Categories: LoadRunner Lists

HP Loadrunner SSL protocol error

Tue, 06/14/2016 - 11:48

I am relatively new to working with SSL certificates in a loadrunner script. Can someone provide the steps involved in adding a .PEM file to the loadrunner script in order to avoid SSL protocol error when replaying. Appreciate your help.

Categories: LoadRunner Lists

SItescope monitor error in LoadRunner Controller

Tue, 06/07/2016 - 05:02

In Load Controller, I'v configured Sitescope to supply metrics from some servers during load testing. All worked fine until when I change the requested metrics. I now get this error : "Monitor name :SiteScope. Parsing error. Details: host localhost, port 8888, line: 11. Reason: End tag 'HEAD' does not match the start tag 'META'." No matter what I try, and I'v tried completely removing Sitescope from the affected scenario and reinstating it, rebooting the Sitescope server and then reinstating it in the scenario, changing the SSM file (I created to hold required metric names), even creating a scenario from scratch and adding selected metrics, I cant seem to get Sitescope to work at all now. Both Controller and Sitescope sit on a VM hosting Windows Server 2012 R2, 4 cores with 8gb memory. SSH is in place on all target servers and as I said, it all worked swimmingly well until you change the selected metric in Monitor Pane in controller.

Categories: LoadRunner Lists

How to use if condition in load runner to verify web_reg_Save_param() value?

Sat, 06/04/2016 - 08:39

I am trying to verify web_reg_Save_param() value in if condition but not able to verify please provide me the solution and i have used if condition as

if(lr_eval_string(Gmessage==Smessage)) { lr_end_transaction("10_GetSecurity_Token",LR_PASS); } else { lr_end_transaction("10_GetSecurity_Token",LR_FAIL); } //lr_end_transaction("10_GetSecurity_Token",LR_AUTO); return 0;

Where i am getting Gmessage as Success in web_reg_save_param(), please help how to verify to check valid and invalid for json response.

Categories: LoadRunner Lists

how to pass one script variable values to another script in loadrunner

Fri, 06/03/2016 - 02:06

I am new to load runner and i am preparing script for REST ,here i will get one token in response where i need to use same token value in another script to validate the customer details ,i am using web_reg_save_param t save those value i.e token value in some variable.please help how can i pass that particular value into another script which is dependent.

i have tried below script

if (atoi(lr_eval_string("{SecurityToken}")) > 0) { lr_end_transaction("01_Cards",LR_PASS); lr_output_message(lr_eval_string("Value of Security Token is : {SecurityToken}")); } else { lr_end_transaction("01_Cards",LR_FAIL); lr_output_message(lr_eval_string("Value of Security Token is : {SecurityToken}")); }
Categories: LoadRunner Lists

Pasting values from excel to application using HP LR Truclient protocol

Thu, 06/02/2016 - 16:55

I'm using Loadrunner 12.20 on recording a test script in a application, using Ajax Truclient Protocol. The workflow contains a step to copy a large number of text fields from a excel sheet/or a text file, is there a way to do the bulk copy and paste rather than entering the values field by field?

Regards Naren

Categories: LoadRunner Lists

LOAD Runner Internal server 500 issue (REST API)

Thu, 06/02/2016 - 03:07

I am trying to run REST API from Load Runner but unable to do it. Every times its throws below exception

Action.c(4): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://ipaddress/LoyaltyApi/api1/loyaltycard/linkcard", Snapshot Info [MSH 1 1] [MsgId: MERR-26612]

My code :

Action() { lr_think_time(10); web_custom_request("LinkCards", "URL=http://ipaddress/LoyaltyApi/api1/loyaltycard/linkcard", "Method=POST", "Resource=0", "EncType=application/json", "Mode=HTTP", "BodyFilePath=linkcards.json", LAST); return 0; }

I have tested the same URL with POST parameter in POSTMAN and it's working fine without any issue.

I am very new in this technology so unable to solved the issue. Please help.

Categories: LoadRunner Lists

WIN 10 LoadRunner

Tue, 05/31/2016 - 04:29

I have problems with Http/Html proto with WIN 10. Recording starts but nothing is recorded. I didn't find materials about it. Does anyone know how to fix?

Ty in advance

Categories: LoadRunner Lists

HP Load Runner is not invoking Browser for recording

Wed, 05/11/2016 - 10:03

I am new to HP Load Runner. I was trying to record a script on my Virtual Machine. However while trying to record script in action, Vugen does not hit the HTTP based application. I am able to access the application using Internet Explorer.

Categories: LoadRunner Lists

LoadRunner - using a %d in lr_eval_string function

Tue, 05/10/2016 - 21:09

I need to create a string with multiple values of 'x'. For instance I tried saving a string while referencing another variable as such...

lr_save_string("xyz", lr_eval_string("{x_%d}", intVar)); I've also have tried,

lr_save_string(lr_eval_string("{x_%d}", intVar), "xyz");

Is there any option/way to use %d and a int variable which always changes in the lr_eval_string function? or, how could this be performed?


Categories: LoadRunner Lists

How to use loadrunner for multiple URL's

Tue, 05/10/2016 - 05:24

I'm working on a Single sing on project. While recording i give URL "", the system checks the credentials and grants access to the application. Now, in the application i have to click on a button, which opens a new window with URL "", however nothing is being recorded on Vugen. I assume it's because i gave "" while recording and it doesn't identify "". This is my assumption. Can any one please let me know how to overcome this type of scenario?

My requirement is to logon "" using UserID/Pwd and click on a tab which opens "" and perform actions and determine how much time does it take.

Categories: LoadRunner Lists

httpd.exe error while starting hp loadrunner webtour

Sat, 05/07/2016 - 12:57

I am getting httpd.exe error while starting Hp Loadrunner Webtour.

I also have tried re configuring through config file to listen to a different port but to no avail. Every time I click on start server bat file I am getting this screen.

This is the screen I am getting

Categories: LoadRunner Lists

LoadRunner Truclient vs protocol Http/Html

Tue, 05/03/2016 - 10:58

i'll try to compare the same script done in Http/html with TruClient. In both of the scenarios, it has same think time/wait time, same number of vusers, same pacing.

Is it possible that they have approximately same time for each transactions but they are so different in term of total number of passed transactions?

Ty in advance

Categories: LoadRunner Lists

How to retrieve specific index value from web_reg_save_param arrray [duplicate]

Mon, 05/02/2016 - 03:13

This question is an exact duplicate of:

I am using the web param function to retreive certain values. I want to get the value of a specific index from the array item and store it in a parameter to be used in a web_link call.

char * tempVal; web_reg_save_param("dynArray","LB=/EmployeeProfile/","RB=\">","ORD=ALL",LAST); tempVal = "{dynArray_2}";

There is no error for the above statements but when accessing tempVal it is giving error

vuser_init.c(143): web_link("emp") started [MsgId: MMSG-26355] vuser_init.c(143): Warning: The string 'tempVal' with parameter delimiters is not a parameter. vuser_init.c(143): Error -27995: Requested link ("Text={tempVal}") not found [MsgId: MERR-27995]
Categories: LoadRunner Lists