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.