https://www.mdu.se/

mdu.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
An Empirical Investigation of Requirements Engineering and Testing Utilizing EARS Notation in PLC Programs
Mälardalen University, School of Innovation, Design and Engineering, Embedded Systems. (Software Testing Laboratory, Formal Modelling and Analysis of Embedded Systems)
Mälardalen University, School of Innovation, Design and Engineering, Embedded Systems.ORCID iD: 0000-0003-2416-4205
Mälardalen University, School of Innovation, Design and Engineering, Embedded Systems.ORCID iD: 0000-0003-0611-2655
Mälardalen University, School of Innovation, Design and Engineering, Embedded Systems.ORCID iD: 0000-0003-2870-2680
2023 (English)In: Springer Nature Journal’s Special issue on Topical Issue on Advances in Combinatorial and Model-based Testing 2023Article in journal (Refereed) Submitted
Abstract [en]

Regulatory standards for engineering safety-critical systems often demand both traceable requirements and specification-based testing, during development. Requirements are often written in natural language, yet for specification purposes, this may be supplemented by formal or semi-formal descriptions, to increase clarity. However, the choice of notation of the latter is often constrained by the training, skills, and preferences of the designers.

The Easy Approach to Requirements Syntax (EARS) addresses the inherent imprecision of natural language requirements with respect to potential ambiguity and lack of accuracy. This paper investigates requirements specification using EARS, and specification-based testing of embedded software written in the IEC 61131-3 language, a programming standard used for developing Programmable Logic Controllers (PLC). Further, we study, by means of an experiment, how human participants translate natural language requirements into EARS and how they use the latter to test PLC software. We report our observations during the experiments, including the type of EARS patterns participants use to structure natural language requirements and challenges during the specification phase, as well as present the results of testing based on EARS-formalized requirements in real-world industrial settings.

Place, publisher, year, edition, pages
Springer Nature, 2023.
Keywords [en]
EARS, Requirement Engineering, PLC, Testing
National Category
Computer Systems
Research subject
Computer Science
Identifiers
URN: urn:nbn:se:mdh:diva-66350DOI: 10.1109/ICSTW58534.2023.00016Scopus ID: 2-s2.0-85163061454OAI: oai:DiVA.org:mdh-66350DiVA, id: diva2:1848300
Conference
Springer Nature Journal’s Special issue on Topical Issue on Advances inCombinatorial and Model-based Testing 2023
Projects
VeriDevOps, SmartDeltaAvailable from: 2024-04-02 Created: 2024-04-02 Last updated: 2025-01-09Bibliographically approved
In thesis
1. Enabling Test Automation for Industrial PLC Programs
Open this publication in new window or tab >>Enabling Test Automation for Industrial PLC Programs
2024 (English)Licentiate thesis, comprehensive summary (Other academic)
Abstract [en]

Testing safety-critical systems, particularly those controlled by Programmable Logic Controllers (PLC), is crucial for ensuring the safe and reliable operation of industrial processes. This thesis addresses the critical need for automated testing of safety-critical PLC systems used in various industrial settings. Despite the significance of testing, current practices rely heavily on manual methods, leading to challenges in scalability and reliability. This work investigates enabling test automation for PLCs to facilitate and assist the current manual testing procedures in the industry. The thesis proposes and evaluates test automation techniques and tools tailored to PLCs, focusing on Function Block Diagram and Structured Text languages commonly used in industry. We systematically compare test automation tools for PLC programs, after which we propose a PLC to Python translation framework called PyLC to facilitate automated test generation. The experiment employing the EARS requirement engineering pattern reveals that while engineers use semi-formal notations in varied ways to create requirements, leading to completeness issues, it confirms the viability of employing EARS requirements for PLC system testing. Subsequently, the proposed automation approaches are fully implemented and evaluated using real-world PLC case studies, comparing their efficiency against manual testing procedures. The findings highlight the feasibility and benefits of automating PLC testing, offering insights into improving development and testing processes through carefully selected automation tools for the CODESYS IDE, a well-known PLC development environment. Additionally, we show that leveraging Python-based automated testing techniques and mutation analysis enhances testing effectiveness. Furthermore, incorporating best practices in requirement engineering, as demonstrated by the EARS approach, contributes to further enhancing testing efficiency and effectiveness in PLC development.

Place, publisher, year, edition, pages
Mälardalens universitet, 2024. p. 249
Series
Mälardalen University Press Licentiate Theses, ISSN 1651-9256 ; 358
Keywords
PLC, PLC Testing, Automated Testing, PyLC, EARS Syntax, FBD, ST
National Category
Computer Systems
Research subject
Computer Science
Identifiers
urn:nbn:se:mdh:diva-66351 (URN)978-91-7485-643-9 (ISBN)
Presentation
2024-04-07, Gamma, Mälardalens universitet, Västerås, 09:15 (English)
Opponent
Supervisors
Projects
VeriDevOps, SmartDelta
Available from: 2024-04-03 Created: 2024-04-02 Last updated: 2024-04-16Bibliographically approved

Open Access in DiVA

No full text in DiVA

Other links

Publisher's full textScopus

Authority records

Salari, Mikael EbrahimiEnoiu, Eduard PaulAfzal, WasifSeceleanu, Cristina

Search in DiVA

By author/editor
Salari, Mikael EbrahimiEnoiu, Eduard PaulAfzal, WasifSeceleanu, Cristina
By organisation
Embedded Systems
Computer Systems

Search outside of DiVA

GoogleGoogle Scholar

doi
urn-nbn

Altmetric score

doi
urn-nbn
Total: 84 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf