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