The most detailed in the whole network, Fiddler packet capture practical tutorial - auxiliary interface test (1)


foreword

Fiddler common settings
Options location: Tools->Options

Please add a picture description

Please add a picture description

Please add a picture description

The mobile terminal connects to Fiddler as a proxy

Note: Because Charles also defaults to port 8888, be careful to open two applications at the same time to cause port conflicts.

IOS terminal connects to Fiddler
iOS mobile phone setting proxy steps:
Click the wifi blue exclamation point -> click the bottom configuration proxy -> click manual -> enter the server (IP) and port (8888)

iOS installation steps:
enter the URL in the browser, prompt whether to allow the display of the description file, allow -> install the description file;
open Settings -> General -> About This Machine -> Certificate Trust Settings;

Connect the Android side to Fiddler
and set the proxy on the Android phone:
long press wifi to modify the network -> advanced options, proxy, manual -> enter the server host name (IP) and server port (8888). Then, the mobile browser accesses the IP: port number to install the certificate

Please add a picture description

Android installation steps:
enter the URL in the browser -> name the certificate, and confirm

Fiddler interface introduction and use

1. Basic interface

Please add a picture description

Remark, after adding, display the remark content in the Comment column of the session bar
Replay: send the corresponding request again [commonly used]
Symbol X: clear the session panel
Go: breakpoint debugging, click go to execute the next step [commonly used]

Stream: Proxy mode. Default: buffered mode. Click to toggle.
Streaming mode streaming: The client's request data is transmitted to the server in real time, which is closer to the real behavior of the browser itself.
Buffering mode buffering: buffer the request data from the client, and send it to the server after the data is written.

Decode: Decompression request. Unzip the contents of the http request to help view the response content [commonly used]
Keep: keep the number of sessions

clear list

Please add a picture description

Clear all conversations;
clear requests to load images;
clear requests using the http connect method;
clear requests with status codes other than 200; clear requests
sent by non-browsers; clear requests
that have responded to requests and are not marked;
clear requests that respond to the same body , keep only one;

Please add a picture description

Any Process: Capture requests and only look at the required requests. Put the "bullseye" on the required request
Find: Find the request, you can highlight the searched request [commonly used]
Save: Save the session
screenshot, the screenshot will be taken after 5 seconds by default (computer full screen)
Timer
Browse: Click the session, then click Browse to start The browser sends this request to quickly start the browser
Clear Cache: Clear the browser cache
TextWizard: Encode and decode text content. Generally, requests containing Chinese need to be decoded to be seen, so copy the url to TextWizard, and then select URLDecode [commonly used]
TearOff : floating window
msdn search: .net development

session icon

Please add a picture description

Please add a picture description

Status Panel Features

Please add a picture description

Console: you can enter some command lines; input help: you can see common command lines;
capturing: in the lower left corner of fideler, the display of capturing indicates normal work; 1. Console: you can enter some command lines; input help: you can see common commands command line;
All Processes: filter session sources, web brower filters sessions;
M/N records the number of currently displayed sessions;
status information: status bar display.

command line tool

Please add a picture description

Basic commands
<4kFilter sessions whose response size is smaller than 4kb
<4000Filter sessions whose response size is smaller than 4000 bytes Filter sessions whose
>4kresponse size is larger than 4kb Filter sessions
>4000whose response size is larger than 4000 bytes

?searchtextFilter requests containing searchtext content
=statusFilter sessions with response status = state
=methodFilter sessions with request method = method Filter
@hostsessions with host
g、goRestore all breakpoint sessions
cls、clearClear session list
startStart listening sessions
stopStop listening sessions
quitExit fiddler

Command line setting breakpoint command
bpu strSet a request breakpoint for the url containing str, only intercept the request, not the response
bpuClear request breakpoint
bpafter strSet a response breakpoint for the url containing str, only intercept the response, not intercept the request
bpafterClear the response breakpoint
bps 404Set a breakpoint for the request whose status code is 404.
bpsClear the status code breakpoint.
bpm postSet a breakpoint for the request whose request method is post.
bpmClear the request method breakpoint. Bold
bold strthe url containing str.
boldClear Bold

The following is the most complete software test engineer learning knowledge architecture system diagram in 2023 that I compiled

1. From entry to mastery of Python programming

Please add a picture description

2. Interface automation project actual combat

Please add a picture description

3. Actual Combat of Web Automation Project

Please add a picture description

4. Actual Combat of App Automation Project

Please add a picture description

5. Resume of first-tier manufacturers

Please add a picture description

6. Test and develop DevOps system

Please add a picture description

7. Commonly used automated testing tools

Please add a picture description

Eight, JMeter performance test

Please add a picture description

9. Summary (little surprise at the end)

Only through bitter struggle can one taste the sweetness of victory; only through hard work of countless sweats can one feel the joy of growth. Persevere and move towards the goal, you will definitely create your own brilliance!

Every flow of sweat is the proof of your struggle, and unremitting efforts will usher in brilliant achievements. No matter how difficult and dangerous the road ahead is, as long as you have faith in your heart, you can overcome difficulties and create your own brilliant life!

As long as you have a dream in your heart and work hard, you can dispel the darkness and light up the way forward; difficulties are the ladder of growth, and persistence is the password to success. Be your own hero, go forward bravely, and create your own brilliance!

Guess you like

Origin blog.csdn.net/shuang_waiwai/article/details/131535854