Basic use Fiddler

[Reserved]

fiddler common scenarios: auxiliary locating the Bug; build simulation test scenario (the mock); weak mobile phone network testing; Performance Analysis and Optimization of the distal end

1. assisted positioning Bug

 

You can grab the request and response by fiddler, by analyzing the parameters, you can locate a front-end or back-end problem issues.

 

Example: Enter data in the APP interface, when you click Next, an error; where the root cause of this problem can not be judged at the time, was the front page limit for lead? Or the parameters of the problem of front-end request, or daemon is hung up? Fiddler by this time you can capture, analyze request, response to determine the root cause of the problem. As APP packet capture.

2. Building a simulation test scenarios

Using Breakpoints, AutoResponsder fiddler of functions, by modifying the request or response parameters, constructed to achieve simulated test scenarios.

 2.1 Example - Modify request parameter

  fiddler中选中Rules->Automatic Breakpoints->Before Requests;

  Page business operations, the page can be seen at this time fiddler icon corresponding request will pass marked red, indicating a request during a breakpoint is set, the request is sent by the client fiddler intercepted, as shown below:

 

  In the left click on the request, and the like at right Inspectors-> TextView interface or WebForms see specific content request directly modify the test data to the simulation scenario, the lower right of the page and then click on the run button to complete.

 

  2.2 Example - Modify response parameter

  fiddler中选中Rules->Automatic Breakpoints->After Requests;

  Page business operations, the page can be seen at this time fiddler icon corresponding request will cut the line marked red indicating a breakpoint setting process in response to a request sent by the client is blocked fiddler.

  In response tab page in the lower right of the page, modify the response data to simulate test scenarios, and then click the button to run to complete.

  PS: breakpoint functionality can also be achieved through the command line bpu way.

3, APP weak network simulation tests

Using Simulate Modem Speeds function fiddler, and can upload, download network traffic size setting network to achieve analog small network environment to provide a weak network simulation tests, i.e., to restrict downloaded through the network delay time data transmission data or received Upload speed and the speed to achieve speed effects

Guess you like

Origin blog.csdn.net/qq_35577990/article/details/93735146