practice using jmeter to record mobile app scripts and execute, record
Operation Steps:
1. computer download Jmeter http://jmeter.apache.org/download_jmeter.cgi
2. Windows Environment, unzip the package directly, then open \apache-jmeter-3.0\bin\jmeter.bat, Open the following page as follows:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/85/E1/wKiom1etYIexBlsGAACjqz-eVkI294.png-wh_500x0-wm_3 -wmp_4-s_3757759357.png "title=" 1.jpg.png "alt=" Wkiom1etyiexblsgaacjqz-evki294.png-wh_50 "/>
3. Right-click Test Plan - add -threads (Users)- thread Group
4. Right-click on the table- add - non-test element -http Proxy Server
5. Change the Http Proxy server information as follows:
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/E1/wKiom1etYLvTyl3GAAC5Z1yCz6k705.png-wh_500x0-wm_3 -wmp_4-s_2654264527.png "title=" 2.jpg.png "alt=" Wkiom1etylvtyl3gaac5z1ycz6k705.png-wh_50 "/>
6. After the setup is finished, click Start at the bottom of the page, click OK after pop-up confirmation (preferably after the phone is configured and then start)
7. Configure the network proxy for your phone
" Agent "--- Select " Manual " ;
" Proxy Server Host name "---" 10.235.178.7 "
" Proxy Server Port "----" 9988 "
8. Connect the WiFi set up in step 7
9. 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.
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/85/E1/wKioL1etYMmCUajxAAC6h7y65vA962.png-wh_500x0-wm_3 -wmp_4-s_3431693102.png "title=" 3.jpg.png "alt=" Wkiol1etymmcuajxaac6h7y65va962.png-wh_50 "/>
10.      stop jemter "HTTP proxy "
11. Delete unrelated requests in the thread group ;
12. save jmx scripts;
13. Add view results tree;
14. playback.
JMeter recording your phone's script