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