LoadRunner parameter set setting

xiaoxiao2021-03-19  215

Select the constant to set the parameters, select the constant, select the Replace with parameter item in the Right-click menu, will pop up the parameter setting window, the first item is the parameter name, the second item is the parameter type, the third item is the parameter value!

The following describes the type of parameters: 1 dateTime: It is very simple, where you need to enter the date / time, you can replace it with a DateTime type. Its attribute setting is also very simple, select a format. Of course, you can also customize formats. 2 Group Name: I don't know where to use it, but the setting is relatively simple. In actual operation, LoadRunner is replaced by the Vuser Group in the virtual user. But when running in Vugen, Group Name will be None 3 Load Generator Name: In actual operation, LoadRunner uses the machine name of the Load Generator where the virtual user is located. 4 Iteration Number: In actual operation, LoadRunner uses the number of times the test script currently cycle. 5 Random Number: Random. Very simple. In the property settings, you can set the range of ranges that generate random numbers: unique number. In the property setting, you can set the first number and the size of the incremented number. The following focuses on getting collective information from the database! Click the Properties button of the parameter configuration interface. When you select the Data Wizard button, the DB Query Wizard window will appear! Select Specify SQL .. option! Click Next, the above is the data source connection string, recreate or use the created bank, here no longer say, in the following edit box, enter the query statement! After Finish, you can see the data! Select a column that you need to do parameters in this interface! Note the meaning of the parameters in the "Select Next Row": (1) Sequential: Reads in order. Each virtual user reads (2) Random in the same order (2) Random: A random read in each cycle, but remains unchanged in the loop (3) UNIQUE: Unique number. Note: You must pay attention to the number of data sheets with this type. (4) Same Line as a parameter (such as Name): and the record of the front-defined parameter Name takes the record. The top three is clear, and there is not much explanation here. The last one is filtered as the condition of existing parameters! such as. The username and password are in the same table. PARM1 is the account parameter, PARM2 is used as a password parameter, and PARM1 has been determined. After selecting Same Line AS, the corresponding password can be matched in the selection parameter PARM1!

转载请注明原文地址:https://www.9cbs.com/read-130047.html

New Post(0)