DocumentCode
3698436
Title
Property-based testing of sensor networks
Author
Andreas Löscher;Konstantinos Sagonas;Thiemo Voigt
Author_Institution
Department of Information Technology, Uppsala University, Sweden
fYear
2015
fDate
6/1/2015 12:00:00 AM
Firstpage
100
Lastpage
108
Abstract
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.
Keywords
"Testing","Protocols","Software","Generators","Hardware","Libraries","Computer bugs"
Publisher
ieee
Conference_Titel
Sensing, Communication, and Networking (SECON), 2015 12th Annual IEEE International Conference on
Type
conf
DOI
10.1109/SAHCN.2015.7338296
Filename
7338296
Link To Document