首页> 外文会议>High-Assurance Systems Engineering, 2005. HASE 2005. Ninth IEEE International Symposium on >A novel framework for non-deterministic testing of message-passing programs
【24h】

A novel framework for non-deterministic testing of message-passing programs

机译:用于消息传递程序的非确定性测试的新颖框架

获取原文

摘要

Message-passing programs are difficult to test because of their non-deterministic behavior. One approach, called non-deterministic testing, involves executing a message-passing program with the same input many times in hope that faults would be exposed by one of these executions. Non-deterministic testing has been widely used in practice, but unfortunately, in an ad-hoc manner. In this paper, we present a novel framework for non-deterministic testing of message-passing programs. The framework uses a coverage criterion to guide the testing process. During each test run, the sequence of send and receive events that are executed is recorded in an execution trace. After each test run, the trace is analyzed to identify race conditions, which are used to derive coverage elements that have not been covered yet. Then, random delays are inserted at a chosen set of program locations in order to increase the chance of covering the uncovered elements in the next test run. This framework provides a heuristic condition that can be used to decide when to stop testing. The condition is easy to compute and its satisfaction signals that the coverage criterion has likely been satisfied. This framework can be automated at the source code level and allows one to obtain a measure of test coverage at the end of the testing process. We describe a prototype tool and report some empirical results that demonstrate the effectiveness of our framework.
机译:由于消息传递程序具有不确定性,因此很难对其进行测试。一种方法称为非确定性测试,涉及多次使用相同的输入执行消息传递程序,以希望这些执行之一会暴露出错误。非确定性测试已在实践中被广泛使用,但不幸的是,是以临时方式进行的。在本文中,我们提出了一种用于消息传递程序的非确定性测试的新颖框架。该框架使用覆盖率准则来指导测试过程。在每次测试运行期间,将执行的发送和接收事件的顺序记录在执行跟踪中。每次测试运行后,将分析轨迹以识别竞争条件,这些条件用于导出尚未涵盖的覆盖元素。然后,在选定的一组程序位置处插入随机延迟,以增加在下一次测试运行中覆盖未发现元素的机会。该框架提供了一种启发式条件,可用于决定何时停止测试。该条件易于计算,其满意度表明覆盖标准可能已得到满足。该框架可以在源代码级别实现自动化,并允许在测试过程结束时获得一定程度的测试覆盖率。我们描述了一个原型工具,并报告了一些经验结果,这些结果证明了我们框架的有效性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号