The jmeter4.0 version has no workbench, so add an HTTP proxy server directly under the test plan.
- apache-jmeter-4.0
- An Android phone
One, JMeter recording app script method
1, the first to ensure that the JMeter installation environment are correct. Start JMeter: Double-click Jmeter.bat in the Bin directory of the installation path (for example: D:\apache-jmeter-4.0\bin)
2, jmeter new thread group in the test plan,
3. Add HTTP Proxy Server
4. Configuring the HTTP proxy server
– Ports (port domain): 8080 (can be modified to infrequently used ports to avoid conflicts)
– add "include mode (Patterns to include)": such as ". *.html"
– add "Exclude mode (Patterns to Exclude)": such as ". *.gif"
5. Set IE proxy to local
6, mobile WiFi settings agent connected to the PC (PC and mobile WiFi to the same network segment)
7, start JMeter HTTP proxy Server (4th step click to start)
8, everything is OK, the phone starts to start the app to perform the operation
9, after the successful recording, stop the HTTP proxy server, and then play back or stress test.
JMeter Recording App Scripts