Current location - Education and Training Encyclopedia - Education and training - Java Training of Beida Jade Bird: Analysis of Interface Automation Test Document Architecture?
Java Training of Beida Jade Bird: Analysis of Interface Automation Test Document Architecture?
Automated testing is a new product after the development of Internet software development industry. Today, let's take a look at the automatic testing of interfaces and what the document architecture of interface testing needs to include.

What are the components of the interface? The interface document should contain the following contents: 1, interface description 2, call url3, request method (get\post)4, request parameter, parameter type, request parameter description 5, and return parameter description. If it is a test/suggestion, it is used to send various test requests.

2. Parse the result xml to obtain the class of the interested result value.

3. Classes used to compare test results with expected values for verification.

Of course, this is a simple http excuse testing framework, and it can be more powerful if you want, such as automatically generating test data, generating test reports in custom formats, automatically sending test reports, and checking whether the server data content is correct.