HTTP interface Test--Automation framework Design

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.