Jmeter proxy recording mobile app
Environmental description
Jmeter (5.0)-local
app-local Xiaoyao simulator
Jmeter settings
1. Create a new HTTP proxy server under the test plan (you can set the language to Chinese first, otherwise it will be difficult to find)
2. Create a new thread group under the test plan
3. Set the port number of the HTTP proxy service (default 8888, if there is a conflict, you can Modification), HTTPS Domains: If recording on the local machine, it is localhost (if there is a problem with the recording, you can try to change the ip address of the local machine, enter cmd ipconfig, query), and put the target controller setting into the thread group (put the recording content into Thread group), others can not be modified by default.
4. Requests Flitering can set what you need or don’t need (generally set the exclusion mode, click to add suggested exclusion, or you can set it according to your needs,
.*\.(js|css|PNG|jpg|ico|png|gif ).*
5. Click Start, and a license description will pop up (if you are interested, you can read it in detail, and click OK to close if you are not interested)
6. Open the local proxy server settings, enter localhost for the address, and the port and Jmeter are the same as 8888
Easy Simulator Settings
7. Open the Xiaoyao Simulator and enter the network setting page, click Modify Network, and enter the setting page
8. Set the proxy server address (ie local ip address), the port number is Jmeter's port number 8888, and click Save
9. At this time, all kinds of software that need to be connected to the network are operated in the Xiaoyao simulator, and their related requests will be recorded under the thread group
Concluding remarks
The above is all the steps
to use Jmeter to record the mobile app. In the next issue, we will use Jmeter to test the performance of the mobile app.