講演抄録/キーワード |
講演名 |
2021-03-05 14:05
ネットワークシミュレータを組み込んだモデルベーステスト環境 ○福田昂祐(東大)・田辺良則(鶴見大)・萩谷昌己(東大) KBSE2020-36 |
抄録 |
(和) |
IoTデバイスの応用が広がっている。環境内の振る舞いをテストするモデルベーステストはIoTデバイスに適したテスト手法のひとつである。モデルベーステストではテスト対象システム(SUT)が作用するモデルを拡張有限状態機械として表現し、Modbatのようなテストツールがそのモデルを駆動させて正当性の確認を行う。本研究ではModbatのIoTソフトウェアテスト向けの機能の拡張を行った。
まずModbat内にMQTTブローカーのシミュレータを実装した。これにより仮想時間と協調するMQTTプロトコルを介した通信のシミュレーションを行うことができ、SUTのより高速なテストが可能となった。それに加えて、このシミュレータを用いることでデバイス間の通信の遅延をシミュレートできるようにし、テストの範囲が広まった。そのほか、仮想時間でスケジューリングを行うライブラリを、実時間に基づいたスケジューリングができるように、また再帰的にタスクがタスクをスケジューリングできるように改良した。最後に、SUTからも仮想時間による高速化やネットワークシミュレーションといったModbatの機能を、元々のSUTのコードに対して少し変更するだけで利用できるように新しいライブラリを導入した。これによってModbatと独立に動くスレッドとしてSUTのプログラムを実行してSUTのテストを行うことが可能となる。
これらの改善や新機能を用いて簡単なドローンコントローラのプログラムに対して事例研究を行い、その有効性を確認した。 |
(英) |
The application of IoT devices is expanding. Model-based testing is one of the testing methods which fit well for IoT devices. In model-based testing, the model with which the system under test (SUT) interacts is expressed as an extended finite state machine and a testing tool like Modbat executes the model and checks its correctness. In our research, we extended Modbat's capability for IoT software testing.
First, we implemented a simulator of an MQTT broker in Modbat. This allows the simulation of networking over MQTT protocol to be performed coordinately with the virtual time in Modbat and enables faster testing of SUT. In addition, we made it possible to simulate the delay of the communication between devices using the simulator, which extends the range of testing. Along with those, we also improved a library of virtual-time scheduler so that it can also schedule tasks based on real time and that tasks can schedule tasks recursively. Finally, we introduced new libraries that allow the exploitation of Modbat functionalities also from SUT, like virtual-time speedup and networking simulation, with just a small modification of original SUT code, which consequently enables testing SUT by executing the SUT program as a thread running independently to Modbat.
With these improvements and new features, we conducted a case study on a simple drone controller program and observed their effectiveness. |
キーワード |
(和) |
IoT / モデルベーステスト / MQTT / 仮想時間 / / / / |
(英) |
IoT / model-based testing / MQTT / virtual time / / / / |
文献情報 |
信学技報, vol. 120, no. 423, KBSE2020-36, pp. 13-18, 2021年3月. |
資料番号 |
KBSE2020-36 |
発行日 |
2021-02-26 (KBSE) |
ISSN |
Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
KBSE2020-36 |