Integrated test platform and test method based on nucon logicized picture
By using the NuCON logic-based integrated testing platform, image recognition technology is employed to automate interface operations and result verification, solving the problem of reliance on manual intervention in NuCON platform integrated system testing and achieving efficient and accurate test results.
Patent Information
- Application Number
- CN202610503755.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-16
- Publication Date
- 2026-07-21
Smart Images

Figure CN122432038A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automated testing technology for industrial control, and in particular to an integrated testing platform and testing method based on NuCON logic screens. Background Technology
[0002] In the field of industrial control systems, as business demands continue to increase, testing and verification requirements are also becoming more complex. For integrated systems on the NuCON platform, the requirements are not limited to logic control, but also involve interface interaction, data processing, and equipment performance verification testing.
[0003] However, traditional testing methods that rely on manual intervention for interface operation, data entry, and result verification have long testing cycles, are time-consuming and labor-intensive, and are prone to deviations in test results due to human negligence, making it difficult to achieve large-scale batch testing. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to overcome the shortcomings of existing industrial control systems that rely on manual intervention for interface operation, data entry and result verification, resulting in long testing cycles and large result deviations. The present invention provides an integrated testing system based on the NuCON platform, as well as its testing method, equipment and media.
[0005] The present invention solves the above-mentioned technical problems through the following technical solution:
[0006] In a first aspect, the present invention provides an integrated testing platform and testing method based on NuCON logical screens, wherein the integrated testing platform includes: a test management module, a multi-test case invocation module, a data parsing module, and an image recognition module;
[0007] The test management module is used to manage the test procedures, operation permissions, and test results during the NuCON logical screen testing process.
[0008] The multi-test case management module is used to manage the batch loading and display of pre-configured test cases and the switching of test cases;
[0009] The data parsing module is used to parse the test procedure and the corresponding test case selected by external input, and generate test instructions;
[0010] The image recognition module is used to perform setting recognition operations on the NuCON logical screen according to the test instructions using image recognition technology, and generate the test results; the setting recognition operations include image recognition of buttons, valve control equipment, nuclear power plant equipment, simulated buttons and text.
[0011] Preferably, the test management module includes a procedure preparation unit and an import unit;
[0012] The procedure drafting unit is used to draft standardized test procedures according to a set drafting method.
[0013] The import unit is used to import the test procedures in batches and to import multiple test cases.
[0014] Preferably, the test management module further includes a permission management unit and a report management unit;
[0015] The permission management unit is used to set the role permission level, account login password and electronic signature content;
[0016] The report management unit is used to store the test procedures and test results in a distributed manner according to timestamps.
[0017] Preferably, the image recognition module includes a button recognition unit, a valve control device recognition unit, and a nuclear power plant equipment recognition unit;
[0018] The button recognition unit is used to identify the button name, button area and button background color to determine whether the button is disabled or enabled.
[0019] The valve control device identification unit is used to identify the valve position status;
[0020] The nuclear power plant equipment identification unit is used to parse GBD files to obtain the location of nuclear power plant equipment and to identify the operating status of nuclear power plant equipment based on the calibrated colors.
[0021] Preferably, the image recognition module further includes a simulated key recognition unit and a text recognition unit;
[0022] The simulated key recognition unit is used to locate and recognize simulated key input text and corresponding output text;
[0023] The text recognition unit is used to locate and recognize the text content in the command instruction box, information text box, and device pattern recognition box.
[0024] Preferably, the setting of the writing method includes at least one of the following: templated Excel procedure import writing method, drop-down box procedure standardization writing method, multi-type procedure template writing method, standardized test statement precise decomposition writing method, and name-based IO list contact function writing method.
[0025] Preferably, the data parsing module is specifically used to perform semantic hierarchical analysis on the step numbers, action descriptions, and input / output parameters in the test procedure and then store them.
[0026] Secondly, the present invention provides a testing method for an integration testing platform based on NuCON logical screens, applied to the integration testing platform based on NuCON logical screens described in the first aspect, the testing method comprising:
[0027] The system receives input from the user through the test management module and the multi-test case management module, selecting the test procedures and corresponding test cases for the NuCON logical screen testing process.
[0028] The test procedure and the corresponding test cases are parsed using the data parsing module to generate test instructions;
[0029] The image recognition module performs a setting recognition operation on the NuCON logical screen according to the test command and uses image recognition technology to generate the test result; the setting recognition operation includes image recognition of buttons, valve control equipment, nuclear power plant equipment, simulated buttons and text.
[0030] Thirdly, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the testing method of the integrated test platform based on NuCON logic screen as described in the second aspect.
[0031] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the testing method of the integrated test platform based on NuCON logic screens as described in the second aspect.
[0032] The positive and progressive effects of this invention are as follows: This invention discloses an integrated testing platform and its testing method based on NuCON logical screens. The integrated testing platform includes: a test management module for managing test procedures, operation permissions, and test results during the NuCON logical screen testing process; a multi-test case management module for managing batch loading and display of pre-configured test cases and managing test case switching; a data parsing module for parsing the externally inputted test procedures and corresponding test cases to generate test instructions; and an image recognition module for using image recognition technology to perform setting and recognition operations on the NuCON logical screen using the test instructions to generate the test results. This invention solves the problem of long testing cycles and large result deviations in industrial control systems that rely on manual intervention for interface operation, data entry, and result verification through the data parsing module and image recognition module in the integrated testing platform. Attached Figure Description
[0033] Figure 1 This is a schematic diagram of the first module of the integrated testing platform based on NuCON logic screen in Embodiment 1 of the present invention.
[0034] Figure 2 This is a schematic diagram of the second module of the integrated test platform based on NuCON logic screen in Embodiment 1 of the present invention.
[0035] Figure 3 This is a flowchart of the testing method for the integrated testing platform based on NuCON logical screens according to Embodiment 2 of the present invention.
[0036] Figure 4 This is a schematic diagram of the hardware structure of the electronic device according to Embodiment 3 of the present invention. Detailed Implementation
[0037] The present invention will be further illustrated by way of embodiments below, but the present invention is not limited to the scope of the embodiments described herein.
[0038] Example 1
[0039] like Figure 1 As shown, this embodiment provides an integrated testing platform based on NuCON logical screens. The integrated testing platform includes: a test management module 11, a multi-test case invocation module 12, a data parsing module 13, and an image recognition module 14.
[0040] Test management module 11 is used to manage test procedures, operation permissions and test results during the NuCON logical screen testing process;
[0041] The multi-test case management module 12 is used for batch loading and display management of pre-configured test cases and test case switching management.
[0042] Data parsing module 13 is used to parse the test procedures and corresponding test cases selected by external input and generate test instructions;
[0043] The image recognition module 14 is used to perform setting recognition operations on the NuCON logic screen according to the test instructions using image recognition technology, and generate test results; the setting recognition operations include image recognition of buttons, valve control equipment, nuclear power plant equipment, analog buttons and text.
[0044] In this embodiment, the test management module 11 sets the types of test procedures, classifies the levels of operation permissions, and categorizes the content of test results during the NuCON logical screen testing process. The multi-test case management module 12 supports batch loading and switching of multiple test cases. Users can select and switch between multiple test cases through external operations. The integrated test platform automatically loads the corresponding test cases, facilitating users to switch between different test scenarios and manage test progress. The image recognition module 14 automatically loads test procedures and test cases based on the test instructions parsed by the data parsing module 13, and executes test tasks according to preset rules and conditions. By combining technologies such as PaddleOCR and OpenCV, this invention can automatically identify and locate buttons, icons, and status information in the test interface. Through screenshot and image processing technology, the system can determine whether a button is enabled or disabled, automatically extract interface information, and perform necessary operations and verifications. This automated recognition technology can significantly reduce manual intervention and improve operational accuracy.
[0045] In one embodiment, such as Figure 2 As shown, the test management module 11 includes a procedure preparation unit 111 and an import unit 112;
[0046] The procedure drafting unit 111 is used to draft standardized test procedures according to the set drafting method;
[0047] Import unit 112 is used to import test procedures in batches and import test cases in multiple cases.
[0048] The writing method includes at least one of the following: templated Excel procedure import writing method, drop-down list procedure standardization writing method, multi-type procedure template writing method, standardized test statement precise decomposition writing method, and name-based IO list contact function writing method.
[0049] In this embodiment, the procedure compilation unit 111 can compile standardized test procedures using a templated Excel procedure import and writing method. The procedure document uses a standardized format Excel spreadsheet as the carrier. This Excel spreadsheet uses a preset template, and each cell in the template is organized with a fixed format and content, covering all data items required in the operation process. After multiple test cases are loaded, the import unit 112 can display the import order of multiple test cases in the form of tabs. Batch loading and switching of multiple test cases and test procedures facilitates users to switch between different test scenarios and manage test progress.
[0050] In one embodiment, the test management module 11 further includes a permission management unit 113 and a report management unit 114;
[0051] The permission management unit 113 is used to set the role permission level, account login password and electronic signature content;
[0052] The report management unit 114 is used to store test procedures and test results in a distributed manner according to timestamps.
[0053] In this embodiment, the permission management unit 113 provides comprehensive user management functions, supporting the management of user roles, passwords, electronic signatures, and other content. By setting different permission levels, it ensures that only authorized users can perform important operations, guaranteeing the security of the integration testing platform and the reliability of data. The report management unit 114 stores the test procedures and test results in the form of reports in chronological order. The reports record the test process, results, and related performance indicators in detail. By distributing the reports, traceability is ensured in the event of abnormal test results.
[0054] In one embodiment, the image recognition module 14 includes a button recognition unit 141, a valve control device recognition unit 142, and a nuclear power plant equipment recognition unit 143;
[0055] The button recognition unit 141 is used to recognize the button name, button area and button background color to determine whether the button is disabled or enabled.
[0056] Valve control equipment identification unit 142 is used to identify valve position status;
[0057] The nuclear power plant equipment identification unit 143 is used to parse GBD files to obtain the location of nuclear power plant equipment and identify the operating status of nuclear power plant equipment based on the calibration color.
[0058] In this embodiment, after the button recognition unit 141 completes OCR recognition, PaddleOCR returns the coordinate information of the text box. Based on the coordinates, the button name in the image is determined. The button area is determined by a rectangular frame using OpenCV technology. The button state is usually related to its background color. A button in the enabled state can be a bright color, while a button in the disabled state can be gray or dark. The button background color can be extracted using OpenCV technology. By calculating the average color of the button area or extracting the main components of the background color, the button state can be judged. For example, if the button background color is bright and has high saturation, the button can be in the enabled state; if the button background color is dark or close to gray, it can be in the disabled state. The valve equipment recognition unit 142 is used to identify the valve position status to determine whether the configuration screen is correctly compiled. The nuclear power plant equipment recognition unit 143 parses the TXT file converted from GBD to obtain the position of the nuclear power plant equipment in the interface. It uses image cropping technology (e.g., image cutout) to extract the image of the nuclear power plant equipment and identifies whether the nuclear power plant equipment status meets the test expectations based on the calibrated color.
[0059] In one embodiment, the image recognition module 14 further includes a simulated key recognition unit 144 and a text recognition unit 145;
[0060] The analog key recognition unit 144 is used to locate and recognize the analog key input text and the corresponding output text.
[0061] The text recognition unit 145 is used to locate and recognize the text content in the command instruction box, information text box and device pattern recognition box.
[0062] In this embodiment, the simulated key recognition unit 144 and the text recognition unit 145 recognize the text information in the simulated key input box and the corresponding output text information to determine whether the text information displayed in each box meets the test expectations.
[0063] In one embodiment, the data parsing module 13 is specifically used to perform semantic hierarchical analysis on the step numbers, action descriptions, and input / output parameters in the test procedure and then store them.
[0064] Specifically, the data parsing module 13 automatically parses the core information in the procedure file, such as the operation steps, input and output parameters, and judgment conditions, and stores it in a structured manner so that users can view, edit, and confirm it in the graphical interface.
[0065] This embodiment provides an integrated testing platform based on NuCON logical screens. The data parsing module and image recognition module in the integrated testing platform solve the problem that industrial control systems rely on manual intervention for interface operation, data entry, and result verification, resulting in long testing cycles and large result deviations.
[0066] Example 2
[0067] like Figure 3 As shown, this embodiment provides a testing method for an integration test platform based on NuCON logical screens. This testing method is applied to the integration test platform based on NuCON logical screens in Embodiment 1, and the testing method includes:
[0068] S11. Receive the user's input from the test management module and the multi-case management module to select the test procedure and corresponding test cases for the NuCON logical screen test process.
[0069] S12. Use the data parsing module to parse the test procedures and corresponding test cases, and generate test instructions;
[0070] S13. The image recognition module performs image recognition operations on the NuCON logic screen according to the test instructions and generates test results. The image recognition operations include image recognition of buttons, valve control equipment, nuclear power plant equipment, analog buttons and text.
[0071] For steps S11-S13, users can select and switch between multiple test cases through external operations. The integrated testing platform automatically loads the corresponding test cases, facilitating switching between different test scenarios and test progress management. The system receives the test procedures and corresponding test cases required by the user during the NuCON logical screen testing process. The image recognition module automatically loads the test procedures and test cases based on the test instructions parsed by the data parsing module and executes the test tasks according to preset rules and conditions. By combining technologies such as PaddleOCR and OpenCV, the image recognition module can automatically identify and locate buttons, icons, and status information in the test interface. Through screenshot and image processing technology, the system can determine whether buttons are enabled or disabled, automatically extract interface information, and perform necessary operations and verifications. This automated recognition technology significantly reduces manual intervention and improves operational accuracy.
[0072] This embodiment provides a testing method for an integrated testing platform based on NuCON logical screens. The method addresses the problem of long testing cycles and large result deviations in industrial control systems that rely on manual intervention for interface operation, data entry, and result verification. This is achieved through the data parsing module and image recognition module in the integrated testing platform.
[0073] Example 3
[0074] Figure 4 This is a schematic diagram of the structure of an electronic device provided in this embodiment. The smart helmet includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the testing method of the integrated test platform based on the NuCON logical screen of Embodiment 2. Figure 4 The electronic device 60 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0075] Electronic device 60 may be in the form of a general-purpose computing device, such as a server device. Components of electronic device 60 may include, but are not limited to: at least one processor 61, at least one memory 62, and a bus 63 connecting different system components (including memory 62 and processor 61).
[0076] Bus 63 includes a data bus, an address bus, and a control bus.
[0077] The memory 62 may include volatile memory, such as random access memory (RAM) 621 and / or cache memory 622, and may further include read-only memory (ROM) 623.
[0078] The memory 62 may also include a program / utility 625 having a set (at least one) of program modules 624, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0079] The processor 61 executes various functional applications and data processing by running computer programs stored in the memory 62, such as the test method of the integrated test platform based on NuCON logic screen in Embodiment 2 of the present invention.
[0080] Electronic device 60 can also communicate with one or more external devices 64 (e.g., keyboard, pointing device, etc.). This communication can be performed via input / output (I / O) interface 65. Furthermore, the model-generated electronic device 60 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public network, such as the Internet) via network adapter 66. As shown, network adapter 66 communicates with other modules of the model-generated electronic device 60 via bus 63. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated electronic device 60, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.
[0081] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0082] Example 4
[0083] This embodiment provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the testing method of the integrated test platform based on NuCON logical screens in Embodiment 2.
[0084] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0085] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when the program product is run on a terminal device, is used to cause the terminal device to execute the test method of the integrated test platform based on NuCON logic screen as described in Embodiment 2.
[0086] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.
[0087] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but all such changes and modifications fall within the scope of protection of the present invention.
Claims
1. An integrated testing platform based on NuCON logicalized screens, characterized in that, The integrated testing platform includes: a test management module, a multi-test case invocation module, a data parsing module, and an image recognition module; The test management module is used to manage the test procedures, operation permissions, and test results during the NuCON logical screen testing process. The multi-test case management module is used to manage the batch loading and display of pre-configured test cases and the switching of test cases; The data parsing module is used to parse the test procedure and the corresponding test case selected by external input, and generate test instructions; The image recognition module is used to perform setting recognition operations on the NuCON logic screen according to the test instructions using image recognition technology, and generate the test results; the setting recognition operations include image recognition of buttons, valve control equipment, nuclear power plant equipment, simulated buttons and text.
2. The integrated testing platform based on NuCON logicalized screens as described in claim 1, characterized in that, The test management module includes a procedure preparation unit and an import unit; The procedure drafting unit is used to draft standardized test procedures according to a set drafting method. The import unit is used to import the test procedures in batches and to import multiple test cases.
3. The integrated testing platform based on NuCON logicalized screens as described in claim 2, characterized in that, The test management module also includes a permission management unit and a report management unit; The permission management unit is used to set the role permission level, account login password and electronic signature content; The report management unit is used to store the test procedures and test results in a distributed manner according to timestamps.
4. The integrated testing platform based on NuCON logicalized screens as described in claim 1, characterized in that, The image recognition module includes a button recognition unit, a valve control device recognition unit, and a nuclear power plant equipment recognition unit; The button recognition unit is used to identify the button name, button area and button background color to determine whether the button is disabled or enabled. The valve control device identification unit is used to identify the valve position status; The nuclear power plant equipment identification unit is used to parse GBD files to obtain the location of nuclear power plant equipment and to identify the operating status of nuclear power plant equipment based on the calibrated colors.
5. The integrated testing platform based on NuCON logicalized screens as described in claim 4, characterized in that, The image recognition module also includes a simulated key recognition unit and a text recognition unit; The simulated key recognition unit is used to locate and recognize simulated key input text and corresponding output text; The text recognition unit is used to locate and recognize the text content in the command instruction box, information text box, and device pattern recognition box.
6. The integrated testing platform based on NuCON logicalized screens as described in claim 2, characterized in that, The specified writing methods include at least one of the following: templated Excel procedure import writing method, drop-down list procedure standardization writing method, multi-type procedure template writing method, standardized test statement precise decomposition writing method, and name-based IO list contact function writing method.
7. The integrated testing platform based on NuCON logicalized screens as described in claim 1, characterized in that, The data parsing module is specifically used to perform semantic hierarchical analysis on the step numbers, action descriptions, and input / output parameters in the test procedure and then store them.
8. A testing method for an integrated testing platform based on NuCON logical screens, characterized in that, The testing method, applied to the integration test platform based on NuCON logicalized screens as described in any one of claims 1-7, comprises: The system receives input from the user through the test management module and the multi-test case management module, selecting the test procedures and corresponding test cases for the NuCON logical screen testing process. The test procedure and the corresponding test cases are parsed using the data parsing module to generate test instructions; The image recognition module performs a setting recognition operation on the NuCON logical screen according to the test command and uses image recognition technology to generate the test result; the setting recognition operation includes image recognition of buttons, valve control equipment, nuclear power plant equipment, simulated buttons and text.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the testing method of the integrated test platform based on NuCON logic screen as described in claim 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the testing method of the integrated test platform based on NuCON logic screen as described in claim 8.