Automatic construction method for FADEC software simulation test environment

By automatically building a FADEC software simulation test environment, the problems of low manual intervention efficiency and differences in test environment are solved, efficient testing environment construction and use case universality are achieved, and the overall efficiency of software verification is improved.

CN120216376APending Publication Date: 2025-06-27CHINA AERONAUTICAL CONTROL SYST RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510319036.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

The existing FADEC software simulation test environment construction has problems such as inefficient manual intervention and differences in test environments, resulting in low construction efficiency and uncommon automation use cases.

Method used

Using an automated construction method, we download software code through a controlled library, automatically update and compile full digital simulation, call coverage instrumentation batch files for automatic instrumentation, and broadcast environment baseline and use case information between cloud test nodes through DDS services, realizing automated use case distribution and coverage data merging.

Benefits of technology

Improves the construction efficiency of the FADEC software testing environment, ensures consistency between desktop and cloud node testing environments, and enables automated use cases to be common in both environments, thereby improving the overall efficiency of software verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120216376A_ABST
    Figure CN120216376A_ABST
Patent Text Reader

Abstract

The invention discloses an FADEC software simulation test environment automatic construction method, which comprises the following steps of (1) automatically and fully updating software codes in digital simulation according to instrumentation rule information in a test environment baseline, and generating full digital simulation of current version software after the codes are automatically compiled; (2) calling a coverage rate instrumentation batch file to carry out coverage rate automatic instrumentation on the full-digital simulation, uploading the full-digital simulation and other configuration files after instrumentation to a configuration management library, and filling in related information to generate a test environment baseline; (3) the computer starting the cloud test service is called as a cloud test node, and each node broadcasts own information through the DDS service; (4) after a plurality of automatic test cases are selected at a local node, the selected cases can be automatically distributed to each node for execution through the system according to the running state of each node; (5) each cloud test node starts to execute after receiving the use case information, broadcasts the execution information to a local node, and uploads coverage rate data collected by each cloud test node to a file transfer station; (6) after all the use cases are executed, downloading coverage rate data in the file transfer station to the local in the local node and merging the coverage rate data; according to the method, the automatic use case can be universally used in two test environments, so that the overall efficiency of software verification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of aero-engine control software, and particularly to an automated construction method for a FADEC software simulation test environment. Background Art

[0002] During the development of aero-engine control software (FADEC), the simulation test environment is an important means to verify the software functions and performance. By executing test cases in the simulation test environment and collecting the code structure coverage rate, the efficiency of FADEC software verification can be effectively improved. However, there are the following two major problems in the construction of the current simulation test environment: Manual intervention problem: The construction process of the test environment requires manual intervention, including the generation of full digital simulation, coverage instrumentation, and the control of the test environment baseline, etc. This manual operation method is inefficient and error-prone. Test environment difference problem: The simulation test environment usually includes a desktop test environment and a cloud node test environment. There are differences between these two test environments, resulting in the inability of automated test cases to be universal in the two test environments, thus affecting the overall efficiency of software verification. Summary of the Invention

[0003] Object of the Invention: The object of the present invention is to provide an automated construction method for a FADEC software simulation test environment, solve the problems existing in the prior art, and propose a system and method capable of automatically constructing the desktop test environment and cloud node test environment of FADEC software and conducting control.

[0004] Technical Solution: The automated construction method for a FADEC software simulation test environment described in the present invention includes the following steps: (1) After the tester selects the software version, the software code of this version in the controlled library will be downloaded to the local, and the software code in the full digital simulation will be automatically and fully updated according to the instrumentation rule information in the test environment baseline. After the code is automatically compiled, a full digital simulation of the current version software is generated; (2) Call the coverage instrumentation batch file to perform automatic coverage instrumentation on the full digital simulation, upload the instrumented full digital simulation and other configuration files to the configuration management library, and generate a test environment baseline after filling in the relevant information; (3) The computer that enables the cloud test service is called a cloud test node. Each node broadcasts its own information through the DDS service. Any one of the nodes can obtain the environment baseline information and the information of other nodes. After selecting a cloud test node and the environment baseline on any one node and broadcasting through the DDS service, other cloud test nodes receive the broadcast and parse the information, and then download the environment baseline from the configuration management library and deploy it to this node; (4) After selecting multiple automated test cases on the local node, the system can automatically distribute the selected test cases to each node for execution according to the running status of each node; (5) After each cloud test node receives the test case information, it starts to execute and broadcasts the execution information to the local nodes. At the same time, the coverage rate data collected by each cloud test node will be uploaded to the file transfer station; (6) After all test cases are executed, the coverage rate data in the file transfer station is downloaded to the local and merged in the local node.

[0005] Further, in step (1), after downloading the software code from the controlled library, the software code in the full digital simulation is automatically updated according to the instrumentation rule information in the test environment baseline, including: Download the software code; Update the software code in the full digital simulation; Automatically compile to generate the full digital simulation of the current version of the software.

[0006] Further, in step (2), after calling the coverage instrumentation batch file to perform automatic coverage instrumentation on the full digital simulation, the instrumented full digital simulation and other configuration files are uploaded to the configuration management library, including: Call the coverage instrumentation batch file for instrumentation; Upload the instrumented full digital simulation and other configuration files to the configuration management library.

[0007] Further, in step (3), each cloud test node broadcasts its own information through the DDS service and downloads the environment baseline from the configuration management library to this node.

[0008] Further, in step (4), according to the running status of each cloud test node, the automated test cases are automatically distributed to each cloud test node for execution.

[0009] An automated construction system for a FADEC software simulation test environment according to the present invention includes: a controlled library for storing software code; a full digital simulation module for generating a full digital simulation; an instrumentation module for automatically performing coverage instrumentation on the full digital simulation; a configuration management library for storing a test environment baseline; cloud test nodes for executing automated test cases and collecting coverage rate data; a file transfer station for storing the coverage rate data uploaded by each cloud test node; and a data merging module for merging the coverage rate data in the file transfer station.

[0010] Further, the full digital simulation module includes: a code download unit for downloading software code from the controlled library; a code update unit for updating the downloaded software code to the full digital simulation of the basic version; and an automatic compilation unit for automatically compiling the updated full digital simulation code to generate the full digital simulation of the current version of the software.

[0011] Further, the instrumentation module includes: an instrumentation batch processing unit for automatically instrumenting the coverage of the full digital simulation by calling the coverage instrumentation batch processing file; a file upload unit for uploading the instrumented full digital simulation and other configuration files to the configuration management library.

[0012] Further, the cloud test node broadcasts its own information through the DDS service and downloads the environment baseline from the configuration management library to this node.

[0013] Further, it further includes a test case distribution module for automatically distributing the automated test cases to each cloud test node for execution according to the running status of each cloud test node.

[0014] Beneficial effects: Compared with the prior art, the present invention has the following remarkable advantages: improving the construction efficiency: through automated processing, the manual intervention is reduced, and the construction efficiency of the FADEC software test environment is significantly improved. Ensuring environmental consistency: ensuring the consistency of the desktop test environment and the cloud node test environment, enabling the automated test cases to be common in the two test environments, thereby improving the overall efficiency of software verification. Description of the Drawings

[0015] Figure 1 is a flowchart of the present invention. Detailed Embodiments

[0016] The technical solution of the present invention will be further described below with reference to the drawings.

[0017] As Figure 1 shown, an embodiment of the present invention provides an automated construction method for a FADEC software simulation test environment, including the following steps: Step 1: After the tester selects the software version, the software code of this version in the controlled library will be downloaded to the local, and the software code in the full digital simulation will be automatically updated according to the instrumentation rule information in the test environment baseline. After the code is automatically compiled, the full digital simulation of the current version software is generated.

[0018] Step 2: Call the coverage instrumentation batch processing file to automatically instrument the coverage of the full digital simulation, upload the instrumented full digital simulation and other configuration files to the configuration management library, and generate a test environment baseline after filling in the relevant information.

[0019] Step 3: The computer that starts the cloud test service is called a cloud test node. Each node broadcasts its own information through the DDS service. Any one of the nodes can obtain the environment baseline information and other node information. After selecting a cloud test node on any one of the nodes and selecting the environment baseline, and broadcasting through the DDS service, other cloud test nodes receive the broadcast and parse the information, and then download the environment baseline from the configuration management library to this node.

[0020] Step 4: After selecting multiple automated test cases on the local node, the selected cases can be automatically distributed to each node for execution according to the running status of each node through the system.

[0021] Step 5: After receiving the case information, each cloud testing node starts to execute and broadcasts the execution information to the local node. At the same time, the coverage rate data collected by each cloud testing node will be uploaded to the file transfer station.

[0022] Step 6: After all cases are executed, the coverage rate data in the file transfer station is downloaded to the local node and merged.

Claims

1. A method for automatically constructing a FADEC software simulation test environment, characterized in that: The following steps are involved: (1) After the tester selects the software version, the software code of that version in the controlled library will be downloaded to the local computer, and the software code in the digital simulation will be automatically updated according to the plug-in rule information in the test environment baseline. The code will be automatically compiled to generate a full digital simulation of the current version of the software; (2) Call the coverage instrumentation batch file to automatically instrument the coverage of the all-digital simulation, upload the instrumented all-digital simulation and other configuration files to the configuration management library, fill in the relevant information and generate a test environment baseline; (3) The computer that starts the cloud test service is called a cloud test node. Each node broadcasts its own information through the DDS service. Any node can obtain environmental baseline information and other node information. After any node selects a cloud test node and selects an environmental baseline, it broadcasts it through the DDS service. After other cloud test nodes receive the broadcast and parse the information, they download the environmental baseline from the configuration management library and deploy it to this node; (4) After selecting multiple automated test cases on the local node, the system can automatically distribute the selected test cases to each node for execution according to the running status of each node; (5) After receiving the use case information, each cloud test node starts to execute and broadcasts the execution information to the local node. At the same time, the coverage data collected by each cloud test node will be uploaded to the file transfer station; (6) When all use cases are executed, the coverage data in the file transfer station is downloaded to the local node and merged locally.

2. According to claim 1, a FADEC software simulation test environment automatic construction method is characterized in that: In step (1), after downloading the software code from the controlled library, the software code in the full digital simulation is automatically updated according to the plug-in rule information in the test environment baseline, including: Download software code; Update software code in full digital simulation; Automatically compile and generate a fully digital simulation of the current version of the software.

3. The method for automatically constructing a FADEC software simulation test environment according to claim 1, characterized in that: In step (2), after calling the coverage instrumentation batch file to automatically instrument the full digital simulation for coverage, the instrumented full digital simulation and other configuration files are uploaded to the configuration management library, including: Call the coverage instrumentation batch file for instrumentation; Upload the instrumented full digital simulation and other configuration files to the configuration management library.

4. The method for automatically constructing a FADEC software simulation test environment according to claim 1, characterized in that: In step (3), each cloud test node broadcasts its own information through the DDS service and downloads the environment baseline from the configuration management library and deploys it to the node.

5. The method for automatically constructing a FADEC software simulation test environment according to claim 1, characterized in that: In step (4), the automated test cases are automatically distributed to each cloud test node for execution according to the running status of each cloud test node.

6. A FADEC software simulation test environment automatic construction system, characterized in that: include: A controlled library for storing software code; Full digital simulation module, used to generate full digital simulation; The plug-in module is used to automatically plug the coverage of the full digital simulation; Configuration management library, used to store test environment baselines; Cloud test nodes are used to execute automated tests and collect coverage data; file transfer stations are used to store coverage data uploaded by each cloud test node; The data merging module is used to merge the coverage data in the file transfer station.

7. The FADEC software simulation test environment automatic construction system according to claim 6, characterized in that: The full digital simulation module includes: a code download unit, which is used to download software code from a controlled library; a code update unit, which is used to update the downloaded software code to the full digital simulation of the basic version; and an automatic compilation unit, which is used to automatically compile the updated full digital simulation code to generate a full digital simulation of the current version of the software.

8. The FADEC software simulation test environment automatic construction system according to claim 6, characterized in that: The plug-in module includes: a plug-in batch processing unit, which is used to call the coverage plug-in batch processing file to automatically plug the coverage of the full digital simulation; a file upload unit, which is used to upload the plugged full digital simulation and other configuration files to the configuration management library.

9. The FADEC software simulation test environment automatic construction system according to claim 6, characterized in that: The cloud test node broadcasts its own information through the DDS service and downloads the environment baseline from the configuration management library and deploys it to the node.

10. The FADEC software simulation test environment automatic construction system according to claim 6, characterized in that: It also includes a use case distribution module, which is used to automatically distribute automated test cases to each cloud test node for execution according to the running status of each cloud test node.