期刊文献+

一种面向传感器网络应用程序的有效测试方法 被引量:2

An Effective Testing Approach for Sensor Network Applications
下载PDF
导出
摘要 无线传感器网络是物联网的基本组成部分.随着传感器网络的广泛应用,其软件质量的问题日益突出.传感器网络应用程序中的瞬态错误很难被发现,这是因为它们由偶然交织的事件处理逻辑所触发,而且有效的自动测试预言往往不可得.基于区间的测试方法将传感网程序的执行过程划分为若干区间,并检测包含瞬态错误的区间,但是这种方法可能产生大量的误报.文中详述了对这些误报进行深入研究的结果,并进而提出一种有效的基于区间的测试方法,用于检测传感网程序应用级组件中的瞬态错误.此方法的主要特点是采用新的区间划分策略和程序行为选择策略.这些策略用于排除被分析区间中的良性偶然交织行为.文中提出了一种区间识别算法,并在此基础上实现了该方法的一个原型工具.文中给出了一组实验来评估原型工具的效果和效率.实验结果表明,此工具能够有效而高效地检测被测程序中的瞬态错误. Wireless Sensor Networks (WSNs) represent a fundamental building block of the Internet of Things. With the growing application of WSNs, the software-quality issues have become increasingly prominent. Transient bugs in WSN applications are difficult to be found because they are triggered by occasionally interleaved event-handling logics and an effective automated test oracle is rarely available. Interval-based testing in this area partitions a sensor's program execution into intervals and finds the buggy intervals, but it might report numerous false positives. In this paper, we report the results of an in-depth study of the causes of false positives that arise from interval-based testing that we performed. Based on these results, we propose an effective approach for detecting transient bugs in application-level components. Our approach featuresan interval-partitioning strategy and a program behavior-selection strategy. Both strategies aim to reduce benign occasional behaviors from those to be analyzed. We propose an interval-identification algorithm. Based on this algorithm, we developed a prototype tool that implements our interval- based testing technique, and conducted a set of experiments to evaluate its effectiveness and efficiency. The empirical studies show that our tool is both effective and efficient in detecting transient bugs for our subject programs.
出处 《计算机学报》 EI CSCD 北大核心 2013年第12期2371-2389,共19页 Chinese Journal of Computers
基金 香港特别行政区研究资助局项目(612210) 国家自然科学基金(61272067) 广东省自然科学基金团队研究项目(S2012030006242)资助~~
关键词 物联网 无线传感器网络 瞬态错误 基于区间的测试 误报 Internet of Things wireless sensor network transient bug interval-based testing false positive
  • 相关文献

参考文献1

二级参考文献20

  • 1谷晓铭,霍玮,桂剑,贾耀仓.一种检测运行栈与静态数据区重叠的新方法[J].计算机工程与应用,2006,42(20):86-88. 被引量:2
  • 2Kennedy K, Allen J R. Optimizing Compilers for Modern Architectures: A Dependence-Based Approach. San Francisco, CA, USA: Morgan Kaufmann Publishers Inc, 2001.
  • 3Weiser M. Program slicing//Proceedings of the 5th International Conference on Software Engineering (ICSE' 81). San Diego, California, USA, 1981:439-449.
  • 4Hotwitz S, Reps T, Binkley D. Interprocedural slicing using dependence graphs//Proceedings of the ACM SIGPLAN 1988 Conference on Programming Language Design and Implementation (PLDI' 88). Atalanta, Georgia, 1988 : 35-46.
  • 5Altekar G, Stoica I. ODR: Output-deterministic replay for multicore debugging//Proceedings of the ACM SIGOPS 22nd Sympgiium ou Operatiug Systems Principles (SOSP' 09 ). Bigsky, Montana, USA, 2009:193-206.
  • 6Bhansali S, Claen W-K, Jong S D et al. Framework for in struetion-level tracing and analysis of program executions// Proceedings of the 2nd International Conference on Virtual Exeeution Environments ( VEE: 06 ). Ottawa, Ontario, Canada, 2006:154-163.
  • 7Patil H, Pereira C, Stalleup Met al. PinPlay: A framework for deterministic replay and reproducible analysis o( parallel programs//Proeeedings of the 8th Annual IEEE/ACM International Symposium on Code Generation and Optimization (CGO'10). Toronto, Ontario, Canada, 2010, 2-11.
  • 8Yu H, Xue J, Huo W et al. Level by level: Making flow-and context-sensitive pointer analysis scalable for millions of lines of code//Proeeedings of the 8th Annual IEEE/ACM International Symposium on Code Generation and Optimization (CGO'10). Toronto, Ontario, Canada, 2010:218-229.
  • 9Girod L, Ramanathan N, Elson Jet al. Emstar: A software environment for developing and deploying heterogeneous sensor-actuator networks. ACM Transactions on Sensor Networks (TOSN), 2007, 3(3).
  • 10Levis P, Lee N, Welsh Met al. TOSSIM: Accurate and scalable simulation of entire TinyOS applications//Proeeedings of the 1st International Conference on Embedded Networked Sensor Systems. Los Angeles, California, 21)03:126-137.

共引文献7

同被引文献4

引证文献2

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部