当前位置:网站首页>Fiddler simulates the interface test

Fiddler simulates the interface test

2022-07-07 10:09:00 Splendid Qianyang 813

Catalog

 

One .Composer brief introduction

Two . simulation get request

3、 ... and . simulation post request


https://www.cnblogs.com/yoyoketang/p/6754560.html

One .Composer brief introduction

Click on the right side Composer Area , You can see the following interface , This is the interface of the test interface

  1. Request mode : Click to check the request agreement is get、post etc.
  2. url Address bar : Enter the requested url Address
  3. Request header : The third area can input the request header information
  4. request body:post Request input... In this field body Information
  5. perform :Execute Click the button to execute the request
  6. http edition : You can check http edition
  7. Request history : It will be on the right after execution History Area generation history

Two . simulation get request

1. stay Composer Enter the blog home page in the regional address bar :http://www.cnblogs.com/yoyoketang/

2. choice get request , spot Execute perform , The request can be sent successfully

3. After the request is sent successfully , The left conversation box will generate a conversation record , You can check the details of bag grabbing

4. On the right side history The area will have an additional history request record

5. The session box selects the record , Check the test results

-- Select the session , It opens at Inspectors

--response Open the area Raw Area

--Raw Check out HTML Source data

-- You can also order WebView, Check back web The page data

 

 

3、 ... and . simulation post request

1. Request type check post

2.url Input the corresponding request address in the address field

3.body Area write login json Parameters

4.header Request header area , You can grab the data in front of you copy To come over

( Be careful , Some requests if the request header is empty , Will ask for failure )

5. After successful execution, check the test results :

-- The execution is successful as shown in Figure 3 , Show success=True

-- The execution fails as shown in the figure below , Show

message=Invalid length for a Base-64 char array or string.

success=False

 

原网站

版权声明
本文为[Splendid Qianyang 813]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130623332653.html