Model-Based Testing for MQTT Applications

Author:

Tanabe Kotaro,Tanabe Yoshinori,Hagiya Masami

Abstract

Abstract Model-based testing is a widely-used vital technique for testing software running in a complex environment. In this paper, we propose extensions to existing model-based tools to apply this technique to software that employs the MQ Telemetry Transport (MQTT) protocol for transmitting messages, commonly used in the Internet of Things (IoT) environment. First, in the finite state machine used for generating test cases in a model-based testing framework, we introduce a type of transition that is triggered when receiving MQTT messages. Second, we extend the finite-state machine so that it produces test cases that reflect the characteristics of IoT software – a large number of relatively simple devices communicate with servers. Third, the concept of time is introduced into the finite state machine. Naturally, this is necessary for verifying the properties of software that runs for a long time. Moreover, to facilitate such verification, both real-time and virtual time are introduced. We implemented these extensions into a model-based testing tool, Modbat, and conducted a small experiment to confirm the feasibility, gaining positive results.

Publisher

Springer International Publishing

Reference25 articles.

1. Artho, C., Gros, Q., Rousset, G., Banzai, K., Ma, L., Kitamura, T., Hagiya, M., Tanabe, Y., Yamamoto, M.: Model-based API testing of Apache ZooKeeper. In: International Conference on Software Testing, Verification and Validation (ICST 2017), pp. 288–298 (2017)

2. Rahul, G., Andrew, B.: MQTT version 3.1.1. http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html

3. Artho, C., Biere, A., Hagiya, M., Platon, E., Seidl, M., Tanabe, Y., Yamamoto, M.: Modbat: a model-based API tester for event-driven systems. In: Hardware and Software: Verification and Testing, pp. 112–128 (2013)

4. Tanabe, K., Tanabe, Y., Hagiya, M.: Speedup of model-based testing for IoT software using virtual time and state distribution of devices. IEICE Tech. Rep. 119(392), 37–42 (2020)

5. Artho, C., Biere, A.: Modbat. https://people.kth.se/~artho/modbat/

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Modular Air Quality Calibration and Forecasting Method for Low-Cost Sensor Nodes;IEEE Sensors Journal;2023-02-15

2. Overview of Test Coverage Criteria for Test Case Generation from Finite State Machines Modelled as Directed Graphs;2022 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW);2022-04

3. IoT-enabled edge computing model for smart irrigation system;Journal of Intelligent Systems;2022-01-01

4. Formal Specification and Verification of MQTT Protocol in PlusCal-2;Wireless Personal Communications;2021-02-26

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3