Performance test: Jmeter records mobile app script

Environment preparation: 1. Mobile phone 2. wifi3. Jmeter

Specific steps:

1. Start Jmeter;

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

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

4. Configure the proxy server: Port configuration under Global Settings: 9988, HTTPS Domains configuration: http://10.200.52.88 , Target controller configuration: Test Plan > Thread Group, Port: Set as desired; IP: Computer's IP, Set as shown below

5. Set the proxy for mobile wifi: "Proxy" - select "Manual"; "Proxy server host name" - "10.200.52.88" "Proxy server port" - "9988"

6. Connect your 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 captured the requests issued by the app.

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

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

11. Save the jmx script;

12. Add viewing result tree; 12. Playback.

The complete structure is as shown below:

Finally, I would like to thank everyone who has read my article carefully. Looking at the increase in fans and attention, there is always some courtesy. Although it is not a very valuable thing, if you can use it, you can take it directly!

Software Testing Interview Document

We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and some Byte bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.
 

Insert image description here

Guess you like

Origin blog.csdn.net/jiangjunsss/article/details/132978230