An embedded software pipeline testing apparatus and method
Patent Information
- Application Number
- CN202511997109.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-27
- Publication Date
- 2026-10-30
AI Technical Summary
相比而言,嵌入式软件流水线测试具备相似的核心目标及特征,但也存在目标终端环境高度差异化、不同产品的测试及部署方式难统一的问题
本发明利用三级分布式代理设备、可信网关接口服务,将涉密办公网络与远程工业控制系统安全并有效地连通,一体化实现嵌入式软件流水线测试的全流程定制、自动化执行及结果监控,极大提升在环测试的自动化水平,降低了流水线运维成本。
Smart Images

Figure CN123011683A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of embedded software technology, and in particular relates to an embedded software pipeline testing device and method. Background Technology
[0002] Pipeline testing aims to automate the entire process. By integrating capabilities such as task orchestration, test execution, environment configuration, and result analysis, it significantly improves testing efficiency and quality, adapting to the needs of modern software engineering such as agile iterative development, rapid continuous delivery, and DevOps.
[0003] Pipeline testing technology has been widely adopted in the internet and finance sectors. While embedded software pipeline testing shares similar core objectives and characteristics, it also faces challenges such as highly diverse target terminal environments and difficulties in standardizing testing and deployment methods for different products. Furthermore, some industries or enterprises, for security and confidentiality reasons, have established physical isolation and policy protection for office networks used for deploying information systems and conducting software R&D, prohibiting direct access to target terminals and industrial control equipment. This creates a disconnect between the development environment and the deployment / testing environment, making it difficult to achieve fully automated pipeline testing. Summary of the Invention
[0004] The purpose of this invention is to provide an embedded software pipeline testing device that includes a three-level distributed agent device and a secure and reliable transmission gateway device, as well as an embedded software pipeline testing method using the device. This method securely and effectively connects a confidential office network with a remote industrial control system, and integrates the entire process of embedded software pipeline testing, including customization, automated execution, and result monitoring. This greatly improves the automation level of target terminal testing and reduces pipeline maintenance costs.
[0005] In a first aspect, this application provides an embedded software pipeline testing apparatus, comprising: The first platform is used to orchestrate and initiate the execution of pipeline test tasks and display the test results; furthermore, it is used to store preset files and output files associated with test tasks. The first agent device is used to assemble and send the first dataset, as well as to relay the transmission of the second dataset. The gateway device is used to perform compliance checks on the first dataset and the second dataset, export the first dataset that passes the check, and import the second dataset that passes the check. The second proxy device is used to complete the routing processing of the first dataset and the assembly and transmission of the second dataset; The third agent device is used to obtain test task requests and preset file data, start the target terminal to execute the test task, and generate response status and output files; The target terminal is used to execute test tasks.
[0006] Preferably, the first dataset is the data required for cross-network test task execution, and includes at least basic test task information, control request, and associated preset files. The basic test task information includes at least task identifier, origin, target terminal type, and preset file list. The control request includes at least test task start execution request. The preset files include at least software target code, test script, and test environment configuration.
[0007] Preferably, the second dataset is data generated by executing test tasks across networks, and includes at least basic information about the test task, response status, and associated output files. The response status includes at least target terminal information, task execution status, and a list of output files, and the output files include at least test results and execution logs.
[0008] Preferably, the first agent device includes: The first dataset assembly and sending module is used to obtain basic information of the test task, control requests, and associated preset files from the first platform, package and serialize them, and send them to the gateway device. The second dataset transmission relay module is used to obtain the second dataset from the gateway device and send it to the first platform.
[0009] Preferably, the gateway device includes: The compliance check module is used to check whether the file format, data content and flow meet the requirements according to the built-in security and confidentiality protection strategy, and to check whether the data integrity and sequence legality meet the requirements according to the data protocol. The office network temporary storage module is used to temporarily store the first dataset to be exported and the second dataset imported from the device network in the office network environment. The device network temporary storage module is used to temporarily store the second dataset to be imported and the first dataset exported from the office network in the device network environment. The secure and reliable transmission module is used to realize data transmission and exchange between the office network and the device network.
[0010] Preferably, the second agent device includes: The first dataset routing processing module is used to extract the basic information, control requests, and associated preset file data corresponding to a certain test task from the first dataset and send them to the third agent device within the specified scope in the device network. The second dataset assembly and sending module is used to obtain the response status and output files from the third agent device, package and serialize them, and send them to the gateway device.
[0011] Preferably, the third agent device includes: The task receiving module is used to obtain basic information, control requests, and associated preset file data corresponding to a certain test task from the second agent device. The test environment control module is used to initialize the test environment based on the test environment configuration. The target terminal control module is used to start the target terminal and deploy the software target code; The test execution module is used to load test scripts and automatically execute tests; The results generation module is used to obtain the status and process data of the target terminal executing the test task, and combine the test task request and preset file data to generate the test task response status and output file.
[0012] Secondly, this application also provides an embedded software pipeline testing method, applied to the apparatus described above, the method comprising the following steps: Step 1: The first platform orchestrates pipeline test tasks and generates basic test task information; Step 2: The first platform starts executing the pipeline test task and generates control requests; Step 3: The first agent device completes the assembly and transmission of the first dataset; Step 4: The gateway device performs a compliance check on the first dataset and exports the first dataset that passes the check; Step 5: The second agent device completes the routing processing of the first dataset; Step 6: The third agent device sequentially completes task reception, test environment control, target terminal control, test execution, and result generation; Step 7: The second agent device completes the assembly and transmission of the second dataset; Step 8: The gateway device performs a compliance check on the second dataset and imports the second dataset that passes the check. Step 9: The first agent device completes the relay transmission of the second dataset; Step 10: The first platform displays the test results.
[0013] The beneficial technical effects of this application are as follows: This invention utilizes a three-tier distributed agent device and a trusted gateway interface service to securely and effectively connect a confidential office network with a remote industrial control system. It integrates the entire process of embedded software pipeline testing, enabling customized, automated execution, and result monitoring, which greatly improves the automation level of in-loop testing and reduces pipeline maintenance costs. Attached Figure Description
[0014] Figure 1 This is a structural diagram of the embedded software pipeline testing device provided by the present invention; Figure 2This is a flowchart of the embedded software pipeline testing method provided by the present invention. Detailed Implementation
[0015] This invention provides an embedded software pipeline testing device and method. The method includes: a first platform orchestrating and initiating pipeline testing tasks and displaying test results; a first agent device assembling and sending a first dataset and relaying a second dataset; a gateway device performing compliance checks and importing / exporting of the first and second datasets; a second agent device completing routing processing for the first dataset and assembling and sending the second dataset; and a third agent device acquiring test task requests and preset file data, initiating the target terminal to execute the test task, and generating response status and output files. This invention utilizes a three-tiered distributed agent device and a trusted gateway interface service to securely and effectively connect a confidential office network with a remote industrial control system, achieving integrated full-process customization, automated execution, and result monitoring of embedded software pipeline testing. This significantly improves the automation level of in-loop testing and reduces pipeline maintenance costs.
[0016] This application provides an embedded software pipeline testing device, comprising: The first platform is used to orchestrate and initiate the execution of pipeline test tasks and display the test results; furthermore, it is used to store preset files and output files associated with test tasks. The first agent device is used to assemble and send the first dataset, as well as to relay the transmission of the second dataset. The gateway device is used to perform compliance checks on the first dataset and the second dataset, export the first dataset that passes the check, and import the second dataset that passes the check. The second proxy device is used to complete the routing processing of the first dataset and the assembly and transmission of the second dataset; The third agent device is used to obtain test task requests and preset file data, start the target terminal to execute the test task, and generate response status and output files; The target terminal is used to execute test tasks.
[0017] The first dataset contains the data required for cross-network test task execution. It includes at least basic test task information, control requests, and associated preset files. The basic test task information includes at least the task identifier, origin, target terminal type, and preset file list. The control request includes at least the test task start execution request. The preset files include at least the software object code, test script, and test environment configuration.
[0018] The second dataset consists of data generated from cross-network test task execution. It includes at least basic test task information, response status, and associated artifact files. The response status includes at least target terminal information, task execution status, and a list of artifact files. The artifact files include at least test results and execution logs.
[0019] The first agent equipment includes: The first dataset assembly and sending module is used to obtain basic information of the test task, control requests, and associated preset files from the first platform, package and serialize them, and send them to the gateway device. The second dataset transmission relay module is used to obtain the second dataset from the gateway device and send it to the first platform.
[0020] Gateway devices, including: The compliance check module is used to check whether the file format, data content and flow meet the requirements according to the built-in security and confidentiality protection strategy, and to check whether the data integrity and sequence legality meet the requirements according to the data protocol. The office network temporary storage module is used to temporarily store the first dataset to be exported and the second dataset imported from the device network in the office network environment. The device network temporary storage module is used to temporarily store the second dataset to be imported and the first dataset exported from the office network in the device network environment. The secure and reliable transmission module is used to realize data transmission and exchange between the office network and the device network.
[0021] The unit is exported as a secure and trusted transmission module, which obtains the first dataset from the office network temporary storage module and copies it to the device network temporary storage module. It is then imported as a secure and trusted transmission module, which obtains the second dataset from the device network temporary storage module and copies it to the office network temporary storage module.
[0022] The second agent device includes: The first dataset routing processing module is used to extract the basic information, control requests, and associated preset file data corresponding to a certain test task from the first dataset and send them to the third agent device within the specified scope in the device network. The second dataset assembly and sending module is used to obtain the response status and output files from the third agent device, package and serialize them, and send them to the gateway device.
[0023] Third-party equipment includes: The task receiving module is used to obtain basic information, control requests, and associated preset file data corresponding to a certain test task from the second agent device. The test environment control module is used to initialize the test environment based on the test environment configuration. The target terminal control module is used to start the target terminal and deploy the software target code; The test execution module is used to load test scripts and automatically execute tests; The results generation module is used to obtain the status and process data of the target terminal executing the test task, and combine the test task request and preset file data to generate the test task response status and output file.
[0024] The first proxy device also includes a first inspection module, used to check and confirm the data integrity and sequence validity of the imported second dataset according to the built-in format requirements. The second proxy device also includes a second inspection module, used to check and confirm the data integrity and sequence validity of the exported first dataset according to the built-in format requirements. The third proxy device also includes a third inspection module, used to check and confirm the data integrity and sequence validity of the basic information, control requests, and associated preset file data corresponding to a certain test task according to the built-in format requirements.
[0025] The first platform can also be used to suspend pipeline testing tasks.
[0026] The first dataset control request is a request to abort the test task, and the associated preset files are all files that ensure the test task is aborted and the target terminal is restored.
[0027] The first platform and the first agent device are deployed on the office network, the second agent device, the third agent device, and the target terminal are deployed on the device network, and the gateway device is deployed across networks to achieve secure and reliable transmission control between the office network and the device network.
[0028] The first and second agent devices can exchange data with the gateway device, and the third agent device can exchange data with the second agent device and the target terminal.
[0029] In other embodiments of this application, an embedded software pipeline testing method is provided and applied to the aforementioned apparatus, comprising the following steps: Step 1: The first platform orchestrates pipeline test tasks and generates basic test task information; Step 2: The first platform starts executing the pipeline test task and generates control requests; Step 3: The first agent device completes the assembly and transmission of the first dataset; Step 4: The gateway device performs a compliance check on the first dataset and exports the first dataset that passes the check; Step 5: The second agent device completes the routing processing of the first dataset; Step 6: The third agent device sequentially completes task reception, test environment control, target terminal control, test execution, and result generation; Step 7: The second agent device completes the assembly and transmission of the second dataset; Step 8: The gateway device performs a compliance check on the second dataset and imports the second dataset that passes the check. Step 9: The first agent device completes the relay transmission of the second dataset; Step 10: The first platform displays the test results.
[0030] This invention provides an embedded software pipeline testing device that includes a three-level distributed agent device and a secure and reliable transmission gateway device, as well as an embedded software pipeline testing method using the device. It securely and effectively connects a confidential office network with a remote industrial control system, and integrates the entire process of embedded software pipeline testing, including customization, automated execution, and result monitoring. This greatly improves the automation level of target terminal testing and reduces pipeline operation and maintenance costs.
[0031] This invention discloses an embedded software pipeline testing device, which includes: a first platform, a first agent device, a gateway device, a second agent device, a third agent device, and a target terminal.
[0032] An embedded software pipeline testing apparatus includes: (1) The first platform is used to orchestrate and start the execution of pipeline test tasks and display test results; further, it is used to store preset files and product files associated with test tasks; (2) The first agent device is used to complete the assembly and transmission of the first dataset and the relay of the second dataset; (3) Gateway device, used to perform compliance checks on the first dataset and the second dataset, export the first dataset that passes the check, and import the second dataset that passes the check; (4) A second proxy device, used to complete the routing processing of the first dataset and the assembly and transmission of the second dataset; (5) The third agent device is used to obtain test task requests and preset file data, start the target terminal to execute test tasks, and generate response status and product files; (6) Target terminal, used to execute test tasks.
[0033] The first dataset is the data required for cross-network test task execution, and includes at least basic test task information, control requests, and associated preset files. The basic test task information includes at least task identifier, origin, target terminal type, and preset file list. The control request includes at least test task start execution request. The preset files include at least software object code, test script, and test environment configuration.
[0034] The second dataset is data generated by executing test tasks across networks. It includes at least basic information about the test task, response status, and associated output files. The response status includes at least target terminal information, task execution status, and a list of output files. The output files include at least test results and execution logs.
[0035] The first agent equipment includes: The first dataset assembly and sending module is used to obtain basic information of the test task, control requests, and associated preset files from the first platform, package and serialize them, and send them to the gateway device. The second dataset transmission relay module is used to obtain the second dataset from the gateway device and send it to the first platform.
[0036] Gateway devices, including: The compliance check module is used to check whether the file format, data content and flow meet the requirements according to the built-in security and confidentiality protection strategy, and to check whether the data integrity and sequence legality meet the requirements according to the data protocol. The office network temporary storage module is used to temporarily store the first dataset to be exported and the second dataset imported from the device network in the office network environment. The device network temporary storage module is used to temporarily store the second dataset to be imported and the first dataset exported from the office network in the device network environment. The secure and reliable transmission module is used to realize data transmission and exchange between the office network and the device network.
[0037] The export to secure and reliable transmission module obtains the first dataset from the office network temporary storage module and copies it to the device network temporary storage module. The import to secure and reliable transmission module obtains the second dataset from the device network temporary storage module and copies it to the office network temporary storage module.
[0038] The second agent device includes: The first dataset routing processing module is used to extract the basic information, control requests, and associated preset file data corresponding to a certain test task from the first dataset and send them to the third agent device within the specified scope in the device network. The second dataset assembly and sending module is used to obtain the response status and output files from the third agent device, package and serialize them, and send them to the gateway device.
[0039] Third-party equipment includes: The task receiving module is used to obtain basic information, control requests, and associated preset file data corresponding to a certain test task from the second agent device. The test environment control module is used to initialize the test environment based on the test environment configuration. The target terminal control module is used to start the target terminal and deploy the software target code; The test execution module is used to load test scripts and automatically execute tests; The results generation module is used to obtain the status and process data of the target terminal executing the test task, and combine the test task request and preset file data to generate the test task response status and output file.
[0040] Optionally, the first proxy device further includes a first checking module, used to check and confirm the data integrity and sequence validity of the imported second dataset according to the built-in format requirements; the second proxy device further includes a second checking module, used to check and confirm the data integrity and sequence validity of the exported first dataset according to the built-in format requirements; the third proxy device further includes a third checking module, used to check and confirm the data integrity and sequence validity of the basic information, control requests, and associated preset file data corresponding to a certain test task according to the built-in format requirements.
[0041] Optionally, the first platform can also be used to suspend pipeline testing tasks.
[0042] Optionally, the first dataset contains a control request that is a test task execution stop request, and the associated preset files are all files that ensure the test task execution is stopped and the target terminal is restored.
[0043] The first platform and the first agent device are deployed on the office network, the second agent device, the third agent device, and the target terminal are deployed on the device network, and the gateway device is deployed across networks to achieve secure and reliable transmission control between the office network and the device network.
[0044] The first and second agent devices can exchange data with the gateway device, and the third agent device can exchange data with the second agent device and the target terminal.
[0045] This invention provides an embedded software pipeline testing method, comprising the following steps: Step 1: The first platform orchestrates pipeline test tasks and generates basic test task information; Step 2: The first platform starts executing the pipeline test task and generates control requests; Step 3: The first agent device completes the assembly and transmission of the first dataset; Step 4: The gateway device performs a compliance check on the first dataset and exports the first dataset that passes the check; Step 5: The second agent device completes the routing processing of the first dataset; Step 6: The third agent device sequentially completes task reception, test environment control, target terminal control, test execution, and result generation; Step 7: The second agent device completes the assembly and transmission of the second dataset; Step 8: The gateway device performs a compliance check on the second dataset and imports the second dataset that passes the check. Step 9: The first agent device completes the relay transmission of the second dataset; Step 10: The first platform displays the test results.
[0046] The above detailed embodiments are a description of the present invention. It should not be considered that the specific embodiments of the present invention are limited to these descriptions. For those skilled in the art, several simple deductions and substitutions can be made without departing from the concept of the present invention, and all of these should be considered to fall within the protection scope of the present invention.
Claims
1. An embedded software pipeline testing device, characterized in that, include: The first platform is used to orchestrate and launch pipeline test tasks and display test results; Furthermore, it is used to store preset files and artifact files associated with test tasks; The first agent device is used to assemble and send the first dataset, as well as to relay the transmission of the second dataset. The gateway device is used to perform compliance checks on the first dataset and the second dataset, export the first dataset that passes the check, and import the second dataset that passes the check. The second proxy device is used to complete the routing processing of the first dataset and the assembly and transmission of the second dataset; The third agent device is used to obtain test task requests and preset file data, start the target terminal to execute the test task, and generate response status and output files; The target terminal is used to execute test tasks.
2. The apparatus according to claim 1, characterized in that, The first dataset contains the data required for cross-network test task execution. It includes at least basic test task information, control requests, and associated preset files. The basic test task information includes at least the task identifier, origin, target terminal type, and preset file list. The control request includes at least the test task start execution request. The preset files include at least the software object code, test script, and test environment configuration.
3. The apparatus according to claim 2, characterized in that, The second dataset consists of data generated from cross-network test task execution. It includes at least basic test task information, response status, and associated artifact files. The response status includes at least target terminal information, task execution status, and a list of artifact files. The artifact files include at least test results and execution logs.
4. The apparatus according to claim 3, characterized in that, The first agent equipment includes: The first dataset assembly and sending module is used to obtain basic information of the test task, control requests, and associated preset files from the first platform, package and serialize them, and send them to the gateway device. The second dataset transmission relay module is used to obtain the second dataset from the gateway device and send it to the first platform.
5. The apparatus according to claim 4, characterized in that, Gateway devices include: The compliance check module is used to check whether the file format, data content and flow meet the requirements according to the built-in security and confidentiality protection strategy, and to check whether the data integrity and sequence legality meet the requirements according to the data protocol. The office network temporary storage module is used to temporarily store the first dataset to be exported and the second dataset imported from the device network in the office network environment. The device network temporary storage module is used to temporarily store the second dataset to be imported and the first dataset exported from the office network in the device network environment. The secure and reliable transmission module is used to realize data transmission and exchange between the office network and the device network.
6. The apparatus according to claim 5, characterized in that, The second agent equipment includes: The first dataset routing processing module is used to extract the basic information, control requests, and associated preset file data corresponding to a certain test task from the first dataset and send them to the third agent device within the specified scope in the device network. The second dataset assembly and sending module is used to obtain the response status and output files from the third agent device, package and serialize them, and send them to the gateway device.
7. The apparatus according to claim 6, characterized in that, Third-party equipment includes: The task receiving module is used to obtain basic information, control requests, and associated preset file data corresponding to a certain test task from the second agent device. The test environment control module is used to initialize the test environment based on the test environment configuration. The target terminal control module is used to start the target terminal and deploy the software target code; The test execution module is used to load test scripts and automatically execute tests; The results generation module is used to obtain the status and process data of the target terminal executing the test task, and combine the test task request and preset file data to generate the test task response status and output file.
8. An embedded software pipeline testing method, characterized in that, Applied to the apparatus of any one of claims 1-7, the method comprises the following steps: Step 1: The first platform orchestrates pipeline test tasks and generates basic test task information; Step 2: The first platform starts executing the pipeline test task and generates control requests; Step 3: The first agent device completes the assembly and transmission of the first dataset; Step 4: The gateway device performs a compliance check on the first dataset and exports the first dataset that passes the check; Step 5: The second agent device completes the routing processing of the first dataset; Step 6: The third agent device sequentially completes task reception, test environment control, target terminal control, test execution, and result generation; Step 7: The second agent device completes the assembly and transmission of the second dataset; Step 8: The gateway device performs a compliance check on the second dataset and imports the second dataset that passes the check. Step 9: The first agent device completes the relay transmission of the second dataset; Step 10: The first platform displays the test results.
