Interface Automation test scenario PHP + MySQL

Source: Internet
Author: User

Interface testing is a common task in testing, but in the past the interface test work is generally used in third-party plug-ins, Python-developed Send request scripts, LR scripts, jmeter scripts, before also using Python developed a set of interface Automation test system, But that was also because of the work of the need to sort out, may be more suitable for their work at the time, the help of other small partners may not be very large, because the work needs to adjust to an app project, in this project I immediately found that the previous interface Automation system role is not very large, Because the security of the server-side to the interface for the authentication of cookies, headers and so on, think in the current work, these conditions are often present, so decided to re-develop a set of interface systems, so completely redefined, conceived.

A single test and a batch test were added to the new interface test system, and the individual tests were as follows:

In the new interface test system, the interface address, submission method, cookie, header, parameters, data are added to the submission data, according to their own needs to choose the way of submission, whether to carry cookies and headers and other information, in the submission of information originally designed the expected results, But later, because the usefulness may not be very large to remove, we only need to look at the service side of the return results to know whether it is correct. This is a single interface test. The following look at the bulk of the interface test, commonly known as automation, picture image:

In the interface information list can be seen in our database input all the interface data (there is another Add Data module), the interface list will be input data display, we just need to select the previous ID (whether individual or multiple), select directly run, the system automatically will submit the interface to execute sequentially, And according to the expected results of the system input comparison, if and the expected result of the key, value corresponding to pass, otherwise the state will become non-pass, you can view the data returned by the server after the state information.

There are many imperfect parts of the system that will continue to improve.

Interface Automation test scenario PHP + MySQL

Related Article

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.