Optimising software testing processes has gained significant attention in recent decades. Test optimisation is often viewed as a problem of multi-criteria decision-making. When making a decision, several conflicting criteria or objectives need to be considered simultaneously. In such situations, there are typically multiple alternatives or options available, and each option is evaluated based on a number of criteria or factors.
The decision makers need to weigh the importance of each criterion and make trade-offs between them to arrive at the most appropriate solution. The complexity arises in reconciling the frequently opposing desires and objectives connected with differing criteria.
A well-thought-out testing strategy plays a vital role in achieving various objectives, including cost and time minimization, timely delivery, and improved software quality.
Optimizing tests can effectively reduce costs, by selecting the most relevant test cases, prioritize them, schedule them efficiently, and increase automatisation of tests for the entire testing strategy.
One crucial aspect is selecting the appropriate test cases that align with the desired test strategy.
This involves identifying redundant or unnecessary data and streamlining the testing process to enhance efficiency and reduce costs.
It is essential to establish clear criteria for test case selection to ensure the testing process is focused and effective.
When dealing with a large number of reusable test cases and test suites in regression and validation testing, it becomes necessary to prioritize specific cases that can be executed within the given time constraints.
If the total runtime of available test cases exceeds the project’s allocated time limit, a subset of test cases or test suites must be selected.
The goal of test case selection and prioritization is to maximize fault detection within the time constraints, taking into account factors such as code coverage, novelty of the system or test case, previous defect identification, complexity of requirements, and other relevant criteria specific to the project.