LoadRunner Lists

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

Stackoverflow LoadRunner - 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

Stackoverflow 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

Stackoverflow LoadRunner - 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)

Stackoverflow LoadRunner - 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

Stackoverflow 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

Stackoverflow LoadRunner - 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

Re: RTE Protocol Scripts Failing in Performance Center :: TE_Connect.. Failed to Connect

GoogleGroups lr-loadrunner - Wed, 05/11/2016 - 09:20
Here are the steps that I followed to overcome this issue. 1. Telnet Port: 23 ( Default ) & SSH Port: 22 ( Default ) 2. While running through VuGen, there is some component which am unsure that opens connectivity with port 22 which is a SSH port. 3. But while running through ALM, this component is
Categories: LoadRunner Lists

LoadRunner - using a %d in lr_eval_string function

Stackoverflow LoadRunner - 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

Re: Correlating graphs and impacts on each

GoogleGroups lr-loadrunner - Tue, 05/10/2016 - 09:28
If response time is increased , the transaction per seconds will decreased because total script execution time will increase . On Wednesday, March 9, 2016 at 6:11:00 PM UTC-5, karthikeyuan subramanian wrote: > > If response time increases what will be the impact in transaction per > second
Categories: LoadRunner Lists

Re: How to analyze response time and other metrics for each tenant for a script running in multi-tenant environment.

GoogleGroups lr-loadrunner - Tue, 05/10/2016 - 09:28
@JamesPulley. Thanks a lot!! I got what I needed. I was earlier thinking of writing if else condition for parameter name for each tenant, but that's lot of work when no. of tenants increase. Thanks again. On Monday, May 9, 2016 at 7:26:20 PM UTC+5:30, James Pulley wrote: > > Why not append the
Categories: LoadRunner Lists

How to use loadrunner for multiple URL's

Stackoverflow LoadRunner - Tue, 05/10/2016 - 05:24

I'm working on a Single sing on project. While recording i give URL "abc.com", 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 "xyz.com", however nothing is being recorded on Vugen. I assume it's because i gave "abc.com" while recording and it doesn't identify "xyz.com". This is my assumption. Can any one please let me know how to overcome this type of scenario?

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

Categories: LoadRunner Lists

httpd.exe error while starting hp loadrunner webtour

Stackoverflow LoadRunner - 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

Stackoverflow LoadRunner - 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

Re: Restrict the Captuiring of some values in Drop down list

GoogleGroups lr-loadrunner - Mon, 05/02/2016 - 10:03
Thanks for your reply I got how to separate 2 drop downs that are written in simple html tags using some c skills now I am exploring about capturing the whole XML tree I will get back to you if I have doubt once again thanks. On Sunday, April 17, 2016 at 7:18:28 PM UTC+5:30, Raja Rk wrote: > >
Categories: LoadRunner Lists

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

Stackoverflow LoadRunner - 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

What happens if browser agent is changed while replaying loadrunner web protocol script?

Stackoverflow LoadRunner - Wed, 04/27/2016 - 23:00

Lets say I ran a LR script consists of usual web http/html protocol with the browser agent of Internet Explorer 8(IE8) using LR 11. The script were created using same LR version but with IE11. Kindly provide information whether this change in browser version affects anything & how exactly.

Also, please tell what happens for similar case if the record is done using LR12- IE11 & replay using LR11 - IE8.

Categories: LoadRunner Lists

Re: [lr-loadrunner] Re: 'Insufficient records for parameter 'xxxx' in table to provide the Vuser with unique data

GoogleGroups lr-loadrunner - Wed, 04/27/2016 - 18:11
Your assertion on unique doesn't hold. This was in at least the 5.x product line dating to 1997. I pulled my training manual for LR 6.0 DB virtual user from 1998: Page 2-17 covers unique read from table and page 2-22 covers Unique Number. Unique holds within groups, but not across groups
Categories: LoadRunner Lists

Re: Controller showing Failed to call bind function from TrapWSPConnect. The system returned error code 10055

GoogleGroups lr-loadrunner - Wed, 04/27/2016 - 17:49
Hi Thank you the answer. I try to put the think time on the script but encounter same issue on load generator with this message. I install load runner agent on some PCs and run using them and there is no issue. Is there setting we need to consider on load generator machine? Thanks On Monday,
Categories: LoadRunner Lists

Re: lr function or C code to remove commas from number (eg: 10,22,30)

GoogleGroups lr-loadrunner - Wed, 04/27/2016 - 09:52
I don't understand why splitting up a string into sub strings using strtok is considered the solution. Just removing the commas is easier. char *delcomma(char *str) { char *p, *q; for (p = q = str; *p; p++) if (*p != ',') *q++ = *p; *q = 0; return str; } Save the new value
Categories: LoadRunner Lists

how can i use web_reg_save_param when LoadRunner protocol is C Vuser?

Stackoverflow LoadRunner - Fri, 04/22/2016 - 07:51

I use LoadRunner 11, and need send some web_custom_request. I start with a C Vuser protocol because i need some c lib(MD5). When i replay, i meet the error below: vuser_init.c(24): Error: C interpreter run time error: vuser_init.c (24): Error -- Unresolved symbol : web_reg_save_param.

How can i use web_reg_save_param when i select C Vuser protocol? How can i make LoadRunner recognize web_reg_save_param when the protocol is C Vuser?

Thanks a lot.

My code is :

vuser_init() { char *digest; char jsonBody[500]; char jsonBodyFirst[500]; char *key = "3KJBI23U923B8W0NF8WB29B98DAYP9AUBI2UQPF98AF9ABEWFPAOINOANSFPOAIN"; strcpy(jsonBodyFirst, lr_eval_string("{\"channelId\":\"2\",\"loginType\":\"2\",\"userId\":\"{loginMobile}\",\"password\":\"GGDSuDK6SlEidji9\\/BtPlQ==\",\"osName\":\"Android\",\"deviceNo\":\"865982027651010\",\"clientVersion\":\"1.0.3\",\"osVersion\":\"6.0.1\",\"deviceModel\":\"MI NOTE LTE\",\"imsi\":\"460008011671383\"")); strcpy(jsonBody, jsonBodyFirst); strcat(jsonBody,"}"); digest = (char *)hmac_md5(jsonBody, key); memset(jsonBody,0,sizeof(jsonBody)); sprintf(jsonBody, "Body=%s,\"digest\":\"%s\"}", jsonBodyFirst, digest); web_reg_save_param("jsessionid", "LB/IC=JSESSIONID=", "RB/IC=;", "LAST"); web_custom_request("autoLogin", "Method=POST", "Mode=HTML", "EncType=application/json", "URL=https://testsys.szsharelink.com:8443/service/autoLogin.app", jsonBody, "LAST"); return 0;


Categories: LoadRunner Lists
Syndicate content