In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how multi-user concurrent operations are carried out in LoadRunner Controller". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
/ * Style Definitions * / table.MsoNormalTable {mso-style-name: normal form; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent: ""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt Mso-pagination:widow-orphan; font-size:10.0pt; font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}
Data: a, B, C
Virtual users: Vuser1, Vuser2, Vuser3
The parameters appear three times in the script and the script iterates three times
Note: the setting of Runtime setting in Controller takes precedence over Runtime setting in VuGen.
How to fetch the next row of data?
Sequential: order in which all virtual users read data tables sequentially
Random: random, all virtual users read data tables in random form
Unique: unique, all virtual users take one value at a time (do not repeat)
When will the data update be completed by accessing the data table?
Each iteration: after each iteration
Each occurrence: parameters for each occurrence
Once: for every virtual user / * Style Definitions * / table.MsoNormalTable {mso-style-name: normal form; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent: ""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm Mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}
Sequence
Sequential + Each iteration
In the first iteration, whenever the parameters appear, Vuser1, Vuser2, Vuser3 take A
In the second iteration, whenever the parameters appear, Vuser1, Vuser2, Vuser3 take B
In the third iteration, whenever the parameters appear, Vuser1, Vuser2, Vuser3 take C
Sequential + Each occurrence
The parameters of the Nth iteration are Vuser1, Vuser2, Vuser3 and A for the first time.
The parameters of the Nth iteration are Vuser1, Vuser2, Vuser3 and B for the second time.
The parameters of the Nth iteration are Vuser1, Vuser2, Vuser3 and C for the third time.
Sequential + Once
In the Nth iteration, whenever the parameters appear, Vuser1 take A Vuser2, take B Vuser3, take C.
Random
Random + Each iteration
No matter how many times this parameter is encountered in the Nth iteration, Vuser1 will only take A, B, or C, and this iteration will not be updated.
No matter how many times this parameter is encountered in the Nth iteration, Vuser2 will only take A, B, or C, and this iteration will not be updated.
No matter how many times this parameter is encountered in the Nth iteration, Vuser3 will only take A, B, or C, and this iteration will not be updated.
After 1 iteration, each Vuser extracts data at random.
Random + Each occurrence
The parameters Vuser1, Vuser2 and Vuser3 are randomly selected from A, B and C for the first time in the Nth iteration.
When the parameters Vuser1, Vuser2 and Vuser3 are encountered in the Nth iteration for the second time, one of them is randomly selected from A, B and C.
The parameters Vuser1, Vuser2 and Vuser3 are randomly selected from A, B and C for the third time in the Nth iteration.
Each Vuser continues to re-extract data every time a parameter is encountered during the first iteration of Null.
Random + Once
No matter how many times the parameter is encountered in the Nth iteration, Vuser1 only takes A, or B, or C
No matter how many times the parameter is encountered in the Nth iteration, Vuser2 only takes A, or B, or C
No matter how many times the parameter is encountered in the Nth iteration, Vuser3 only takes A, or B, or C
Each Vuser does not re-extract data after 1 iteration of Null.
Only
Note: when using this Unique type, you must note that there are enough numbers in the data table.
For example, if 20 virtual users are set in Controller for 5 cycles, then the virtual user numbered 1 takes the first five numbers, and the virtual user numbered 2 takes the number from 6 to 10, and so on, so that there must be at least 100 pieces of data in the data table, otherwise an error will be returned during the running of Controller.
So the following example adds data D, E, F, G, H, I to the data table.
Unique + Each iteration
In the first iteration, no matter how many times the parameter appears, Vuser1 takes A Vuser2, D Vuser3 takes G
In the second iteration, no matter how many times the parameters appear, Vuser1 takes B Vuser2, E Vuser3 takes H
In the third iteration, no matter how many times the parameters appear, Vuser1 takes C Vuser2, F Vuser3 takes I.
Unique + Each occurrence
The parameter Vuser1 appears for the first time in the first iteration, taking A Vuser2, D Vuser3, G
The parameter Vuser1 appears in the first iteration and the second time, take B Vuser2, take E Vuser3, take H
The parameter Vuser1 appears in the first iteration and the third time, take C Vuser2, take F Vuser3, take I.
Unique + Once
No matter how many iterations are carried out, no matter when the parameter appears, Vuser1 takes A Vuser2, B Vuser3 takes C
Data D, E, F, G, H, I are not taken.
Reference: http://bbs.51testing.com/thread-205680-1-1.html
This is the end of the content of "how multi-user concurrent operations are carried out in LoadRunner Controller". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.