TGenAI: An LLM-based Approach for Functional End-to-End Test Generation for IoT Systems. Minani, J. B., Trabelsi, I., El Fellah, Y., Sabir, F., Kuradusenge, M., Gu�h�neuc, Y., & Moha, N. Internet of Things Journal (IoTJ), 39:102066, Elsevier, September, 2026. 23 pages.
Paper abstract bibtex Context: The Internet of Things (IoT) includes numerous devices that exchange data across various domains, creating a highly interconnected ecosystem. With such dynamic systems, testing is essential to ensure seamless interaction and verify that they function according to their specifications. Problem: Testing IoT systems is complex and time-consuming due to their dynamic nature. Unlike traditional methods, generating end-to-end (E2E) tests across both device and application layers presents significant challenges. Objective: This paper presents TGenAI, an LLM-based approach to generate tests from use-case specifications (UCS) for E2E testing of IoT systems, with a human-in-the-loop (HITL) to ensure correctness and completeness. Method: TGenAI generates tests from UCS written in the Restricted Use Case Model (RUCM). It starts with an initial prompt, which is optimized using Structure-Aware Multi-objective Metaprompt Optimization (SAMMO) to improve the LLM performance. TGenAI invokes the LLM with the optimized prompt to generate the tests. We use a HITL to evaluate the tests for completeness and correctness and to adjust the generated tests using a mapping table to make them ready for execution. Unlike prior work focusing on models or single devices, we validate E2E flows across devices, gateway, cloud, and application through two deployed IoT case studies (WIMP and EWS-FD). Results: The results show that completeness and correctness vary significantly depending on the selected LLM, ranging from 13% to 100% across both IoT systems. We observed some inconsistencies in the generated tests, but the adjustments required by a HITL are minimal compared to manual generation. The HITL converts LLM outputs into executable tests via a small mapping table and triggers execution on WIMP using our proof-of-concept (PoC) tool. Conclusion: We proposed an approach, TGenAI, for LLM-generated E2E tests that we validated on two deployed IoT systems (WIMP and EWS-FD), demonstrating time and effort savings, while the need for a HITL highlights opportunities for improvement and future research.
@ARTICLE{Minani26-IoTJ-TGenAI,
AUTHOR = {Jean Baptiste Minani and Imen Trabelsi and
El Fellah, Yahia and Fatima Sabir and Martin Kuradusenge and
Yann-Ga�l Gu�h�neuc and Naouel Moha},
JOURNAL = {Internet of Things Journal (IoTJ)},
TITLE = {TGenAI: An LLM-based Approach for Functional End-to-End
Test Generation for IoT Systems},
YEAR = {2026},
MONTH = {September},
NOTE = {23 pages.},
OPTNUMBER = {},
PAGES = {102066},
VOLUME = {39},
EDITOR = {Fatos Xhafa},
KEYWORDS = {Topic: <b>ESE for the IoT</b>,
Rubrique : <b>GL empirique pour l'IdO</b>,
Topic: <b>Test case generation</b>,
Rubrique : <b>g�n�ration de cas de test</b>, Journal: <b>IoTJ</b>},
PUBLISHER = {Elsevier},
URL = {http://www.ptidej.net/publications/documents/IoTJ26c.doc.pdf},
ABSTRACT = {Context: The Internet of Things (IoT) includes numerous
devices that exchange data across various domains, creating a highly
interconnected ecosystem. With such dynamic systems, testing is
essential to ensure seamless interaction and verify that they
function according to their specifications. Problem: Testing IoT
systems is complex and time-consuming due to their dynamic nature.
Unlike traditional methods, generating end-to-end (E2E) tests across
both device and application layers presents significant challenges.
Objective: This paper presents TGenAI, an LLM-based approach to
generate tests from use-case specifications (UCS) for E2E testing of
IoT systems, with a human-in-the-loop (HITL) to ensure correctness
and completeness. Method: TGenAI generates tests from UCS written in
the Restricted Use Case Model (RUCM). It starts with an initial
prompt, which is optimized using Structure-Aware Multi-objective
Metaprompt Optimization (SAMMO) to improve the LLM performance.
TGenAI invokes the LLM with the optimized prompt to generate the
tests. We use a HITL to evaluate the tests for completeness and
correctness and to adjust the generated tests using a mapping table
to make them ready for execution. Unlike prior work focusing on
models or single devices, we validate E2E flows across devices,
gateway, cloud, and application through two deployed IoT case studies
(WIMP and EWS-FD). Results: The results show that completeness and
correctness vary significantly depending on the selected LLM, ranging
from 13% to 100% across both IoT systems. We observed some
inconsistencies in the generated tests, but the adjustments required
by a HITL are minimal compared to manual generation. The HITL
converts LLM outputs into executable tests via a small mapping table
and triggers execution on WIMP using our proof-of-concept (PoC) tool.
Conclusion: We proposed an approach, TGenAI, for LLM-generated E2E
tests that we validated on two deployed IoT systems (WIMP and
EWS-FD), demonstrating time and effort savings, while the need for a
HITL highlights opportunities for improvement and future research.}
}
Downloads: 0
{"_id":"pC9PJFLSpjcjYMCsp","bibbaseid":"minani-trabelsi-elfellah-sabir-kuradusenge-guhneuc-moha-tgenaianllmbasedapproachforfunctionalendtoendtestgenerationforiotsystems-2026","author_short":["Minani, J. B.","Trabelsi, I.","El Fellah, Y.","Sabir, F.","Kuradusenge, M.","Gu�h�neuc, Y.","Moha, N."],"bibdata":{"bibtype":"article","type":"article","author":[{"firstnames":["Jean","Baptiste"],"propositions":[],"lastnames":["Minani"],"suffixes":[]},{"firstnames":["Imen"],"propositions":[],"lastnames":["Trabelsi"],"suffixes":[]},{"propositions":[],"lastnames":["El","Fellah"],"firstnames":["Yahia"],"suffixes":[]},{"firstnames":["Fatima"],"propositions":[],"lastnames":["Sabir"],"suffixes":[]},{"firstnames":["Martin"],"propositions":[],"lastnames":["Kuradusenge"],"suffixes":[]},{"firstnames":["Yann-Ga�l"],"propositions":[],"lastnames":["Gu�h�neuc"],"suffixes":[]},{"firstnames":["Naouel"],"propositions":[],"lastnames":["Moha"],"suffixes":[]}],"journal":"Internet of Things Journal (IoTJ)","title":"TGenAI: An LLM-based Approach for Functional End-to-End Test Generation for IoT Systems","year":"2026","month":"September","note":"23 pages.","optnumber":"","pages":"102066","volume":"39","editor":[{"firstnames":["Fatos"],"propositions":[],"lastnames":["Xhafa"],"suffixes":[]}],"keywords":"Topic: <b>ESE for the IoT</b>, Rubrique : <b>GL empirique pour l'IdO</b>, Topic: <b>Test case generation</b>, Rubrique : <b>g�n�ration de cas de test</b>, Journal: <b>IoTJ</b>","publisher":"Elsevier","url":"http://www.ptidej.net/publications/documents/IoTJ26c.doc.pdf","abstract":"Context: The Internet of Things (IoT) includes numerous devices that exchange data across various domains, creating a highly interconnected ecosystem. With such dynamic systems, testing is essential to ensure seamless interaction and verify that they function according to their specifications. Problem: Testing IoT systems is complex and time-consuming due to their dynamic nature. Unlike traditional methods, generating end-to-end (E2E) tests across both device and application layers presents significant challenges. Objective: This paper presents TGenAI, an LLM-based approach to generate tests from use-case specifications (UCS) for E2E testing of IoT systems, with a human-in-the-loop (HITL) to ensure correctness and completeness. Method: TGenAI generates tests from UCS written in the Restricted Use Case Model (RUCM). It starts with an initial prompt, which is optimized using Structure-Aware Multi-objective Metaprompt Optimization (SAMMO) to improve the LLM performance. TGenAI invokes the LLM with the optimized prompt to generate the tests. We use a HITL to evaluate the tests for completeness and correctness and to adjust the generated tests using a mapping table to make them ready for execution. Unlike prior work focusing on models or single devices, we validate E2E flows across devices, gateway, cloud, and application through two deployed IoT case studies (WIMP and EWS-FD). Results: The results show that completeness and correctness vary significantly depending on the selected LLM, ranging from 13% to 100% across both IoT systems. We observed some inconsistencies in the generated tests, but the adjustments required by a HITL are minimal compared to manual generation. The HITL converts LLM outputs into executable tests via a small mapping table and triggers execution on WIMP using our proof-of-concept (PoC) tool. Conclusion: We proposed an approach, TGenAI, for LLM-generated E2E tests that we validated on two deployed IoT systems (WIMP and EWS-FD), demonstrating time and effort savings, while the need for a HITL highlights opportunities for improvement and future research.","bibtex":"@ARTICLE{Minani26-IoTJ-TGenAI,\r\n AUTHOR = {Jean Baptiste Minani and Imen Trabelsi and \r\n El Fellah, Yahia and Fatima Sabir and Martin Kuradusenge and \r\n Yann-Ga�l Gu�h�neuc and Naouel Moha},\r\n JOURNAL = {Internet of Things Journal (IoTJ)},\r\n TITLE = {TGenAI: An LLM-based Approach for Functional End-to-End \r\n Test Generation for IoT Systems},\r\n YEAR = {2026},\r\n MONTH = {September},\r\n NOTE = {23 pages.},\r\n OPTNUMBER = {},\r\n PAGES = {102066},\r\n VOLUME = {39},\r\n EDITOR = {Fatos Xhafa},\r\n KEYWORDS = {Topic: <b>ESE for the IoT</b>, \r\n Rubrique : <b>GL empirique pour l'IdO</b>, \r\n Topic: <b>Test case generation</b>, \r\n Rubrique : <b>g�n�ration de cas de test</b>, Journal: <b>IoTJ</b>},\r\n PUBLISHER = {Elsevier},\r\n URL = {http://www.ptidej.net/publications/documents/IoTJ26c.doc.pdf},\r\n ABSTRACT = {Context: The Internet of Things (IoT) includes numerous \r\n devices that exchange data across various domains, creating a highly \r\n interconnected ecosystem. With such dynamic systems, testing is \r\n essential to ensure seamless interaction and verify that they \r\n function according to their specifications. Problem: Testing IoT \r\n systems is complex and time-consuming due to their dynamic nature. \r\n Unlike traditional methods, generating end-to-end (E2E) tests across \r\n both device and application layers presents significant challenges. \r\n Objective: This paper presents TGenAI, an LLM-based approach to \r\n generate tests from use-case specifications (UCS) for E2E testing of \r\n IoT systems, with a human-in-the-loop (HITL) to ensure correctness \r\n and completeness. Method: TGenAI generates tests from UCS written in \r\n the Restricted Use Case Model (RUCM). It starts with an initial \r\n prompt, which is optimized using Structure-Aware Multi-objective \r\n Metaprompt Optimization (SAMMO) to improve the LLM performance. \r\n TGenAI invokes the LLM with the optimized prompt to generate the \r\n tests. We use a HITL to evaluate the tests for completeness and \r\n correctness and to adjust the generated tests using a mapping table \r\n to make them ready for execution. Unlike prior work focusing on \r\n models or single devices, we validate E2E flows across devices, \r\n gateway, cloud, and application through two deployed IoT case studies \r\n (WIMP and EWS-FD). Results: The results show that completeness and \r\n correctness vary significantly depending on the selected LLM, ranging \r\n from 13% to 100% across both IoT systems. We observed some \r\n inconsistencies in the generated tests, but the adjustments required \r\n by a HITL are minimal compared to manual generation. The HITL \r\n converts LLM outputs into executable tests via a small mapping table \r\n and triggers execution on WIMP using our proof-of-concept (PoC) tool. \r\n Conclusion: We proposed an approach, TGenAI, for LLM-generated E2E \r\n tests that we validated on two deployed IoT systems (WIMP and \r\n EWS-FD), demonstrating time and effort savings, while the need for a \r\n HITL highlights opportunities for improvement and future research.}\r\n}\r\n\r\n","author_short":["Minani, J. B.","Trabelsi, I.","El Fellah, Y.","Sabir, F.","Kuradusenge, M.","Gu�h�neuc, Y.","Moha, N."],"editor_short":["Xhafa, F."],"key":"Minani26-IoTJ-TGenAI","id":"Minani26-IoTJ-TGenAI","bibbaseid":"minani-trabelsi-elfellah-sabir-kuradusenge-guhneuc-moha-tgenaianllmbasedapproachforfunctionalendtoendtestgenerationforiotsystems-2026","role":"author","urls":{"Paper":"http://www.ptidej.net/publications/documents/IoTJ26c.doc.pdf"},"keyword":["Topic: <b>ESE for the IoT</b>","Rubrique : <b>GL empirique pour l'IdO</b>","Topic: <b>Test case generation</b>","Rubrique : <b>g�n�ration de cas de test</b>","Journal: <b>IoTJ</b>"],"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"article","biburl":"http://www.yann-gael.gueheneuc.net/Work/Publications/Biblio/complete-bibliography.bib","dataSources":["8vn5MSGYWB4fAx9Z4"],"keywords":["topic: <b>ese for the iot</b>","rubrique : <b>gl empirique pour l'ido</b>","topic: <b>test case generation</b>","rubrique : <b>g�n�ration de cas de test</b>","journal: <b>iotj</b>"],"search_terms":["tgenai","llm","based","approach","functional","end","end","test","generation","iot","systems","minani","trabelsi","el fellah","sabir","kuradusenge","gu�h�neuc","moha"],"title":"TGenAI: An LLM-based Approach for Functional End-to-End Test Generation for IoT Systems","year":2026}