arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.12484cs.SE
收藏

不确定性感知的测试优先级排序:方法与实证评估

Uncertainty-Aware Test Prioritization: Approaches and Empirical Evaluation

Man Zhang, Jiahui Wu, Shaukat Ali, Tao Yue

AI总结:

本文提出不确定性感知和时间感知的测试用例优先级排序方法UncerPrio,通过多目标搜索优化测试序列,结合四种不确定性度量提出10个优先级排序问题,并在工业CPS系统上实证验证了多目标搜索算法显著优于随机算法。

摘要:

复杂软件系统,例如信息物理系统(CPSs),与现实世界交互;因此,它们在不确定的环境中常常表现出意料之外的行为。由于资源有限、时间有限、测试基础设施设置复杂以及其运行环境中固有的不确定性,测试此类系统具有挑战性。设计由测试优化技术支持的不确定性感知测试解决方案可被视为应对这一挑战的必然要求。本文提出了一种不确定性感知和时间感知的测试用例优先级排序方法,名为UncerPrio,用于通过多目标搜索优化要执行的测试序列。为了利用不确定性指导优先级排序,我们确定了四种不确定性度量:不确定性测量(AUM)、不确定性空间(PUS)、不确定性数量(ANU)和不确定性覆盖率(PUU)。基于这些度量及其组合,我们提出了10个不确定性感知和多目标的测试用例优先级排序问题,每个问题还额外定义了一个需要最小化的成本目标(执行成本,PET)和一个需要最大化的有效性度量(模型覆盖率,PTR)。此外,考虑到测试执行的时间约束(即时间感知),我们为所有10个问题定义了10个时间预算,以识别解决不确定性感知测试优先级排序的最佳策略。在我们的实证研究中,我们采用了四种众所周知的多目标搜索算法(MuOSAs):NSGA-II、MOCell、SPEA2和CellDE,结合来自两个工业CPS主题系统的五个用例,并使用随机算法(RS)作为比较基准。结果表明,所有MuOSAs均显著优于RS。Prob.6 f(PET,PTR,AUM,ANU)策略(即结合了不确定性度量AUM和ANU的问题)在使用100%时间预算时,在观察不确定性方面取得了总体最佳性能。

英文摘要:

Complex software systems, e.g., Cyber-Physical Systems (CPSs), interact with the real world; thus, they often behave unexpectedly in uncertain environments. Testing such systems is challenging due to limited resources, time, complex testing infrastructure setup, and the inherent uncertainties in their operating environment. Devising uncertainty-aware testing solutions supported with test optimization techniques can be considered as a mandate for tackling this challenge. This paper proposes an uncertainty-aware and time-aware test case prioritization approach, named UncerPrio, for optimizing a sequence of tests to execute with a multi-objective search. To guide the prioritization with uncertainty, we identify four uncertainty measures: uncertainty measurement (AUM), uncertainty space (PUS), the number of uncertainties (ANU), and uncertainty coverage (PUU). Based on these measures and their combinations, we proposed 10 uncertainty-aware and multi-objective test case prioritization problems, and each problem was additionally defined with one cost objective (execution cost, PET) to be minimized and one effective measure (model coverage, PTR) to be maximized. Moreover, considering time constraints for test executions (i.e., time-aware), we defined 10 time budgets for all the 10 problems for identifying the best strategy in solving uncertainty-aware test prioritization. In our empirical study, we employed four well-known Multi-Objective Search Algorithms (MuOSAs): NSGA-II, MOCell, SPEA2, and CellDE with five use cases from two industrial CPS subject systems, and used Random Algorithm (RS) as the comparison baseline. Results show that all the MuOSAs significantly outperformed RS. The strategy of Prob.6 f(PET,PTR,AUM,ANU) (i.e., the problem with uncertainty measures AUM and ANU combined) achieved the overall best performance in observing uncertainty when using 100% time budget.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑