[Original] A solution for loadingrunner

xiaoxiao2021-03-06  48

A web project requirement information: Requires the maximum number of users in the case where the user's login time is less than 5 seconds (including the time to download all resources in the login).

Scenario Description: Increment users with a small number of users, increasing users with a logified user with a running user. Each user's response time is considered to be an error over 5 seconds.

LoadRunner implementation:

1. Record scripts and define the login process as a transaction, add a collection point before transaction;

2, use the manual plan, set the number of users with a larger number;

3, set the collection policy, select "Release: When it reaches 100% run the user";

4, set the load method to "loading the Y user per X], the number is set according to the specific situation;

5, set the duration to "run indefinitely";

6. Set "browser simulation" in the CONTROLLER runtime setting, select "Download Non-HTML Resources" and "Each iterative Simulates a new user";

7. In the Advanced settings of the Internet Protocol Preferences, select "Save Snapshot Resources locally" and "activate snapshots when there is an error";

8. Concealed the step, click the "Options" button on the right side of "Set Advanced Options", set "HTTP Request Connection Timeout" "HTTP Request Access Timeout" step download timeout in the pop-up window "is 5 seconds, and Select "When the steps caused by the resource is timeout, it is not a warning message".

9, start running the script.

Supplementary information:

1. Learn about the execution of the Virtual USER in accordance with the "Sitting from the Controller to monitor the VU execution script".

2, the checkpoint can be added appropriately in the script.

3, step 8 of the above may not be quite reasonable, have you seen it? There must be a better way, ^ _ ^

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

New Post(0)