Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..
573 views

Set/get LR runtime settings from script

Jump to solution

Hi,

We have a requirements to run simultaneously the same script with different bandwidth speed for mobile project.

I found out that I can call the same script multiple times from the same Controller scenario, where each call has different runtime setting.

Can I get the setting from the script to split responce time by bandwidth speed?

Can we change Speed Simulation runtime setting from a script like we do it with Download Filters by using LR function?

 

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Set/get LR runtime settings from script

Jump to solution

Hi @VanSun,

You should follow these steps:

1. Create 5 different groups of the same script in Controller or Performance Center.
2. Define different runtime settings for each. It cannot be controlled by script code only by run time settings
3. If you wish to distinguihs between transactions you should:
3.1 either rely on Group By group option in Analysis application
3.2 or add a suffix or prefix to the transaction name based on the group name. This can be done by defining gropu name as a parameter in the script and concatenating it to each transaction.
Either way you need to use a meaningful name in the group name.

Good luck,
Shlomi

View solution in original post

5 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Set/get LR runtime settings from script

Jump to solution
0 Likes
Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..

Re: Set/get LR runtime settings from script

Jump to solution

Hi Tatiana,

The link that you've provided is about manual (static) setup in Runtime Options. The original question was about how to change Runtime Options from within a script.

Scenario: One mobile script will run with different nttwork speed that is selected in script based on workflow. The selected speed is captured and added to transactions names (dinamically) to see responce time for the same stansactions but with different network speed in Analyses for comparison. In this case we can have one script.

Setting runtime options manualy will require to maintain a number of copies of the script where transactions names are hardcoded.

 

0 Likes
Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..

Re: Set/get LR runtime settings from script

Jump to solution

OK, let's simplify the task. What would be your recommendations to run the same script with 5 different network speeds simultaneously

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Set/get LR runtime settings from script

Jump to solution

Hi @VanSun,

You should follow these steps:

1. Create 5 different groups of the same script in Controller or Performance Center.
2. Define different runtime settings for each. It cannot be controlled by script code only by run time settings
3. If you wish to distinguihs between transactions you should:
3.1 either rely on Group By group option in Analysis application
3.2 or add a suffix or prefix to the transaction name based on the group name. This can be done by defining gropu name as a parameter in the script and concatenating it to each transaction.
Either way you need to use a meaningful name in the group name.

Good luck,
Shlomi

View solution in original post

Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..

Re: Set/get LR runtime settings from script

Jump to solution

Thanks a lot Shlomi (toda raba) - it work perfectly!

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.