(8), JMeter uses the proxy to record the performance test script of the App mobile phone

 

1. Environmental preparation:

1. Mobile phone

2.wifi

3.Jmeter

 

2. Specific steps:

1. Start Jmeter;

2. Add "Thread Group" to "Test Plan";

3. Add "HTTP Proxy Server" in "Workbench";

4. Configure the proxy server: port configuration under Global Settings: 8888, HTTPS Domains configuration: 10.250.150.49, target controller configuration: Test Plan > Thread Group

Among them, port: set at will; ip: the ip of the computer, as shown in the figure below

 

 

5. Mobile wifi settings proxy:

"Proxy"---select "Manual";

"Proxy server hostname"---"10.250.150.49"

"Proxy server port"----"8888"

 

 

6. Connect the mobile phone to the wifi you just configured;

7. HTTP proxy server - click the "Start" button to start the HTTP proxy server;

8. Start the APP that needs to be tested on the mobile phone and perform business operations; at this time, you can see that the thread group has caught the request sent by the app.

9. After the business operation is completed, immediately stop the "HTTP proxy server" on the jemter, otherwise it will keep capturing packets, and there will be many useless requests in the thread group;

10. Delete irrelevant requests in the "Thread Group";

11, save jmx screenplay;

12. Add viewing result tree;

12. Playback.

 

3. The complete structure is as follows:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325973195&siteId=291194637