In the realm of software development, testing is crucial for ensuring software quality and adherence to requirements. However, it can be time-consuming and resource-intensive, especially when dealing with large and complex software systems. Test case prioritization (TCP) is a vital strategy to enhance testing efficiency by identifying the most critical test cases for early execution. This paper introduces a novel fuzzy logic-based approach to automate TCP, using fuzzy linguistic variables and expert-derived fuzzy rules to establish a link between test case characteristics and their prioritization. Our methodology utilizes two fuzzy variables - failure rate and execution time - alongside two crisp parameters: Prerequisite Test Case and Recently Updated Flag. Our findings demonstrate the proposed system capacity to rank test cases effectively through experimental validation on a real-world software system. The results affirm the practical applicability of our approach in optimizing the TCP and reducing the resource intensity of software testing.
翻译:在软件开发领域,测试对于确保软件质量与需求符合性至关重要。然而,当面对大型复杂软件系统时,测试过程往往耗时且资源密集。测试用例优先级排序技术通过识别最具关键性的测试用例并优先执行,是提升测试效率的重要策略。本文提出一种基于模糊逻辑的新型自动化优先级排序方法,利用模糊语言变量与专家定义的模糊规则,建立测试用例特征与优先级排序之间的关联。该方法采用两个模糊变量(故障率与执行时间)以及两个精确参数(前置测试用例与最近更新标志)。通过在真实软件系统上的实验验证,本系统能够有效实现测试用例的排序。研究结果证实了该方法在优化测试用例优先级排序与降低软件测试资源消耗方面的实际应用价值。