Test Case-driven test-Test Case Driven Testing

Source: Internet
Author: User
ArticleDirectory
    • What is a test case?
    • Why design test cases?
What is a test case?

Test cases are the design of the test process. Test Cases are used to guide and supervise the testing activities of the test execution personnel. However, software testers often do not pay much attention to test cases when they are new to tests, especially when performing test activities manually. Test cases are not taken seriously, so testers can test applications as they wish.ProgramOr system, with no guiding principles.

The test case is the soul of the test process. Let's take a look at the test case structure. The test case consists of input, execution logic, test output, and expected results.

 

Use a formula to express Test Cases 

Functon testcasename (inputparameters, expectedresults )? = Actualresult

This formula summarizes and abstracts the test cases. The complex execution process logic in the test cases is abstracted and simplified.

 

Why design test cases?

There are no test cases in the software testing phase, but testing objects based on the testing personnel's experience will lead to many problems. First, the test Manager cannot estimate and plan the testing process, there is no guidance for the test execution personnel, and they cannot monitor what has been tested and how much has been completed. There is a saying that no definition or measurement can be improved. Let's take a look at the cause of this phenomenon. Objectively speaking, the requirements or specifications of the software are unclear. Testers do not know what is the correct test logic. In this case, it is indeed difficult to design test cases and guide the test process. This is not uncommon in software companies with low process maturity. Additionally, the tester may regard the design of the test case as a burden. In addition, to master the design of the test case, the tester should not only be familiar with the software business logic, there is a software quality concept, and it takes some time to be proficient in the test case design technology.

 

During the execution of the automated test, the implementation of the automated test script is to compile a program to test the tested program. In this case, the test case is the logic of the automated test script. Let's try to see what a program will look like if there is no logic.

 

In the test process, the focus is on test cases. During the test processTest Cases drive the test process.

 

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.