• Home
  • Search
  • Automated Control Logic Test Case Generation using Large Language Models
  • Open Access IconOpen Access
  • Cite Icon18
  • https://doi.org/10.1109/etfa61755.2024.10711016Copy DOI Icon

Automated Control Logic Test Case Generation using Large Language Models

  • Sep 10, 2024
  • Heiko Koziolek +3 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Testing PLC and DCS control logic in industrial automation is laborious and challenging since appropriate test cases are often complex and difficult to formulate. Researchers have previously proposed several automated test case generation approaches for PLC software applying symbolic execution and search-based techniques. Often requiring formal specifications and performing a mechanical analysis of programs, these approaches may uncover specific programming errors but some-times suffer from state space explosion and cannot process rather informal specifications. We proposed a novel approach for the automatic generation of PLC test cases that queries a Large Language Model (LLM) to synthesize test cases for code provided in a prompt. Experiments with ten open-source function blocks from the OSCAT automation library showed that the approach is fast, easy to use, and can yield test cases with high statement coverage for low-to-medium complex programs. However, we also found that LLM-generated test cases suffer from erroneous assertions in many cases, which still require manual adaption.

Similar Papers
  • Book Chapter
  • Citations1

Generating Control Flow Graphs from NATURAL

  • Jul 18, 2017
  • Strauss Cunha Carvalho +3
  • Conference Article
  • Citations1

Automated Test Case Generation from Activity Diagram using Depth-First Search

  • Aug 09, 2023
  • Ignasius Teguh Raharjo Rubiyo +2
  • Conference Article
  • Citations2

Cloud-based test modeling and automatic generation of test cases

  • Nov 09, 2020
  • Jing Dai +4
  • Research Article
  • Citations1

Evaluating the Test Adequacy of Benchmarks for LLMs on Code Generation

  • Jun 25, 2025
  • Journal of Software: Evolution and Process
  • Xiangyue Liu +5
  • Conference Article
  • Citations22

Automated generation of test cases from output domain of an embedded system using Genetic algorithms

  • Apr 01, 2011
  • Chandra Prakash Vudatha +4
  • Book Chapter
  • Citations1

Test Case Generation Based on Search-Based Testing

  • Oct 31, 2020
  • Rashmi Rekha Sahoo +2
  • Conference Article
  • Citations27

Constructing Test cases using Natural Language Processing

  • Feb 01, 2017
  • Ahlam Ansari +3
  • Research Article
  • Citations1

Test case generation in practice for communicating embedded systems

  • Jun 01, 2011
  • e & i Elektrotechnik und Informationstechnik
  • C Schwarzl +1
  • Conference Article
  • Citations19

Automatic test case selection and generation for regression testing of composite service based on extensible BPEL flow graph

  • Sep 01, 2010
  • Bixin Li +3
  • Conference Article
  • Citations5

Model-Based Test Case Generation Approach for Mobile Applications Load Testing using OCL Enhanced Activity Diagrams

  • Dec 05, 2021
  • Amira Ali +2
  • Conference Article
  • Citations5

Auto-generation and redundancy reduction of test cases for reactive systems

  • Oct 01, 2010
  • Donghuo Chen +2
  • Research Article
  • Citations1

一种基于扩展有限状态机的自动化测试用例生成方法

  • May 01, 2014
  • SCIENTIA SINICA Informationis
  • Zhiyi Zhang +4
  • Research Article

Machine Learning in QA: A Vision for Predictive and Adaptive Software Testing

  • Jul 16, 2021
  • INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
  • Santosh Kumar Jawalkar
  • Conference Article
  • Citations16

Ontology Based Test Case Generation for Black Box Testing

  • Mar 02, 2019
  • Sami Ul Haq +1
  • Conference Article
  • Citations3

Android Unit Test Case Generation Based on the Strategy of Multi-Dimensional Coverage

  • Nov 07, 2021
  • Jie Cao +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.