There are eight elements of a test case: case number, procedure, test title, importance level, preconditions, test input, module, and expected result.
Use case numbers are composed of strings, which are easy to identify and unique. Operation steps should be marked with detailed test steps; Test titles should be concise and clear; The importance level is generally divided into high, medium, and low. Preconditions are the preconditions for conducting test cases; Test input includes user name, password, order number, etc. Module indicates the module or unit to be tested; Expected result Indicates the expected output result.
Test cases are very important, which is the basis of design and testing process. At the same time, test cases are also the core of software testing, which can find possible bugs in software. Generally, every software product has corresponding test cases.
Test cases are mainly used for integration testing, system testing, and regression testing. In the implementation of the test, test cases as the test standard, the tester must be in accordance with the test cases strictly in accordance with the test case project and test steps to implement the test. And the test situation is recorded in the test case management software, so as to automatically generate test result documents. ,