An extensible automated testing system, method, and medium based on modular test types

By using the tree-like framework and dynamic loading mechanism of the modular testing system, the difficulties in expanding and collaboratively developing existing automated testing systems are solved, enabling efficient expansion of testing functions and flexible management of testing processes, thereby improving the system's scalability and collaborative development efficiency.

CN123137758APending Publication Date: 2026-11-20SUZHOU AOTU MEASUREMENT & CONTROL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611449331.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing automated testing systems face difficulties in functional expansion, collaborative team development, test process adjustment, and parallel testing capabilities, and lack secure and efficient parallel task scheduling mechanisms and clear variable management mechanisms.

Method used

It adopts a tree-like multi-level modular main framework, standardized test type interface specifications and runtime dynamic loading mechanism, combined with a test sequence editing and execution engine and a hierarchical variable scope system, to achieve zero-code hot-swappable expansion of test functions, module decoupling and cross-level sharing of test data.

Benefits of technology

It significantly shortened the development cycle of test functions, improved the efficiency of team collaborative development and the flexibility of the test process, reduced the complexity and error risk of parallel testing, and achieved efficient test data management and reliable log support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137758A_ABST
    Figure CN123137758A_ABST
Patent Text Reader

Abstract

The application relates to an extensible automatic test system, method and medium based on a modular test type, and relates to the technical field of automatic testing; the extensible automatic test system comprises a tree-shaped multistage modular main framework, a four-stage tree-shaped structure of a main framework, a workstation, a node and a test parallel sequence; a test type module library contains a plurality of independently packaged core sub-VI programs, each core sub-VI corresponds to a test type; a test sequence editing and executing engine is used for dynamically calling a corresponding test type core VI according to a test type field; a layered variable scope module maintains independent variable containers for the main framework, each workstation and each node, and realizes cross-layer variable reading and writing in an index format; through a standardized test type interface and a runtime dynamic loading mechanism, the test function is extended in a zero-code hot plug-in mode, and a new test type can be recognized and called without modifying core code, recompiling or restarting the program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automated testing technology, and in particular to a scalable automated testing system, method and medium based on modular testing. Background Technology

[0002] Currently, in the field of automated testing systems, common testing solutions mainly fall into the following categories: (1) Integrated program architecture scheme: All functional modules such as instrument control, test process, data processing and interface display are integrated into the same program project. All test function modules are loaded at once when the system starts. The interfaces between modules are tightly coupled. The test process and test execution are solidified in the same program layer. Adjustments to the test process require direct modification of the program code. (2) Modular dynamic link library scheme: The control programs of different instruments are encapsulated into independent dynamic link library (DLL) files. When adding a test function, a new DLL file needs to be compiled and generated and the call path and interface parameters are registered in the system configuration file. Each DLL module exchanges data with the main program through the adaptation layer. (3) Scripted testing scheme: The test process is written in a scripting language. The test execution engine parses the script and calls the underlying instrument driver library to complete the test. The test script supports basic sequential, branching and looping logic. (4) Multi-threaded parallel testing scheme: Each workstation is assigned an independent test thread, and the parallel execution of tasks is achieved through the thread scheduling mechanism of the operating system. Threads exchange data through shared memory or message queues.

[0003] The aforementioned existing technical solutions have the following drawbacks: 1. Difficulty in expanding testing functions; adding new functions requires modifying the core code: When adding new testing instruments or testing functions, developers must add new code modules, modify the calling logic, and recompile the entire project, resulting in a long development cycle and the potential introduction of new program defects. 2. High coupling between system modules and low team collaboration efficiency: All functional modules are in the same program project, and the code of modules responsible for different engineers is intertwined. Code modifications are very likely to affect each other, resulting in frequent code conflicts and integration difficulties when multiple people develop in parallel. 3. The test process is tightly coupled with test execution, and non-programmers cannot configure the test process: the test order, test items and judgment logic are bound to the program code. Adjusting the test process requires modifying the program code and redeploying, which results in a long adjustment cycle and high communication costs. 4. Limited parallel testing capabilities and lack of a safe and efficient parallel task scheduling mechanism: Data sharing and synchronization control between threads need to be implemented by the developers themselves, which can easily introduce concurrency problems such as deadlock and data race, and there is a lack of unified management of the life cycle of parallel tasks; 5. Disorganized variable management and difficulties in data transfer across levels: Multi-level testing systems lack a clear hierarchical variable scope management mechanism and usually use global variables to achieve data sharing, which leads to frequent data pollution and naming conflicts. Summary of the Invention

[0004] To address the shortcomings of existing technologies, the purpose of this application is to provide a scalable automated testing system, method, and medium based on modular test types. It achieves zero-code hot-swappable expansion of test functions through standardized test type interface specifications and runtime dynamic loading mechanisms. It supports multi-user parallel collaborative development and cross-level secure sharing of test data through a hierarchical decoupling architecture and a hierarchical variable scope system. It achieves complete separation of test process editing and test execution through a test sequence editing and execution engine.

[0005] This was achieved using the following technical solutions: Firstly, this application provides a scalable automated testing system based on modular testing, comprising: A tree-like multi-level modular main framework is used to construct a four-level tree structure of main framework, workstations, nodes, and test parallel sequences; The test type module library is used to encapsulate N core sub-VI programs, each corresponding to a test type; The test sequence editing and execution engine is used to edit and execute test sequences containing major and minor test items, and dynamically call the corresponding test type core VI based on the test type name of the minor test item; The hierarchical variable scope is used to maintain independent variable containers for the main framework, workstations, and nodes, and to read and write variables across levels according to a preset index format. The event-driven trigger is used to trigger mapped test tasks based on PLC / IO signals and obtain data execution results.

[0006] By adopting the above technical solutions, based on a tree-like multi-level modular main program framework and a standardized test type module library, combined with a test sequence editing and execution engine and a hierarchical variable scope system, zero-code hot-swappable expansion of test functions, complete decoupling between functional modules, separation of test process editing and test execution, and secure cross-level sharing of test data are achieved. This significantly shortens the development cycle of test functions, improves team collaborative development efficiency, and enhances the flexibility of the test process.

[0007] Furthermore, the test types in the test type module library include: The physical storage path specification encapsulates each test type as an independent core sub-VI program and stores it according to the preset path format; The hierarchical structure of function options includes first-level function options, general standard function option constants / variables, and second-level / third-level function options; The general standard function option constants / variables are used to control the source mode of the configuration parameters for each test type; if it is a constant, the configuration parameter is the set value of each input control on the interface; if it is a variable, the configuration parameter is the variable data selected from the variable container for the variable input field of the test item. The output format of the configuration parameters is a sequential concatenation of the primary function options, constant / variable options, and the parameter values ​​of each control.

[0008] By adopting the above technical solution, a standardized foundation is laid for the system to dynamically discover and load test types by unifying the physical storage path of test types, the hierarchical structure of functional options, and the output format of configuration parameters. New test types only need to store the core VI file that conforms to the interface specification in the agreed path to be automatically recognized by the system without modifying any system configuration files or core code.

[0009] Furthermore, the test sequence execution process of the test sequence editing execution engine includes: Read the string from the test type field of the current test item and extract the configuration parameters; Construct the complete file path of the core VI according to the physical storage path specification; Dynamically open and call the corresponding core VIs based on LabVIEW's VI Server technology; The core VI dynamically executes the string of configuration parameters for the test items, generating data execution results containing test data and status flags.

[0010] By adopting the above technical solution, the core VI of the test type is dynamically loaded at runtime instead of being loaded all at the start of the program. Test types that are not called by the current test sequence will not be loaded into memory, effectively reducing system memory usage. Modifications or defect fixes of a certain test type only require replacing the corresponding core VI file, without restarting the entire test program.

[0011] Furthermore, the test type can be configured as a replicable execution mode, and each calling instance has an independent running context, with no interference between instances, for parallel control of multiple identical devices.

[0012] By adopting the above technical solution, the resource contention and data crosstalk problems in parallel control of multiple devices are effectively solved through the replicable execution mode.

[0013] Furthermore, the main frame, workstation, and nodes all contain independent variable containers, and each variable container contains 7 categorized storage areas. All variables are stored uniformly in the container using variant data types. The 7 categorized storage areas are: String storage area, String Array storage area, Numerical Value storage area, Numerical Value Array storage area, Boole storage area, Boole Array storage area, and Variant storage area.

[0014] By adopting the above technical solution, and through the hierarchical design of independent variable containers and 7 categorized storage areas, the isolation of data at each level is guaranteed, while the sharing of necessary data across levels is realized.

[0015] Furthermore, the tree-like multi-level modular main framework includes a control module, an interface display module, initialization and exit modules at each level, test modules at each level, and parallel sequence modules at each level. The control module and interface display module realize the trigger mapping from PLC / IO signals to test tasks, including three event processing modules: start event array, completion event array, and intermediate function trigger events, and adopt an event routing mechanism with precise string matching.

[0016] By adopting the above technical solution and using a standardized parallel sequence lifecycle management interface, the management of parallel tasks is encapsulated into a standardized test type. Test engineers can call and control parallel sequences with simple configuration parameters, which greatly reduces the development complexity and error risk of parallel tests.

[0017] Furthermore, when the test type name is parallel program call, the asynchronous parallel task scheduling mechanism is triggered. This includes three standardized instructions: parallel call start, parallel call stop, and status query for each parallel call. These instructions enable the start, stop, and status query of the parallel sequence. Combined with anti-reentrancy protection and call stack tracing mechanisms, parallel tasks are scheduled safely.

[0018] By adopting the above technical solution, a reliable mapping and collaborative execution of external physical signals to internal test tasks is achieved through an event-driven mechanism. Furthermore, the precise string matching strategy ensures high determinism in event triggering, fast matching speed, and intuitive event name configuration.

[0019] Furthermore, the test categories support three types: For loop, While loop, and IF statement, as well as nested relationships between them; the test subcategories include test name, loop number, execution method, test type, action type, display, forced execution, number of retests, jump configuration, judgment, configuration parameters, and variable input fields.

[0020] By adopting the above technical solution, supporting three major test items and their free nesting combinations, and combining test item-level loop control, retesting mechanism and action type classification, the logic orchestration capability covering the vast majority of test scenarios is achieved.

[0021] Secondly, this application also provides a scalable automated testing method based on modular testing, which adopts the following technical solution; A scalable automated testing method based on modular testing types includes: Construct a four-level tree structure consisting of the main framework, workstations, nodes, and test / parallel sequences, and perform initialization at each level; Parse the test sequence and dynamically call the corresponding core VI of the test type according to the test type field of the test item to execute the test and obtain test data and status flags; It can read and write test sequences across different levels of variables, and store test data and status flags.

[0022] By adopting the above technical solutions, and by constructing a tree-like multi-level framework, dynamically calling the core VI of the test type through parsing the test sequence, and performing cross-level variable reading and writing, the automated execution of the test process and closed-loop data management are achieved.

[0023] Thirdly, this application also provides a storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement the scalable automated testing method based on modular testing type as described above.

[0024] In summary, the beneficial technical effects of this application are as follows: 1. Zero-code hot-swappable extension of testing functions: Adding new testing functions only requires placing the core VI file that conforms to the interface specification in the agreed path, and the system will automatically recognize and call it. There is no need to modify the core system code, recompile, or restart the program. The development cycle of function extension is shortened from several days to several hours. 2. The highly decoupled modular architecture supports multi-person parallel collaborative development: The four-level tree architecture and independently encapsulated test type module system realize the complete decoupling between various functional modules. Different levels and different test types can be developed independently by different engineers, which fundamentally solves the problems of code conflicts and integration difficulties in team collaborative development. 3. Complete separation of test process editing and test execution: Test processes are stored and edited independently in CSV file format. Test engineers do not need to have programming skills to complete the configuration, adjustment and optimization of test processes, and the adjustment cycle of test processes is shortened from several days to several minutes. 4. Secure and efficient parallel task scheduling mechanism: Through three standardized instructions for “parallel call start / stop / status query”, combined with anti-reentrancy protection and call stack tracing mechanism, secure scheduling and coordination control of parallel tasks are achieved, which greatly reduces the development complexity and error risk of parallel testing; 5. Clear hierarchical variable scope management and cross-level sharing mechanism: Independent variable containers are maintained for MAIN, each Station and each Acupoint, which not only ensures the isolation of data at each level, but also enables necessary data to be shared across levels, avoiding data chaos; 6. Highly flexible test process orchestration capability: Supports three major test items—For loop, While loop, and IF statement—and their free nesting combinations, combined with loop control, retesting mechanism, and action type classification at the test item level, covering the vast majority of test scenarios; 7. Reliable logging and debugging support: Provides a multi-level, multi-dimensional, and multi-mode logging system to provide strong data support for the verification of the testing process and the localization of system problems. Attached Figure Description

[0025] Figure 1 This is a schematic diagram of the program framework structure of the scalable automated testing system in this application; Figure 2 This is a diagram illustrating the calling relationships of the test type modules in this application; Figure 3 This is a schematic diagram of the structure of the test sequence in this application; Figure 4 This is a schematic diagram of the hierarchical relationship of variable scope in this application; Figure 5 This is a schematic diagram of the system operation process in this application; Figure 6 This is a schematic diagram of the project framework configuration interface in this application; Figure 7 This is a schematic diagram of the project parameter configuration interface in this application; Figure 8 This is a schematic diagram of the main display interface (single workstation) of the project in this application; Figure 9 This is a schematic diagram of the main display interface (multi-workstation) of the project in this application. Detailed Implementation

[0026] The present application will be further described in detail below with reference to the accompanying drawings.

[0027] Reference Figure 1 This application discloses a scalable automated testing system based on modular testing, comprising: The tree-like multi-level modular main program framework is constructed with "MAIN Frame" as the root node, forming a four-level tree structure consisting of the main frame (MAINFrame), workstation (Station), node (Acupoint), and test / parallel sequence. It includes control module, interface display module, initialization and exit modules at each level, test modules at each level, and parallel sequence modules at each level. The test type module library contains multiple independently encapsulated core sub-VI programs. Each core sub-VI corresponds to a test type, follows a unified interface specification and storage path format, and supports hot-swappable dynamic loading. The test sequence editing and execution engine provides test sequence editing and execution functions based on CSV files, and dynamically calls the corresponding test type core VI according to the test type field of the test item; At the hierarchical variable scope end, independent variable containers are maintained for each MAIN Frame, each Station, and each Acupoint, supporting cross-level variable read and write according to the index format of "Station name; Acupoint name; category storage area; variable name"; The event-driven triggering end is used to realize the triggering mapping from PLC / IO signals to test tasks through the control module and interface display module. It includes three event processing modules: start event array, completion event array, and intermediate function trigger event.

[0028] In this embodiment, the tree-like multi-level modular main program framework constructs a four-level tree structure with "MAIN Frame" as the root node: The first level is MAIN Frame, with a fixed name "MAIN Frame", and a quantity of 1, containing a Control module, Interface Display, MAIN Initialize, MAIN Exit, MAIN TEST, and an unlimited number of MAIN parallel sequences; the second level is Station (Station 1, Station 2...Station N), generated according to the configuration, with each Station containing Station Initialize, Station Exit, STATION TEST, an unlimited number of STATION parallel sequences, and N Acupoints; the third level is Acupoint (Acupoint 1, Acupoint 2...Acupoint N), generated according to the configuration under each Station, with each Acupoint containing Acupoint Initialize, Acupoint Exit, TEST, and an unlimited number of parallel sequences; the fourth level is TEST / parallel sequences, with a fixed 1 TEST per Acupoint and an unlimited number of parallel sequences, serving as the execution carrier for the test sequences. The number of modules at each level can be flexibly set through the configuration file according to actual testing needs. When set to 0, the corresponding module branch is not created, thus achieving lightweight and customizable architecture.

[0029] Reference Figure 2 Preferably, the standardized test type interface specification and hot-swappable extension mechanism specifically include: (1) Physical storage path specification for test types: Each test type is encapsulated as an independent LabVIEW sub-VI program, and the storage path format is uniformly "[project root path]\Test Instrument Sub VI\[test type name]\CALL\[test type name].vi", where [test type name] is the unique identifier string of the test type; for example, the storage path of the core VI of the test type of IT6700H power supply is "D:\...\Test Instrument Sub VI\IT6700H\CALL\IT6700H.vi"; (2) Hierarchical structure of function options for test types: Level 1 function options define the different function categories that can be executed for this test type; the general standard function option "constant / variable" is used to control the source mode of configuration parameters. When "constant" is selected, the configuration parameters are directly derived from the set values ​​of each input control on the interface. When "variable" is selected, the configuration parameters are derived from the variable data selected from the variable container in the "variable input" field of the test item; Level 2 / Level 3 function options are used to implement more granular function configuration. (3) Configuration parameter output format: When the core VI of each test type is executed, the first-level function options, constant / variable selections and the parameter values ​​of each control are concatenated into a structured configuration parameter string for output. The format is uniformly "[first-level function options];[constant / variable];[parameter1];[parameter2];...", with different parameters separated by semicolons ";".

[0030] In this embodiment, the output example of the "Module Initialization" function of the IT6700H test type is "Module Initialization;0;IT6700H;0;COM2;9600;0;8;10;0;12.000000;3.000000;0", where the meanings of each field are as follows: Level 1 Function Option = "Module Initialization"; Constant / Variable = "0" (constant mode); Name of the Test Type API Call Module Sequence Number Array = "IT6700H"; Call Module Sequence Number = "0"; VISA resource name = "COM2"; Baud Rate = "9600"; FlowControl = "0"; Data Bits = "8"; Stop Bits="10"; Parity="0"; Voltage="12.000000" V; Current="3.000000" A; Switch="0" (Off); The Dely test type "Delay" function output example is "Dely;0;1000", where the meanings of each field are: Level 1 function option = "Delay"; Constant / Variable = "0"; Waiting time = "1000" milliseconds.

[0031] Preferably, a dynamic loading and execution mechanism is employed. During test sequence execution, the execution engine calls the core VI for the test type according to the following process: reading the "Test Type" field string of the current test item; concatenating the complete file path of the core VI according to the path specification; dynamically opening and calling the core VI using LabVIEW's VI Server technology; passing the "Configuration Parameters" string of the test item as input parameters to the core VI; and returning the execution result to the execution engine after the core VI completes execution. This mechanism achieves runtime dynamic loading. New test types only need to have their core VI files stored in the agreed path to be automatically recognized by the system. Test types not called by the current test sequence will not be loaded into memory. Modifications or defect fixes for a test type only require replacing the corresponding core VI file, without restarting the entire test program.

[0032] Preferably, the reproducible execution mode is used when multiple identical devices may be used in the same project. The system supports configuring the test type to reproducible execution mode. In this mode, each calling instance has an independent running context and the instances do not interfere with each other. This mechanism is implemented by setting the "Reentrant Execution" option in the LabVIEW VI property node, which effectively solves the problems of resource contention and data crosstalk when controlling multiple devices in parallel.

[0033] Reference Figure 4 Preferably, an independent variable container and a categorized storage mechanism are used. Each MAIN Frame, each Station, and each Acupoint has an independent variable container. Each variable container contains seven categorized storage areas: String storage area (stores a single string variable), String Array storage area (stores an array of strings), Numerical Value storage area (stores a single numeric variable), Numerical Value Array storage area (stores an array of numeric variables), Boole storage area (stores a single Boolean variable), Boole Array storage area (stores an array of Boolean variables), and Variant storage area (a general storage area that can store data of any type). All variables are stored uniformly in the container using a variant data type. The variant data type is a general data container in LabVIEW that can store any data type, used to realize the storage and management of different data types in a unified container.

[0034] Preferably, the system supports cross-level variable indexing and addressing according to the index format "[Station name];[Acupoint name];[Category storage area];[Variable name]": MAINFrame's own variable container is indexed using the format "MAIN;MAIN;Category storage area;Variable name"; Station's own variable container is indexed using the format "Station 1;Station 1;Category storage area;Variable name"; and Acupoint's variable container is indexed using the format "Station 1;Acupoint 1;Category storage area;Variable name". This indexing specification allows each test item in the test sequence to accurately read the required variables from variable containers at any level, or to write the execution results to variable containers at a specified level.

[0035] In this embodiment, the configuration examples for the "Variable Input" field are as follows: Single variable input example "MAIN;MAIN;4;Test Result"; Multi-variable input example (separated by " / ") "MAIN;MAIN;4;Test Result / MAIN;MAIN;4;Static Current Test".

[0036] Preferably, the configuration and injection process of variables involves configuring the initialization data of the variable container through the "Configure Variable Scope" function module. Each configuration sub-VI adopts a unified program framework, with only two editable areas open: the content of the configuration control cluster and the input content type and name of the output control array. After configuration, the variables are stored in the variable container at the corresponding level in variant form, and can be retrieved and used during program initialization, test execution, and exit.

[0037] Preferably, the scheduling and control coordination mechanism for asynchronous parallel tasks is implemented through the "Parallel program invocation" test type, achieving a flexible and secure asynchronous parallel task scheduling mechanism, specifically including: (1) Lifecycle management of parallel sequences: Each parallel sequence is an independent test sequence file (format "xxx.csv") with an independent execution context. The system implements complete lifecycle management of parallel sequences through three standardized interface commands: Parallel call start command starts the specified parallel sequence, with the configuration parameter format "parallel call start; [constant / variable]; [file path]; [whether to be used as result judgment]"; Parallel call stop command stops the specified parallel sequence, with the configuration parameter format "parallel call stop; [constant / variable]; [file path]"; Parallel call status query command queries the running status of the specified parallel sequence, with the configuration parameter format "parallel call status; [constant / variable]; [file path]; [timeout]", when the timeout is set to -1, it means that there will be no timeout; (2) Anti-reentrancy and resource isolation mechanism for parallel sequences: The system maintains a globally unique execution status identifier for each parallel sequence. When a parallel sequence has been called and is in the running state, the instruction to call the parallel sequence again will be directly ignored by the system and a warning log will be recorded, which effectively prevents resource exhaustion and dead loop problems caused by recursive calls. (3) Hierarchical nested calls of parallel sequences: Parallel sequences can be defined and called at three levels: MAIN, Station and Acupoint. Parallel sequences at different levels can call each other. The system monitors the depth of the call chain through the call stack tracing mechanism and automatically blocks and reports errors when potential circular calls are detected. (4) Mechanism for summarizing the results of parallel sequence execution: The main sequence controls the impact of the parallel sequence results on the total result through the parameter "whether to use as the result judgment". When the parameter is "1", the parallel sequence results are logically ANDed with the cumulative results of the current test sequence. When any parallel sequence result is NG, the total result is NG. When the parameter is "0", the execution results of the parallel sequence do not affect the total result.

[0038] Preferably, the event-driven external control and internal execution coordination mechanism achieves reliable mapping and coordinated execution of external physical signals to internal test tasks through two main modules: Control module and Interface Display. Specifically, it includes: (1) Functions and triggering logic of the control module: The control module is mainly responsible for two types of triggering functions. One is to trigger the “start event array” of the interface display. When the control module receives a PLC or IO signal, it passes the status string corresponding to the signal to the “start event array” event processing module of the interface display. The other is to directly trigger the execution of the test module. It can trigger MAIN TEST, a specific MAIN parallel sequence, STATION TEST, a specific STATION parallel sequence, TEST or a specific parallel sequence at the same time. The triggering function of the control module is only enabled after the framework is built and the initialization of each level is completed. It ensures that the system is in a ready state before responding to external triggering signals. (2) The three event handling modules of Interface Display: the Start Event Array receives the status string from the ControlModule, performs a precise string matching search and comparison in the pre-configured "Start Event Array", and executes the corresponding sub-event after a successful match; the Completion Event Array receives the event completion status string output by the TEST module or a specific parallel sequence after the test execution is completed, and performs a precise string matching search and comparison in the pre-configured "Completion Event Array"; the Intermediate Function Trigger Event receives the intermediate function key string passed when the "Intermediate state change" test type is called, and performs a precise string matching search and comparison in the pre-configured "Intermediate Function Trigger Event Array". (3) Event routing mechanism for precise string matching: All three event processing modules adopt a search and comparison strategy of precise string matching to ensure high determinism of event triggering, fast matching speed, and intuitive event name configuration. Non-programmers can also complete the mapping and binding of events to subordinate events through configuration files.

[0039] Reference Figure 3 Preferably, the structured editing and flexible execution mechanism for the test sequence specifically includes: (1) Hierarchical structure of test sequences: The test sequence consists of two levels: "test major items" and "test minor items", and is saved as a CSV file; Test major items support three types: For loop major items execute internal test minor items according to the set number of loops, or exit the loop early when the loop stop condition is met; While loop major items continuously execute internal test minor items until the loop stop condition is met and exit the loop; IF judgment major items support single condition judgment and "Start IF→IF→Else" multi-condition judgment system; The three major item types can be nested to form a complex test logic tree; (2) Field composition of test items: Each test item consists of test name, loop number, execution method, test type, action type, display, forced execution, number of retests, jump configuration, judgment, configuration parameters and variable input fields; (3) Action type and result processing logic: The Action type executes the action function of the core VI of the test type, and does not perform result judgment after execution; The Test type executes the test function of the core VI of the test type, and obtains the test result after execution and compares it with the judgment condition configured in the "judgment" field to generate a PASS / NG Boolean result. This result is automatically stored in the "Boole" category area of ​​the variable container of the current test sequence level with the variable name "test name of test item" as the variable name; The Skip type skips the test item and does not perform any operation. (4) Retesting mechanism: When the result of a test item of type Test is NG, the system automatically checks the “retest count” configuration value of the item. If the retest count is greater than 0 and the current execution count is less than or equal to the retest count, the test item will be re-executed. As long as any retry result is PASS, the final result of the test item will be PASS.

[0040] Reference Figure 5 Preferably, the system startup, operation, and exit process includes: (1) Framework construction phase: When the system starts, the complete tree-like program framework is constructed in the following order: ① calling the Control module and Interface Display module; ② calling the STATION Frame module; ③ calling Acupoint 1 to Acupoint N under Station 1 in sequence; ④ calling Acupoint 1 to Acupoint N under Station 2 in sequence; ⑤ and so on, until all Acupoints under Station N are called; after the framework is constructed, the hierarchical relationship between modules, variable containers and communication channels are all established and ready. (2) Initialization phase: After the framework is built, the initialization at each level is executed in the following order: ① Execute the MAINInitialize first-level module; ② Execute the Station Initialize module of Station 1; ③ Execute the Acupoint Initialize modules of Acupoint 1 to Acupoint N under Station 1 in sequence; ④ Execute the StationInitialize module of Station 2; ⑤ Execute the AcupointInitialize modules of Acupoint 1 to Acupoint N under Station 2 in sequence; ⑥ And so on, until the Station Initialize of Station N and all its Acupoint Initialize modules are completed; The corresponding test sequence function blocks are executed inside each initialization module to realize the instrument connection establishment, parameter preset, variable loading and other preparatory work. (3) Test execution phase: After initialization, the system waits for the external trigger signal of the Control module or the execution instruction of the test sequence. When the trigger condition is met, the corresponding TEST module or parallel sequence module executes the test sequence configured. During the execution, the variable containers at all levels update the test data and status information in real time. (4) Exit Phase: When the system exits, the cleanup operations are performed in the following order: ① Execute the Acupoint Exit module for Acupoint 1 to Acupoint N under Station 1; ② Execute the Station Exit module for Station 1; ③ Execute the Acupoint Exit module for Acupoint 1 to Acupoint N under Station 2; ④ Execute the Station Exit module for Station 2; ⑤ And so on, until all Acupoint Exits and Station Exits of Station N are completed; ⑥ Execute the MAIN Exit first-level module; ⑦ Release all system resources and exit the program; The exit phase ensures that all instrument resources are correctly released, data is persistently saved, and program status is completely recorded.

[0041] Reference Figures 6-9 In this embodiment, the system provides visual configuration and display interfaces such as project framework configuration interface, project parameter configuration interface, and project main display interface (single workstation / multi-workstation). Test engineers can complete the configuration and management of test type module library, test sequence and variable scope through the above interfaces without writing code.

[0042] In this embodiment, in a power module aging test project, the system constructs a four-level tree framework with "MAIN Frame" as the root node, containing two Stations, each Station containing eight Acupoints. The test type module library encapsulates core VIs such as IT6700H power control, Delay delay, Parallel program invocation, and Intermediate testate change. Test engineers arrange the test flow of For loops with embedded IF judgments in the CSV test sequence and configure the parallel instruction "Parallel call enabled;0;PowerMonitor.csv;1" to realize asynchronous invocation of the power monitoring parallel sequence. During test execution, each Acupoint reads and writes data across levels between variable containers through index formats such as "Station 1;Acupoint 1;4;Test result", ultimately achieving parallel automated testing of 16 workstations. This shortens the development cycle of new test functions from several days to several hours and the adjustment cycle of the test process from several days to several minutes, significantly improving the efficiency and flexibility of power module aging tests.

[0043] This application discloses a storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement the scalable automated testing method based on modular testing type as described above.

[0044] The embodiments described in this specific implementation are preferred embodiments of this application and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.

Claims

1. A scalable automated testing system based on modular testing, characterized in that, include: A tree-like multi-level modular main framework is used to construct a four-level tree structure of main framework, workstations, nodes, and test parallel sequences; The test type module library is used to encapsulate N core sub-VI programs, each corresponding to a test type; The test sequence editing and execution engine is used to edit and execute test sequences containing major and minor test items, and dynamically call the corresponding test type core VI based on the test type name of the minor test item; The hierarchical variable scope is used to maintain independent variable containers for the main framework, workstations, and nodes, and to read and write variables across levels according to a preset index format. The event-driven trigger is used to trigger mapped test tasks based on PLC / IO signals and obtain data execution results.

2. The scalable automated testing system based on modular testing type according to claim 1, characterized in that, The test types in the test type module library include: The physical storage path specification encapsulates each test type as an independent core sub-VI program and stores it according to the preset path format; The hierarchical structure of function options includes first-level function options, general standard function option constants / variables, and second-level / third-level function options; The general standard function option constants / variables are used to control the source mode of the configuration parameters for each test type; if it is a constant, the configuration parameter is the set value of each input control on the interface; if it is a variable, the configuration parameter is the variable data selected from the variable container for the variable input field of the test item. The output format of the configuration parameters is a sequential concatenation of the primary function options, constant / variable options, and the parameter values ​​of each control.

3. The scalable automated testing system based on modular testing type according to claim 1, characterized in that, The test sequence execution process of the test sequence editing and execution engine includes: Read the string from the test type field of the current test item and extract the configuration parameters; Construct the complete file path of the core VI according to the physical storage path specification; Dynamically open and call the corresponding core VIs based on LabVIEW's VI Server technology; The core VI dynamically executes the string of configuration parameters for the test items, generating data execution results containing test data and status flags.

4. The scalable automated testing system based on modular testing type according to claim 1, characterized in that, The main frame, workstation, and nodes all contain independent variable containers, and each variable container contains 7 categorized storage areas. All variables are stored uniformly in the container using variant data types.

5. The scalable automated testing system based on modular testing type according to claim 1, characterized in that, The test type can be configured as a replicable execution mode, and each calling instance has an independent running context, with no interference between instances, for parallel control of multiple identical devices.

6. The scalable automated testing system based on modular testing type according to claim 1, characterized in that, The tree-like multi-level modular main framework includes a control module, an interface display module, initialization and exit modules at each level, test modules at each level, and parallel sequence modules at each level. The control module and interface display module realize the trigger mapping from PLC / IO signals to test tasks, including three event processing modules: start event array, completion event array, and intermediate function trigger events, and adopt an event routing mechanism with precise string matching.

7. The scalable automated testing system based on modular testing type according to claim 1, characterized in that: When the test type name is parallel program call, the asynchronous parallel task scheduling mechanism is triggered. This mechanism includes three standardized instructions: parallel call start, parallel call stop, and status query of each parallel call. These instructions enable the start, stop, and status query of the parallel sequence. Combined with anti-reentrancy protection and call stack tracing mechanisms, parallel tasks are scheduled securely.

8. The scalable automated testing system based on modular testing type according to claim 1, characterized in that: The test items adopt three types: For loop, While loop, and IF statement, and they are nested with each other; the test sub-items include test name, loop number, execution method, test type, action type, display, forced execution, number of retests, jump configuration, judgment, configuration parameters, and variable input fields.

9. A scalable automated testing method based on modular testing, applied to the system described in any one of claims 1-8, characterized in that, include: Construct a four-level tree structure consisting of the main framework, workstations, nodes, and test / parallel sequences, and perform initialization at each level; Parse the test sequence and dynamically call the corresponding core VI of the test type according to the test type field of the test item to execute the test and obtain test data and status flags; It can read and write test sequences across different levels of variables, and store test data and status flags.

10. A storage medium storing at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the scalable automated testing method based on a modular test type as described in claim 9.