fiddler capture -5-Composer interface function tests

Foreword

fiddler is a powerful tool for grasping the interface, easy to see all the parameters of the interface, a presentation here Composer function that can also interface testing, usually interfaces may pass argument wrong, we can drag and drop interface to change parameters directly request again, very convenient !

A, Composer Introduction

  1. Open the fiddler, click [ Composer ] that is

  2. Request: Can check request protocol is get, post, put request other ways

  2.url: input interface rul, such as: https://www.cnblogs.com/gsxl/

  3. Request header information: for example, need to take common json json header information

  4. request parameters: both parameters into our interface

  5. Run: Click Execute request that both interfaces

  6.http Version: multiple versions, generally do not choose here

  7. Request record: it is every request we will be here together history

 

 

 Second, a simple request interface test

  1. Select the post way

  2. Enter the url

  3. Enter json request header: Content-Type: application / json

  4. into the reference

  5. Run

 

 

   6. Review the results of the request, select [Inspecetors] - select the interface -Raw request information and response information, we can see a successful login

 

  7. Of course, we can also modify the request parameters, such as I let the account does not exist, modify the wrong phone number on it, send a request:

Third, I get in the test Tips

  1. open packet capture tool, if it is found that there exists bug, so easily able to determine the front-end or back-end bug bug friends

  2. open packet capture tool, turn the front end of suspected wrong parameters, then we can change it with the Composer function, send a request to try

  3. driving a packet capture tool, easy to know which interface packets of 500 or error, you can submit bug copy it directly to the development of this interface and parameters

The case if you're a developer or front-end staff, can not see the interface, fiddler is not a preferred tool?

Guess you like

Origin www.cnblogs.com/gsxl/p/11786020.html