Design conception of phpunit-frame of interface Automation Test series

Source: Internet
Author: User

About Case Design

We always keep in mind that code writing often forgets about case design is also very important. If you are doing interface function Automation test, then you have to consider the combination of various interface parameters, such as normal, when not normal, must fill in and so on. This is the time to test case design of the foundation .....

If you are doing interface performance testing, you will generally choose a positive case.

Test Framework Design Ideas

Earlier in the article "for those who have code base but still do not learn automated test friends," said the test ideas more valuable than technology, also give examples of how to learn automated testing, one of the most taboo is that nothing wants to write code.

So, let's calm down and think about it from the point of view of design. Everyone's thinking is not the same, there is no need to seriously, I here only list my ideas, there must be bad places, for reference only.

  • Commons public functions

  • SRC Release source code

  • Testcases put the test case file, a test case file best of all test cases for an interface, don't mix it up

  • TestData put test data, for the data is long or large can be refined out here, is a reservation it

  • Testsuites to organize test cases into different test suites

Consider further:

  • Commons requests, such as when you call GET, post requests, and so on

  • SRC in the read configuration file. We know that host often changes, and it's easier to manage it in the form of a configuration file.

  • Testcases put the test code

  • TestData can put test data so that the separation of data and code is realized. We have not raised here, interested friends can try their own

  • Testsuites is mainly a combination of use cases, using the method is very simple, followed by code

Source Access

Click on the link to join QQ Group 522720170 (free public classes, videos have everything):

Https://jq.qq.com/?_wv=1027&k=5C08ATe


This article is from the "Cockroach Performance automation test brand" blog, please be sure to keep this source http://xqtesting.blog.51cto.com/4626073/1982221

Design conception of phpunit-frame of interface Automation Test series

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.