jmeter login parameters of realization

 Business scene

During the test, the general need to simulate different users log, comparing the average of such measured pressure data, can better simulate the real pressure conditions.

If you use the same user account to test it in a query such as charge d'affaires of the time, the person's to-do too much, does not conform to the actual situation.

Achieve parametric approach

1. Log in now simulate situation three users.

We prepare three accounts

These three account is the user account database and corresponding on.

2. When configured JMETER request, the configuration data is read into a csv variable element.

Here we need to configure the account file path and mapped variables.

3. Using Variables

This parameter is used to replace the variable.

4. Set the number of threads, each thread corresponding to a user.

5. Perform test

View Results tree, we can see here, sign in using the data parameter file.

We see that the background process is indeed carried out in accordance with our expectations.

 

Guess you like

Origin www.cnblogs.com/yg_zhang/p/10955570.html