In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The original plan does not have this section, because LoadRunner does not support the recording feature of APP very well. Although LoadRunner12 has good support, it is also troublesome to operate. In fact, it is better to do the interface level for the performance test of the APP backend. However, being asked this question by many rookie friends, I really don't have the energy to answer it. Let's unify it here and explain it to everyone.
The preparatory work that needs to be done in advance is as follows:
Install LoadRunner11 and install patches to support recording for APP.
Winpcap software is installed on the computer to capture requests.
A hot WiFi software is installed on the computer, and 160WIFI and 360WIFI can be used normally after testing.
Install Baidu Tieba APP on the phone, register an account in advance, and then clear all cached data.
After completing the above preparations, let's take a look at the general implementation steps of recording login sticker bar APP:
1) when you start LoadRunner, you can find an additional item in the protocol: Mobile App (HTTP/HTML). Select this protocol and create a new script.
2) allow your phone to successfully connect to the WIFI hotspot above (not to mention how to connect, not to Google on your own).
3) after completing the above steps, click the record button, select the first option in figure 2.4, and then click next.
Figure 2.4 Recording type
4) Click the "Connect" button in "Configure & Record", and the content shown in figure 2.5 appears after a successful connection. Select the hot WiFi Nic you just installed and started at "Record network".
Figure 2.5 successful connection
5) Click the "Start Recording" button in figure 2.4 to start grabbing the package, as shown in figure 2.6.
Figure 2.6 Recording
6) then you operate the business of login bar APP on your mobile phone. Click the "Stop Recording" button after the operation, which will prompt you to save a file with the suffix pcap, and then click "next".
7) Import the file with the suffix pcap you just saved, and filter the hotspot WiFi IP of the phone connection, as shown in figure 2.7. Finally, click the finish button to see the generated code.
Figure 2.7 Analysis document
After the above operation, you can find that it is still relatively tedious, and the effect is general, so it is not recommended that you use it. Tools can be a good thing sometimes, but we can't rely too much on them, especially on recording.
For mobile APP testing, I personally suggest that interface-level testing is better. The method of writing scripts is no different from ordinary interface testing. What you may need to pay attention to is that some requests add some special request headers, which can be completed by using the web_add_header function, like this: web_add_header ("PLATFORM", "ios")
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.