Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Parameterized setting of loadrunner

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

JMeter has the advantages of installation-free, lightweight, intuitive observation request and response, and so on. So it's convenient to use JMeter most of the time. But support for session is a little weak. Although it is possible to simulate multi-login users by adding cookie manager and parameterized replacement. But it's hard to beat. You need to manually put a bunch of sessionid into the text, and then it will expire next time. So it's much easier to record a script with loadrunner and then parameterize it. It shows that the virtual user simulation of loadrunner is more comprehensive. When using the parameter settings of loadrunner, you should check it every time. It is convenient to note here:

Select next row has three options: Sequential, Random, and Unique,Update value on have three options: Each iteration, Each occurrence, and Once. Theoretically, there are nine combinations, but there are not so many common scenarios, so some combinations are actually repetitive.

Sequential-Each iteration: each user takes the same value, but the next iteration of the user will postpone one value

Sequential-Each occurrence: ditto

Sequential-Once: every user is the same, and the same every time (that is, the first line)

Random-Each iteration: the value of each user is random, and each time is random, which may be repeated.

Random-Each occurrence: ditto

Random-Once: each user has a random value, the same each time (but not necessarily the first line)

Unique-Each iteration: different for each user. If you choose Automatically allocate block size, it varies randomly each time. If you select Allocate to specify the size, the number is worth calculating, and the number of iterations should be more than the interval, otherwise it will make mistakes (really asking for trouble). Set it up and don't repeat it every time.

Unique-Each occurrence: different for each user, only Allocate can be selected to specify the size, same as above

Unique-Once: different for each user, same every time (also looking down from the beginning order)

There is also a Same line as xxx that keeps the same line as a previously defined field, which is used when you need to ensure associated data such as username / password

The above data are measured by loadrunner11. In fact, the most commonly used scenes are the ones marked in red above me.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report