A Test Case Generation Approach for ChaoJi Charging Systems Based on FRETish Specification

W. J. Yan, Yan Zhang, Le Yu, Zhuangling Yang, Hai Hu, Bing Bing Zhou, Xiaoyu Zhou2025

Abstract

The ChaoJi charging standard is a standard that constrains the business processes of charging piles for different enterprises. Currently, compliance testing relies on manual design by experts, primarily targeting individual charging steps. Existing methods that describe standard requirements as formal languages such as linear sequential logic to automatically construct tests place excessive demands on mathematical foundations, making practical application difficult. This paper proposes using FRETish, a temporal specification language with a restricted natural language style, to describe the ChaoJi charging standard. An innovative method is designed to first convert the FRETish specification into a Simulink/Stateflow requirement state diagram, and then automatically generate test cases based on the state diagram. To address the challenge of existing Simulink/Stateflow-based test generation methods for constructing high-coverage tests from nested and concurrent state diagrams, a semantic preserved state diagram execution path unfolding method is proposed. Case study on ChaoJi charging confirms the effectiveness of the proposed testing framework, and experimental analysis also shows that the improved state diagram unfolding algorithm can effectively increase test coverage, particularly in covering the interaction processes among different functional modules.
BibTeX
@misc{yan2025test,
  author = {W. J. YAN and Yan Zhang and Le Yu and Zhuangling Yang and Hai Hu and Bing Bing Zhou and Xiaoyu Zhou},
  title = {{A Test Case Generation Approach for ChaoJi Charging Systems Based on FRETish Specification}},
  year = {2025},
  doi = {10.1109/cei66465.2025.11398487},
}

Loading related content...

Figure