Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Frequent Contributor.. shivaprasadKM Frequent Contributor..
Frequent Contributor..
257 views

Loadrunner script - How to send newly created data from one script to another script.

Jump to solution

Hi All,

Please help to solve this Loadrunner script requirement:

How to send newly created data from one script to and another script.

Requirement contains 2 e-commerce scenarios:
scenario 1 : Create a new order.
Scenario 2 : Update newly created order.

I want capture newly create "Order no." from script1 and want to send the same "order no." to script2. Both scripts should be handled in run time during load test.

### I am able to capture newly created "order No." using "web_reg_save_param" function and writing newly created value into text file using File IO operation

#Note : Both scenarios should have unique scripts and should not be merged.

Kindly need help to solve this requirement

Thank You

0 Likes
1 Solution

Accepted Solutions
Dennis Honored Contributor.
Honored Contributor.

Re: Loadrunner script - How to send newly created data from one script to another script.

Jump to solution

Hi @shivaprasadKM 

I advice you to use the Virtual Table Server (VTS) software for this issue.
This software is available as an additional software package with Loadrunner/Performance center. You can download it here: https://marketplace.microfocus.com/appdelivery/content/virtual-table-server

You install (https://admhelp.microfocus.com/lr/en/12.60-12.63/help/WebHelp/Content/VTS/c_install.htm) this software on another server and it provides you with a web interface. Here you can create one or multiple 'tables'. Each 'table' you access over a http/port connection, e.g. http:\\server:port.

From script1 you send the "order no" to the VTS. From script2 you retrieve the "order no" from the VTS. So you should add some VTS functions to your script.

Depending on the script protocol you are using there are specific functions to use with the VTS. (https://admhelp.microfocus.com/lr/en/12.60-12.63/help/function_reference/FuncRef.htm#search-vts)

I hope this helps you out.

Dennis

NB: If this solves your problem / helps you on the way, consider acknowledging with Kudos. To kudo a post, select the thumbs up icon in the gray square by the post in the thread.

View solution in original post

3 Replies
Dennis Honored Contributor.
Honored Contributor.

Re: Loadrunner script - How to send newly created data from one script to another script.

Jump to solution

Hi @shivaprasadKM 

I advice you to use the Virtual Table Server (VTS) software for this issue.
This software is available as an additional software package with Loadrunner/Performance center. You can download it here: https://marketplace.microfocus.com/appdelivery/content/virtual-table-server

You install (https://admhelp.microfocus.com/lr/en/12.60-12.63/help/WebHelp/Content/VTS/c_install.htm) this software on another server and it provides you with a web interface. Here you can create one or multiple 'tables'. Each 'table' you access over a http/port connection, e.g. http:\\server:port.

From script1 you send the "order no" to the VTS. From script2 you retrieve the "order no" from the VTS. So you should add some VTS functions to your script.

Depending on the script protocol you are using there are specific functions to use with the VTS. (https://admhelp.microfocus.com/lr/en/12.60-12.63/help/function_reference/FuncRef.htm#search-vts)

I hope this helps you out.

Dennis

NB: If this solves your problem / helps you on the way, consider acknowledging with Kudos. To kudo a post, select the thumbs up icon in the gray square by the post in the thread.

View solution in original post

Frequent Contributor.. shivaprasadKM Frequent Contributor..
Frequent Contributor..

Re: Loadrunner script - How to send newly created data from one script to another script.

Jump to solution

Thank you @Dennis

0 Likes
Frequent Contributor.. shivaprasadKM Frequent Contributor..
Frequent Contributor..

Re: Loadrunner script - How to send newly created data from one script to another script.

Jump to solution

Hi All,

I got to know how add data from script to "VTS"  from script-1 and retrieve data from VTS to script-2 but i am not getting how to synchronize both scripts during run -time .

while script 1{order no. creation } is running script 2{update order no.} has to wait until order no. getting generated. My question is how to synchronize both scripts during load test. Kindly help me to solve this requirement . 

Thanks and regards,

Shivaprasad K  M

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.