本篇文章主要介绍了"从8个方面写好测试用例",主要涉及到require方面的内容,对于软件测试感兴趣的同学可以参考一下:
TestAndTry.com的文章《8 Tips To Create Complete Test Cases》描述了如何写好测试用例,值得参考和借鉴: H...
TestAndTry.com的文章《8 Tips To Create Complete Test Cases》描述了如何写好测试用例,值得参考和借鉴:
How to ensure the quality of the test cases are created? How to manage their life cycle? How to deliver them quickly and when developers need it ?
1. Template– need one and complete template for creating test cases. We can create it in a text editor, spreadsheet or buy or customize the tool. I have written about this in the context of the JIRA.
(使用测试用例模板)
2. Descriptive and specific– you need a short, concise title and description. Should clearly define the purpose and scope of their operations. We are writing to all testers, not only for yourself, use simple language, complicated language figures are not popular here. Use rather imperative, therefore “Write abc and press enter” not “I am writing abc, and pressing Enter.”
(测试用例描述要简明扼要、清晰明确)
3. Reusable– one and the same test case can be used in many scenarios. Let us remember that! Creating a new item, we must imagine a different kind of use case of our work. I also imagine that test step could be reused, so pay your attention at this level too.
(考虑测试用例的可重用性)
4. Atomic– the greatest tester nightmare struggled with the manual testing is a test case, which is too long and doing too much dependency checks. Person carrying out a process must have a sense of progress, otherwise is bored, reducing its vigilance, and motivation. Tester may have to perform 100 test cases and do them in one day, but it can also have their 10 and do it for a week. Let us create test case, which can be performed up to several minutes, and gain the favor of the other fellow testers, among the satisfied, we can also include those who write automation scripts.
(保持测试用例的“原子性”)