Only use Jmeter software to install and download, and automatically record scripts with super detailed tutorials to share
the article directory
- Basic meaning of Jmeter
- Jmeter download, installation steps & environment configuration
- Jmter's basic recording script method
- Summarize
360 Browser – Recording
Google Chrome – Recording
foreword
1. What is the basic introduction of Jmeter
①-Official meaning: Apache JMeter is a Java-based stress testing tool developed by the Apache organization. Used for stress testing software, it was originally designed for web application testing, but later expanded to other testing areas. It can be used to test static and dynamic resources such as static files, Java servlets, CGI scripts, Java objects, databases, FTP servers, and more.
②—Function: Open source and free, support simple interface, high performance and practicability, all applicable systems: windows, mac, linux systems.
2. Jmeter download, installation steps & environment configuration
Official website address: Apache JMeter - Download Apache JMeter |
Step 1: Select Download Releases on the left
Step 2: Select the corresponding version according to the computer
Step 3: Configure the environment. This computer----properties-about-advanced system settings----environment variable {1, address path; 2, increase classpath fixed variable}
%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib/logkit-2.0.jar;
add classpath fixed variable, click OK
Three, Jmter's basic recording script method
1. To open Jmeter, click the suffix bat file in the bin directory to open it
** After opening, there is a black command console at the back, and a console will appear after 3 seconds, as shown in the figure
Steps: (1) Add Thread Group
(2) Test Plan----Add----Non-Test Component----HTTP Proxy Server
(3) Thread Group-----Add----Logic Controller -----RecordingController
(4)ThreadGroup----Add----Sampler
(5)ThreadGroup----Add----ListenerAfter adding everything, it is almost such an interface.
Pay attention to add the address of the page to be recorded in the http request: protocol, server name, request, path
Click on the HTTP proxy server (1) to add the corresponding port number 8888 (2) Target controller: test plan-thread group-recording controller
(3) Grouping: put a new controller into each group Note ----- Target controllers and groups are just for convenient storage and classification of recorded scripts
The above is to set the configuration on the Jmeter software, now let’s add a proxy server in Google Chrome. Computer server IP address + port number (note that this IP address and port number are the same as those set earlier)
Then start in the HTTP proxy server
Finally, click the HTTP proxy server, click Start, and then open the corresponding website to log in, and you can have the corresponding display
The above is the whole process of my operation with Google Chrome, and it is the same with 360 browser. Click to set the proxy, and the steps are similar to those of Google. But it should be noted that a sequential operation is enough.
Four. Summary
In the process of operation, I have summarized several failure handling methods that cannot record scripts:
【1】Follow the steps carefully, and don’t miss the details
【2】Sometimes it fails because of frequent clicks
【3】Re-import the certificate in the bin file
【4】Check whether the port number is occupied, if it is occupied, please replace* *