Lieutenant Commander Lieutenant Commander
Lieutenant Commander
156 views

multiple url in 1 script or separate them?

Hi all,

I have 19 urls i have to test for their performance with 10 Vusers. In my idea i have to add 19 scripts to 1 sceanrio.

 

Or can i add the 19 url's in 1 scripts in some way?

 

Thanks!


Danny

0 Likes
4 Replies
Micro Focus Expert
Micro Focus Expert

Hi,

Technically, both of the ways are OK. Based on your own business process you should choose the easier way to organize your test. e.g. pick the business related urls into one script and wrap transactions to every of them, if there are urls rely on each other, then you should put them into same script.  

0 Likes
Lieutenant Commander Lieutenant Commander
Lieutenant Commander

Thanks!

 

How will LR handle that 1 script? I make 1 scripts, one list with all URL's surrounded with transactions.

 

Then LR will start with url 1, finish that one, then go to 2, etc, etc? And then with 10 Vusers it will get the URL's almost equal devided?

 

Thanks!

0 Likes
Micro Focus Expert
Micro Focus Expert

The requests within one script will be run one by one, and each vuser will run the script to simulate all the requests in that script.

If you want to separate the urls within one script to different vusers, such as 19 urls be divided into 19 vusers and each vuser simulate 1 request, then you should use the Parameter functionality. Make your urls into parameter table and assign the parameter to vusers by setting the Parameter policy. See Parameter from Parameter Properties dialog box (microfocus.com)

Regards,

Zhipeng

Lieutenant Commander Lieutenant Commander
Lieutenant Commander

Thank you!

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.