Abstract
IoT applications are ubiquitous and many of them are large in scale, involving processing and storage of real-time sensor data and various events. Many such applications are safety-critical in nature demanding rigorous testing to eliminate as many errors as possible. We propose a coverage criteria-based white-box testing framework for large-scale IoT applications. Our criteria are derived from the underlying architecture of these applications. We present two different views of the IoT applications architecture and coverage criteria are defined based on these two views Event coverage, functionality coverage, and end-to-end flow coverage are some of the proposed criteria, we illustrate their use in detecting subtle errors in the underlying IoT applications. Our framework has been prototyped on the AWS IoT free-tier services, one of the most popular IoT application development frameworks.
This work is sponsored by a cluster project on Interdisciplinary Cyber-Physical systems, Department of Science and Technology, Government of India.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
AWS IoT Core Documentation, June 2022. https://docs.aws.amazon.com/iot/index.html
Azure IoT Documentation (2022). https://azure.microsoft.com/en-in/solutions/iot/#overview
Google Cloud IoT Documentation (2022). https://cloud.google.com/iot/docs
Mocha - The fun, simple, flexible JavaScript test framework (2022). https://mochajs.org
Samsung SmartThings Developers Documentation (2022). https://developer-preview.smartthings.com/
Bala, R., Gill, B., Smith, D., Wright, D., Ji, K.: Magic quadrant for cloud infrastructure and platform services, July 2021. https://www.gartner.com/doc/reprints?id=1-271OE4VR &ct=210802 &st=sb
Celik, Z.B., Fernandes, E., Pauley, E., Tan, G., McDaniel, P.: Program analysis of commodity IoT applications for security and privacy: challenges and opportunities. ACM Comput. Surv. 52(4) (2019). https://doi.org/10.1145/3333501
Celik, Z.B., McDaniel, P., Tan, G.: SOTERIA: automated IoT safety and security analysis. In: Proceedings of the 2018 USENIX Conference, pp. 147–158. USENIX ATC ’18, USENIX Association, USA (2018)
Chi, H., Zeng, Q., Du, X., Yu, J.: Cross-app interference threats in smart homes: categorization, detection and handling. In: 50th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), pp. 411–423 (2020). https://doi.org/10.1109/DSN48063.2020.00056
Diwan, M., D’Souza, M.: A framework for modeling and verifying IoT communication protocols. In: Larsen, K.G., Sokolsky, O., Wang, J. (eds.) SETTA 2017. LNCS, vol. 10606, pp. 266–280. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-69483-2_16
Fortas, A., Kerkouche, E., Chaoui, A.: Formal verification of IoT applications using rewriting logic: an MDE-based approach. Sci. Comput. Program. 222(C) (2022). https://doi.org/10.1016/j.scico.2022.102859
Jin, Z., Offutt, J.: Deriving tests from software architectures. In: 12th International Symposium on Software Reliability Engineering (ISSRE), China, pp. 308–313. IEEE Computer Society (2001). https://doi.org/10.1109/ISSRE.2001.989484
Jorgensen, P.C.: Software Testing: A Craftsman’s Approach, 4th edn. Auerbach Publications, Boca Raton (2014)
Madsen, M., Tip, F., Lhoták, O.: Static analysis of event-driven node.js javascript applications 50(10) (2015). https://doi.org/10.1145/2858965.2814272
Obetz, M., Das, A., Castiglia, T., Patterson, S., Milanova, A.: Formalizing event-driven behavior of serverless applications. In: Brogi, A., Zimmermann, W., Kritikos, K. (eds.) ESOCC 2020. LNCS, vol. 12054, pp. 19–29. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-44769-4_2
Winzinger, S., Wirtz, G.: Applicability of coverage criteria for serverless applications. In: 2020 IEEE International Conference on Service Oriented Systems Engineering (SOSE), pp. 49–56 (2020). https://doi.org/10.1109/SOSE49046.2020.00013
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Nagalakshmi, S.R., D’Souza, M. (2024). Coverage Criteria Based Testing of IoT Applications. In: Devismes, S., Mandal, P.S., Saradhi, V.V., Prasad, B., Molla, A.R., Sharma, G. (eds) Distributed Computing and Intelligent Technology. ICDCIT 2024. Lecture Notes in Computer Science, vol 14501. Springer, Cham. https://doi.org/10.1007/978-3-031-50583-6_7
Download citation
DOI: https://doi.org/10.1007/978-3-031-50583-6_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-50582-9
Online ISBN: 978-3-031-50583-6
eBook Packages: Computer ScienceComputer Science (R0)