In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
About case Design
We usually focus on coding and often forget that the design of case is also very important. If you are doing interface function automation testing, then you should consider the combination of various interface parameters, such as, in normal times, abnormal times, required, and so on. At this time, it is time to test the foundation of case design.
If you are doing interface performance testing, you can generally choose the positive case.
Design Conception of Test Framework
As mentioned earlier in the article "to those who have code foundation but still don't know how to learn automated testing", testing ideas are more valuable than technology, and an example is given about how to learn automated testing. one of the most taboo is to write code if you don't want to come up.
So, let's calm down and think about it from a design point of view. Everyone's ideas are different, there is no need to be serious, I only list my ideas here, there must be some disadvantages, just for reference.
Commons put public function
Src release source code
Testcases put the test case file, a test case file is best for all test cases of an interface, do not mix together
Testdata puts test data. If the data is long or large, it can be extracted and put here. It can be regarded as a reservation.
Testsuites organizes test cases into different test suites
Imagine further:
Put requests in commons, for example, if you call get, post requests, etc.
Read the configuration file in src. We know that host often changes, and it will be more convenient to manage it in the form of configuration files.
Testcases release the test code
Testdata can put test data, thus achieving the separation of data and code. We haven't mentioned it here. Interested friends can try it themselves.
Testsuites mainly does the combination of use cases, and the method of using it is very simple, followed by code.
Source code acquisition
Click the link to join QQ Group 522720170 (free open courses, videos and everything):
Https://jq.qq.com/?_wv=1027&k=5C08ATe
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.