"App problem Locator (ii)" Charles Locator Tool

Source: Internet
Author: User

The Charles tool is a simple test tool used in app testing to determine the cause of a bug by capturing information from request and response.

This article will be from the installation, use two aspects to introduce.

    • Installation

Click here to go to the download page, pay attention to choose the corresponding version of your computer system.

After the download is complete, the installation is ready, and the installation location is optional, so there is not much to say.

    • Use

1. Canceling the Windows Agent

Cancel the Windows proxy Proxy in proxy, or Charles will simultaneously capture requests sent and accepted by the computer.

  

2. View port number

Select Proxy->proxy Setting, a window will pop up, 8888 is the default port number, without modification. If you prefer to modify it to your liking, be careful not to repeat the port with other apps.

  

3. Connect your phone: Set up an advanced network agent

First, let's take a look at the computer's IP, open the command line, and enter the command ipconfig. I erased the IP address of the small-sized red box.

  

Next, let the phone or simulator and the computer use the same network segment. For example, my computer is connected to vivo x6d WiFi

  

On the connected WiFi long press (and possibly other actions), find "Modify network", change "proxy settings" to "manual", the host name of the computer's IP, "proxy port" set to 8888 (Charles's port number), click Save.

In turn, such as

If you are using a simulator, such as the pre-recommended night God Simulator, in the WLAN, we do not need to find and computer-like WiFi, using the default WiFi, of course, we need to follow the above method to modify the network.

  

4. Capturing requests

Open Charles, open a mobile app that needs to be networked, the left side represents the requested and returned information, and the right side is a specific description of the information on the left.

  

After using Charles for a period of time, the following interface may pop up, presumably to tell us that each time we use Charles can only use 30min, timeout will pop up this window, turn off the restart can be used again.

Charles has a probationary period, the trial period can be used casually, after the trial period, every 30 minutes will fall off the line once. The trial version of the software has a certain delay compared to the official purchase version of the software.

·

5.Charles hack

Replace the Charles.jar file with the Lib file directory of the installation directory, password: 8NSD, restart Charles.

"App problem Locator (ii)" Charles Locator Tool

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.