JMeter recording your phone's script

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.