Highlighted
Absent Member.
Absent Member.
3966 views

String concat in LR

Hi,

i have a functionality to update home address?

so i am getting actual adrees to {Address1} parameter and would like to append some string "loadtest" to the actual address and save the home address?

Here is the steps i tried:
char S1[10]="loadtest" ,S2
strcpy(S2,{Address1})
strcat(S2, S1)

"Name=ADDRESSES_V_ADDRESS1$0", "Value={S2}", ENDITEM,
but it is not working any suggestions?

Thanks
0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

Re: String concat in LR

Is this about Service Desk or ServiceCenter/Service Manager?
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: String concat in LR

Hi,

I am looking in Load Runner Vu Gen action class.

Thanks
rani rani
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: String concat in LR

Try this "Value=loadtest{Address1}"
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: String concat in LR

In Vugen files, you need to explicitly declare C functions that do not return integers.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.