Evidence Hub

A method for IoT devices test case generation using language models

Kumar S, Napte K, Rani R, Pippal SK

MethodsX, 2025

Abstract

The rapid growth of IoT and electronic systems has led to complex real-time data processing and management solutions. However, these systems present significant software and hardware testing challenges, often requiring manual, time-consuming testing efforts. To address this, an automated end-to-end testing framework is essential for improving efficiency and reliability in IoT system development. With advancements in Natural Language Processing (NLP) and language models, automated test case generation systems can now create structured test cases in programming languages while ensuring code integrity and style. Applying these techniques to IoT projects streamlines testing, enhances accuracy, and reduces workload. This paper introduces TCG-IoT (Test Case Generation for IoT Systems), an automated testing framework designed to generate comprehensive test cases and actionable event lists based on technical and data specifications. Unlike existing frameworks that depend on model-based testing or simulation environments, TCG-IoT uniquely integrates a Retrieval-Augmented Generation (RAG) mechanism, a vector knowledge base of IoT standards, and code generation via Code-Llama to directly produce structured, executable C-code scripts for software and manual steps for hardware components. The results demonstrate that TCG-IoT delivers high-quality, context-aware test cases and scripts with maximum system coverage, ensuring secure, efficient, and scalable IoT development.•Automates test…

Read the paper

Related studies

Go deeper in Evidence Hub

Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.

Open this study Sign up free