JMeter Recording App Scripts

Source: Internet
Author: User
Tags server port

1. Create a new thread group named app (you can define it yourself)

2. Add-on, non-test element->http Proxy Server, add an HTTP proxy server

3. Setting up the JMeter agent

Port: A service is started by default when the agent is turned on, and it is recommended to modify the default port to prevent conflicts with your local port

Target controller: Here is where you set up the script code recording, and we'll adjust it to the previously created thread group

4. Set up an app agent

Premise: The network of mobile phone and computer must be in a LAN

This is done using the night God Simulator.

Open Settings->wlan-> Long Press Select Modify Network--display advanced, in the agent's Place select manual

Get the computer's IP address, fill in, Proxy server port to fill in JMeter before the port can be set

5. Start recording

Enter JMeter to start the HTTP proxy server, start

Operate the app on your phone, and you'll see a transcript of the relevant recording on the JMeter

We found that the recorded script will have something we do not need, such as tablets, which we can use to exclude the content of the exclusion mode is not required, the specific settings are as follows:

HTTP proxy Server->requests filtering-> exclusion mode

6. Run the script

According to the normal JMeter process to add components, run a bit can

JMeter Recording App Scripts

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.