Repeatability of Test Cases
During the iterative process of software code, the impact on the software functions is unknown. It is the most reliable to assume that each iteration will affect all functions. Therefore, all test cases should be verified after each iteration, and the repeatability of test cases is the basic principle to ensure that the cases can be executed repeatedly.
Data Isolation
Test cases should not rely on external data or the results of other test cases, and should have independent and controllable test data. If process-oriented test cases are designed, that is, multiple test cases, and a certain test case relies on the results of other test cases, the execution order of the test cases should be ensured.
State Cleanup
After each test execution, the system should be restored to the initial state to avoid the cumulative impact of the state on the subsequent test results.
Verification Links Such as Verification Codes and Verification SMS
In the test scenario, verification links such as "image verification codes", "email verification codes", and "verification SMS" belong to "non-repeatable" links. To ensure the repeatable testability of test cases, the tested system can consider the following solutions:
The system supports the "test mode" option. In the test model, "turn off the above verification" or "set the verification code to a fixed value". Enable the test mode in the test environment to achieve the repeatability of the test cases.