I. Description of TEST requirements
A series of HTTP interface functional tests on the service backend.
Input: Constructs different parameter input values (JSON format) according to the interface description
Output: String (incoming method + incoming string)
Http://localhost:8090/lctest/TestServer
Ii. Framework Design – programming
1.Client program Design
Reading test case data from an Excel configuration
Send parameter JSON format to server, receive server's return data
Perform data parity checks, return test results, insert data into Excel
2. Server-side programming
Accept the parameters of the client to parse
Send return data to client
Third, the realization method
1. Use Java Script to drive test
2, the Use of Excel table management test data, including use case management, test data entry, test results display and so on, this needs to encapsulate an Excel class.
3. Call HTTP interface with Java-based API
4, the test needs to convert the parameters into a string
5, through the comparison between the expected results and the actual results, the actual results and comparisons are written into the Excel use case, where a class is encapsulated
6, the first execution of the test using manual Check the output is correct, once correctly written to excel in the desired results, if found errors manually corrected to the expected file.
HTTP interface Test--Automation framework Design