First, Jemter Related settings
1, start JMeter, double-click Run Jmeter.bat, start JMeter
JMeter running the main interface
2. Add thread Group: Right-click Test Plan-Add-->threads (Users)--Thread Group
3. HTTP Proxy Server
1) Add HTTP Proxy server: Right-click Workbench-"Add-" non-test element-"HTTP proxy server
2) Configuring the proxy server
--Ports (port domain): 8889
--Target controller: test plan >xxxx (thread group name)
--Grouping: Each group is put into a new controller
--Add "include mode (Patterns to include)": such as ". *\.html"
--Add "exclude mode (Patterns to Exclude)": such as ". *\.gif"
Step 2, phone configuration
1. Configure Mobile Agent
--Server: JMeter host IP
--Port: Consistent with the port value set in Jemter HTTP proxy global settings, as shown in
Setup is complete, click Save
2. Installation Certificate
1) Click on the bottom "Start" button and pop-up window appears.
2) Enter the JMeter installation directory, locate the "apachejmetertemporaryrootca.crt" file and upload it to your phone in any way possible
2, access to mobile device management and credentials-"from the storage disk installation-" to find the corresponding upload path, installation can
3. Return to JMeter, click the OK button of the popup window, mobile Access app
Start the app you want to test on your phone and do business; this time you can see that the thread group caught the request from the app 4, the business operation completed, immediately
Stop"HTTP proxy Server" on the Jemter, otherwise the packet is caught, there will be a lot of useless requests in the thread group; 5. Delete unrelated requests in "thread group"; 6. Save JMX Scripts
JMeter Recording App Scripts