Interface documentation and interface test cases

  1. The generation of interface documents: the interface API documents provided by the back-end personnel, such as java background python or C/C++ (the current situation is that the front and back ends are separated)

  2. The interface document contains: request mode path parameter response text content request header request body

  3. Tester: First get the interface document, analyze the functions in the interface document, request method, request header, request parameter, request body, whether the request parameter is empty, the request parameter type, length, whether it is unique, write the interface test case, use the interface Test tool Postman for interface testing

  4. Test
    case Test case report insert image description here
    Test interface report
    insert image description here

  5. How to write an interface test case when passing parameters for a long time? Of
    the same type, whether it must be passed, type, length, take one to write an interface test case, but both must be tested when testing

  6. interface test

Put the request path of the interface test case into the downloaded Postman, and splice the parameters. The path without test can go to link .Register

Introduction to postman
insert image description here
insert image description here

insert image description here
Query the attribution of the mobile phone number
insert image description here
Convert the obtained data to josn

set global environment
insert image description here
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44826661/article/details/123706915