Property-Based Testing of Sensor Networks

被引:0
|
作者
Loscher, Andreas [1 ]
Sagonas, Konstantinos [1 ]
Voigt, Thiemo [1 ]
机构
[1] Uppsala Univ, Dept Informat Technol, Uppsala, Sweden
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We advocate the use of property-based testing in the area of sensor networks and present a framework to apply this testing methodology. Our framework provides an expressive high-level language to specify a wide range of properties, starting from properties of individual functions to network-global properties, and infrastructure to automatically test these properties in COOJA, the network simulator of the CONTIKI operating system. We demonstrate the ease of use and effectiveness of our framework by two case studies. In the first, we test whether the energy consumption of the radio duty-cycle protocol X-MAC is within some specific bound. Property-based testing finds minimal network configurations where a small number of nodes violate the property. Property-based testing also reveals that the same property is not violated when ContikiMAC is used instead, but finds cases where ContikiMAC has higher energy consumption than X-MAC. In the second case study, we test the C API of CONTIKI's TCP socket library and find bugs in its event system that would be very hard to detect with other methods.
引用
收藏
页码:100 / 108
页数:9
相关论文
共 50 条
  • [41] Failing Faster: Overlapping Patterns for Property-Based Testing
    Fowler, Jonathan
    Hutton, Graham
    PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES (PADL 2017), 2017, 10137 : 103 - 119
  • [42] Property-Based Testing of Browser Rendering Engines with a Consensus Oracle
    Martin, Joel
    Levine, David
    2018 IEEE 42ND ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC 2018), VOL 2, 2018, : 424 - 429
  • [43] Feasibility of Property-Based Testing for Time-Dependent Systems
    Lopez, Macias
    Castro, Laura M.
    Cabrero, David
    COMPUTER AIDED SYSTEMS THEORY, PT II, 2013, 8112 : 527 - 535
  • [44] Towards Integrating Statistical Model Checking into Property-Based Testing
    Aichernig, Bernhard K.
    Schumi, Richard
    2016 ACM/IEEE INTERNATIONAL CONFERENCE ON FORMAL METHODS AND MODELS FOR SYSTEM DESIGN (MEMOCODE), 2016, : 71 - 76
  • [45] ETNA: An Evaluation Platform for Property-Based Testing (Experience Report)
    Shi, Jessica
    Keles, Alperen
    Goldstein, Harrison
    Pierce, Benjamin C.
    Lampropoulos, Leonidas
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (ICFP):
  • [46] A PropEr Integration of Types and Function Specifications with Property-Based Testing
    Papadakis, Manolis
    Sagonas, Konstantinos
    ERLANG 11: PROCEEDINGS OF THE 2011 ACM SIGPLAN ERLANG WORKSHOP, 2011, : 39 - 50
  • [47] Delta Debugging for Property-Based Regression Testing of Quantum Programs
    Pontolillo, Gabriel
    Mousavi, Mohammad Reza
    PROCEEDINGS OF THE 2024 IEEE/ACM 5TH INTERNATIONAL WORKSHOP ON QUANTUM SOFTWARE ENGINEERING, Q-SE 2024, 2024, : 1 - 8
  • [48] Validating Formal Semantics by Property-Based Cross-Testing
    Bereczky, Peter
    Horpacsi, Daniel
    Koszegi, Judit
    Szeier, Soma
    Thompson, Simon
    PROCEEDINGS OF THE 32ND SYMPOSIUM ON IMPLEMENTATION AND APPLICATION OF FUNCTIONAL LANGUAGES, IFL 2020, 2020, : 150 - 161
  • [49] A Property-based Testing Framework for Multi-Agent Systems
    Benac Earle, Clara
    Fredlund, Lars-Ake
    AAMAS '19: PROCEEDINGS OF THE 18TH INTERNATIONAL CONFERENCE ON AUTONOMOUS AGENTS AND MULTIAGENT SYSTEMS, 2019, : 1823 - 1825
  • [50] Automatic property-based testing and path validation of XQuery programs
    Almendros-Jimenez, Jesus M.
    Becerra-Teron, Antonio
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2017, 27 (1-2): : 1 - 2