Basic Principles of software test case design)

Source: Internet
Author: User

Software Test Case Design Principles-51testing software testing network-China Software tester Spiritual Home http://www.51testing.com/html/74/n-227374.html

InTestIn case design, in addition to complying with the basic test case writing specifications, some basic principles should also be followed.

  1. Try to avoid vague Test Cases

Vague test cases make the test process difficult, and even affect the test results. In the testing process. The status of the test case is unique. Generally, the test process is executed. A good test case usually has two states: Pass, fail, and not done. If the test is successful, generally, there will be a test error (Bug) report associated: if the test is not performed, you need to explain the cause (the test case itself is incorrect, the test case is currently not applicable, and environmental factors). Therefore, clear test cases enable the tester to be ambiguous during the test process. It cannot be said that the test case is partially passed, some fail, or the problem can be found in the test case description, however, software errors should occur in this test case towel. Such a test case will make it difficult for the tester to judge, and it is not conducive to tracking the test process during crash.

For example, we also use the broken example to describe the test case design for the user login page verification test:

● Enter the correct JF user and password, and enter the wrong user and password. The program will pop up a dialog box.

Such a test case design does not clearly describe what is normal.WorkState, what is the abnormal state of the program, so ambiguous test cases will inevitably lead to omissions in the test process.

 2. abstract and classify test cases with similar functions as much as possible

Always stressedSoftware TestingThe process cannot carry out exhaustive tests. Therefore, the abstract process of similar test cases is particularly important. A good test should be sufficient to represent a group or a series of test processes.

3. avoid lengthy and complex test cases as much as possible

The main purpose of this operation is to ensure the uniqueness of the verification results. This is also consistent with the first principle, in order to ensure the output status of the test case during the test process th, in this way, it is easy to track and manage the test cases in some long and complex test case setup processes. Therefore, the test cases must be reasonably decomposed to ensure the accuracy of the test cases. In some cases, the test case contains many types of input, loss, or the logic of the test process is complex and the currency is continuous. In this case, the test case must be decomposed. In the actual test case design, Zhang needs to establish the aforementioned basic principles and considerations, and follow the basic test case writing specifications. Flexibly organize design test instances according to actual test requirements. Considerations in Test Case DesignWhite box testingUse Case year U black box test case.

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.