嵌入式系统领域的间歇性失败测试
Intermittently Failing Tests in the Embedded Systems Domain
摘要:
软件测试有时会受到间歇性测试失败的困扰,并且通常很难找到这种失败测试的根本原因。这个问题已经在开源软件的单元测试级别上得到了广泛的研究,但是在系统测试级别上的研究却少得多,特别是在工业嵌入式系统的测试方面。本文介绍了我们的调查间歇性失败的测试在嵌入式系统领域的根本原因,更好地理解,解释和分类的基本故障的目标。我们的调查对象是一个目前正在运行的工业嵌入式系统,随着系统级测试,进行。我们设计并使用了一个新的度量分类测试用例为间歇性。从超过50万个测试判决中,我们识别出间歇性和持续性的失败测试,并使用多个来源确定其根本原因。我们发现大约1-3%的测试用例是间歇性失败的。通过对案例研究结果和相关工作的分析,我们确定了九个与测试用例顺应性相关的因素。我们发现,对持续失败的测试进行修复,通常比对间歇性测试进行修复,可以删除更多由其他测试检测到的失败。我们还发现,与一致性测试相比,识别间歇性测试的修复通常需要更多的努力。确定了导致间歇性和一致性测试的根本原因之间的重叠。在工业嵌入式系统和开源软件中,许多不稳定的根本原因是相同的。然而,当比较单元测试和系统级测试时,特别是对于嵌入式系统,我们观察到测试环境本身往往是不稳定的原因。
英文摘要:
Software testing is sometimes plagued with intermittently failing tests and finding the root causes of such failing tests is often difficult. This problem has been widely studied at the unit testing level for open source software, but there has been far less investigation at the system test level, particularly the testing of industrial embedded systems. This paper describes our investigation of the root causes of intermittently failing tests in the embedded systems domain, with the goal of better understanding, explaining and categorizing the underlying faults. The subject of our investigation is a currently-running industrial embedded system, along with the system level testing that was performed. We devised and used a novel metric for classifying test cases as intermittent. From more than a half million test verdicts, we identified intermittently and consistently failing tests, and identified their root causes using multiple sources. We found that about 1-3% of all test cases were intermittently failing. From analysis of the case study results and related work, we identified nine factors associated with test case intermittence. We found that a fix for a consistently failing test typically removed a larger number of failures detected by other tests than a fix for an intermittent test. We also found that more effort was usually needed to identify fixes for intermittent tests than for consistent tests. An overlap between root causes leading to intermittent and consistent tests was identified. Many root causes of intermittence are the same in industrial embedded systems and open source software. However, when comparing unit testing to system level testing, especially for embedded systems, we observed that the test environment itself is often the cause of intermittence.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。