1. Jmeter:
Based on java development, open source performance tools;
Use as a performance tool;
Ability to do functional/and regression testing (automated testing) of programs.
Advantage:
1. Open source;
2. Small;
3. No installation is required, and it can be used with a suitable version of the jdk environment;
4. There are various extensions.
Second, Jmeter and related plug-ins installation
1. Deploy the JDK environment and configure environment variables;
2. Download jmeter;
3. Configure jmeter environment variables (optional).
Standard plugin: JmeterPlugins-Standard, after downloading and decompressing, copy JmeterPlugins-Standard.jar under lib/ext to lib/ext under the decompression path of jmeter.
Server plug-in: ServerAgent, the monitoring of server data is sent to the jmeter tool, and the jmeter tool processes the data;
Third, the composition of the Jmeter test tool
1. User runner
Sampler sampler, send requests to the server, record response information, Jmeter supports different Samplers;
Logic Controller
Control the execution order of samplers
Divided into two categories:
(1) The logical execution sequence of the control node
(2) Group the scripts in the test plan
Timer timer, the waiting time in user operation;
Assertions assert, determine whether the returned result is the same as the expected result;
2. Resource generator
Config Element configuration element, the user provides support for static data;
3. Load generator
thread group thread user, a thread group, a virtual user group, each thread in the thread group can be used as a virtual user;
4. Report Builder
Listener, which collects and processes test results and displays them visually.