"Go" is a little trick for mobile app testing

Source: Internet
Author: User

Objective: More and more applications are being supported MovingDevice, HTML5 launch, convenient page to mobile app support, then we how to effectively go TestSupports both app and WebThe code? Web testing can use some of the browser's tools to assist testing, such as some of the FF plug-in capture requests, grab packets, can analyze the data, and then verify the correctness of the data, but the mobile app how to test, how to grab the package, capture these requests, the client is not possible. So is there another way? If the client tests you just use one client to complete the instructions you are out.  Describes a way to capture a packet on a PC, monitor all of the app's requests, and test the app's code. Required technology: Set hotspot, grab Kit tool (use fiddler here), basic knowledge of HTTP request Building hotspots: 1. Write the script in the text:
@echo Off@netsh WLAN set hostednetwork mode=allow Ssid=tuanqa key=123456@netsh WLAN start Hostednetwork@echo On@echo Press Any key to stop hosted Network@pause@netsh WLAN stop Hostednetwork@pause
   Save As Wifi.bat    2. Administrator privileges to run this script, a DOS window will appear, do not close. Turn on the wireless switch (on the laptop) find the network settings, there is a new wireless connection I named Test, select the local connection right-click Property share to select the Share to test check box to allow other network access. Switch to the DOS window just opened press any key window disappears, run as administrator again, this time will find a WiFi network tuanqa password 123456. run fiddle on 3.pc, set: Tools fiddle option ConnectionsThe listening port is set to 8888. Mobile phone connection Tuanqa, in the advanced settings inside the agent set DNSIP port 8888. 4. Modify the hosts on your PC to allow access to your own test environment, and the operation requests on the app will be captured by fiddle. This allows the mobile app to test the same as a Web page, using tools to analyze data and requests.

"Go" is a little trick for mobile app testing

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.