In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Hello, everyone. Recently, a lot of people have asked me about APP performance testing. I always intended to publish it, but due to various factors, the company once asked me to explain the APP performance test to my clients. Since I came back, I always felt it necessary to write it down. All right, no more crap.
In the current version of LoadRunner12, there are four ways to generate scripts in the figure.
Recording and Analyze Traffic
Analyze Traffic
Record Emulator
Proxy Recording
The first kind: Record and Analyze Traffic
To set up a wifi hotspot on your computer, you need to share the network to the hotspot, or you can use portable WiFi
After creating a hot spot on your computer, because the author is an IOS mobile phone, you need to use Fiddler agent to install DO_NOT_TRUST_FiddlerRoot descriptive files. The installation steps are as follows:
1) Open Fiddler,Tool-> Fiddler Options, select "Decrpt HTTPS tracffic", and select "Allow remote computers to connect"
2) Open iPhone to find the connected network connection named test, open the HTTP manual agent, and enter the IP address of the computer where Fiddler is installed (such as 10.80.0.128) and the port number of Fiddler 8888 in the server column.
3) Open the Safari of iPhone, visit 10.80.0.128 FiddlerRoot certificate 8888, and click "install"
1.
two。 Open Wireshark, click Interface List, click Wireless Network connection 2 Details to view Interface,Record network, select the Interface name of Wireless Network connection 2
3. Start recording, operate APP on the phone that is connected to the wifi hotspot, stop recording, save the captured pcap format file, next
4. The client filter fills in the IP address of the phone, finishes, and LoadRunner automatically analyzes and generates the script.
The second kind: Analyze Traffic
In fact, there is not much difference between the second and the first. After creating WiFi and downloading and installing DO_NOT_TRUST_FiddlerRoot description files on your phone, use Wireshark to start grabbing packets, select the network connection where the phone's wifi hotspot is located, and click Start.
Next, as long as you operate the APP that needs to be tested, grab the package as follows:
Save it in pcap format, where I save it on the desktop.
Then, as in the first method, select test.pcap,Client side filter to fill in the phone's IP address (such as 192.168.137.139), click finish, and LoadRunner automatically analyzes and generates the script.
The third kind: Record Emulator
1. After downloading the Android simulator, configure the environment variable, path C:\ Users\ L\ Desktop\ android\ sdk\ platform-tools
The path depends on your own situation. Here I download and decompress the Android simulator on my desktop. Here, you also need to install jdk and configure the jdk environment variable. If you have already installed jdk and configured the environment variable, you will not need it.
two。 After you have run the Android simulator, install the Android version of APP that needs to be tested
3. Select Record Emulator and click next to select the Android emulator execution file. Enter @ lwq (the name of the Android emulator here) at C:\ Users\ L\ Desktop\ android\ sdk\ tools\ emulator.exe,Command Line. Working directory is the working directory, and you can customize a folder.
4. Stop recording after operation to generate a script
The fourth kind: Proxy Recording
After creating the WiFi and downloading and installing the DO_NOT_TRUST_FiddlerRoot description file on the phone
1. Open the Virtual User Generator of LoadRunner, create a script, select the Mobile Application-HTTP/HTML protocol, click the record button, select Proxy Recording, click next, enter the proxy listening port (such as 8888), and click finish.
two。 Because the author is an iPhone, here is an example of an iPhone, the same principle of Android phones. Set the HTTP proxy manually. The server address is the computer IP address, and the port is LoadRunner proxy listening port 8888.
(hint: start loadrunner recording first, and then configure the proxy port of the phone)
W
As you can see from the above two pictures, the first picture shows the notebook connecting the network cable and then opening the hotspot to share to the network connection 2, and the second picture is that the notebook connects wirelessly and then opens the hotspot to share to the network connection 2. If it is the first, the server address should fill in the local connection address 192.168.1.101 when setting the HTTP proxy manually. If it is the second way to manually set the HTTP proxy, the server address should be filled in the wireless network connection 2 address 192.168.137.1
3. Then operate APP and finally stop recording the generated script.
The fourth method is essentially the same as Web-HTTP/HTML proxy recording.
From the above four ways, we can see that the fourth way is the most convenient, and the third way I do not recommend. The first time to publish a blog in 51CTO, my level is limited, if there are mistakes, you are welcome to point out.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.