1. Create a new thread group named app (you can define it yourself)
2. Add-on, non-test element->http Proxy Server, add an HTTP proxy server
3. Setting up the JMeter agent
Port: A service is started by default when the agent is turned on, and it is recommended to modify the default port to prevent conflicts with your local port
Target controller: Here is where you set up the script code recording, and we'll adjust it to the previously created thread group
4. Set up an app agent
Premise: The network of mobile phone and computer must be in a LAN
This is done using the night God Simulator.
Open Settings->wlan-> Long Press Select Modify Network--display advanced, in the agent's Place select manual
Get the computer's IP address, fill in, Proxy server port to fill in JMeter before the port can be set
5. Start recording
Enter JMeter to start the HTTP proxy server, start
Operate the app on your phone, and you'll see a transcript of the relevant recording on the JMeter
We found that the recorded script will have something we do not need, such as tablets, which we can use to exclude the content of the exclusion mode is not required, the specific settings are as follows:
HTTP proxy Server->requests filtering-> exclusion mode
6. Run the script
According to the normal JMeter process to add components, run a bit can
JMeter Recording App Scripts