Automatic test method and system for analog machine

By recording the simulator operator's test cases through automatic testing methods, the problems of long simulator testing cycle, large manpower and human bias are solved, efficient automated testing is achieved, and maintenance costs are reduced.

CN120803914APending Publication Date: 2025-10-17YANGJIANG NUCLEAR POWER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510806985.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-16
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

Existing simulator testing requires a lot of manpower, takes a long time, and is prone to human bias, resulting in high maintenance costs.

Method used

An automatic testing method for a simulator is constructed. By recording the operator's test cases, monitoring points, operation instructions and timestamps are obtained, and test results are generated to achieve automated testing.

Benefits of technology

Reduce manual repetitive operations, lower test error rates, improve test efficiency, and reduce maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803914A_ABST
    Figure CN120803914A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic test method and system for an analog machine, and the method comprises the steps: obtaining a test case selected by a user, and enabling the test case to be obtained by recording the operation of an operator when the operator carries out the manual test of the analog machine in advance; analyzing the selected test case to obtain a monitoring point location selected by an operator when the operator performs a manual test on the analog machine, input operation instructions and timestamps respectively corresponding to the operation instructions; acquiring corresponding monitoring information from the analog machine according to the monitoring point location, sending the operation instruction to the analog machine according to a timestamp corresponding to the operation instruction, and acquiring response information of the operation instruction from the analog machine; and generating a test result according to the monitoring information and the response information. By implementing the technical scheme of the invention, the manual repeated operation is reduced, the test error rate is reduced, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of nuclear power, in particular to an automatic testing method and system for a simulator. BACKGROUND

[0002] Full range simulator is a simulation device used for operator training and examination in nuclear power plant. The full range simulator always needs to ensure that its calculation results and presented responses are consistent with the reference unit, so as to ensure the training effect. After the reference unit is put into commercial operation, the simulator periodically obtains the operation data and overhaul data of the reference unit, and the simulator needs to use the reference unit data to modify the simulator software, so as to achieve consistency between the responses on the simulator and the actual responses of the reference unit.

[0003] The existing simulator test needs the simulator instructor and the maintenance personnel to carry out the test according to the test procedure and rely on the working experience, which has the problems of long time period, large input of operators, high requirement for professional skills of personnel, easy to have human deviation, etc., leading to high industry cost of simulator maintenance. SUMMARY

[0004] The technical problem to be solved by the present application is to provide an automatic testing method and system for a simulator, which solves the technical problems of long test period, large input of personnel, high requirement for professional skills of personnel, and easy to have human deviation in the prior art.

[0005] The technical solution adopted by the present application to solve the technical problem is that an automatic testing method for a simulator is constructed, comprising:

[0006] Step S10, obtaining a test case selected by a user, wherein the test case is obtained by recording the operation of an operator when the operator manually tests the simulator;

[0007] Step S20, obtaining a monitoring point selected by the operator when the operator manually tests the simulator, an input operation instruction and a time stamp corresponding to each operation instruction by analyzing the selected test case;

[0008] Step S30, obtaining corresponding monitoring information from the simulator according to the monitoring point, and sending the operation instruction to the simulator according to the time stamp corresponding to the operation instruction, and obtaining response information of the operation instruction from the simulator;

[0009] Step S40, generating a test result according to the monitoring information and the response information.

[0010] In some embodiments, the step S20 further comprises:

[0011] By parsing the selected test case, the monitoring information of the monitoring point and the response information of each operation instruction when the operator manually tests the simulator are obtained.

[0012] The step S40 comprises:

[0013] The monitoring information and the response information obtained in the step S30 are integrated and compared with the monitoring information and the response information obtained in the step S20, and a test result is generated.

[0014] In some embodiments, the step S40 further comprises:

[0015] The monitoring information of the monitoring point is displayed in a curve graph.

[0016] In some embodiments, the test case is obtained by the following way:

[0017] Step S01, receiving the case new instruction and the case attribute information input by the operator;

[0018] Step S02, receiving the start recording instruction input by the operator;

[0019] Step S03, obtaining recording information from the simulator, wherein the recording information comprises: the monitoring information of the selected monitoring point, the input operation instruction and the time stamp corresponding to each operation instruction respectively;

[0020] Step S04, receiving the save instruction input by the operator when the operator completes the manual test on the simulator, and saving the recording information;

[0021] Step S05, generating a test case according to the saved recording information and the case attribute information.

[0022] In some embodiments, the step S03 further comprises:

[0023] The obtained recording information is format-verified and temporarily stored;

[0024] In the step S04, the recording information is saved, comprising:

[0025] The recording information that passes the format verification is saved.

[0026] In some embodiments, before the step S10, further comprising:

[0027] Receiving the connection information input by the user, and establishing a TCP connection with the simulator to be tested according to the connection information.

[0028] In some embodiments, further comprising:

[0029] receiving a simulation machine control instruction input by a user, wherein the simulation machine control instruction comprises a start instruction, a stop instruction, and a restart instruction;

[0030] sending the simulation machine control instruction to the simulation machine to control the simulation machine accordingly.

[0031] In some embodiments, further comprising:

[0032] outputting the parsed operation instruction and marking the currently executed operation instruction;

[0033] outputting the response information of the currently executed operation instruction.

[0034] In some embodiments, before the step S10, further comprising:

[0035] receiving login information input by a user and verifying the identity of the user according to the login information;

[0036] associating the test result with the identity of the user and saving the same.

[0037] The application also discloses an automatic test system of a simulation machine, comprising a processor and a memory storing a computer program, wherein the processor realizes the steps of the automatic test method of the simulation machine when executing the computer program.

[0038] According to the technical scheme of the application, for the same use case, an operator only needs to record once according to the test flow, and then repeated automatic test can be realized to verify the system working condition and response of the simulation machine, so that the mode of "recording once and executing multiple times" reduces the repeated manual operation, reduces the test error rate, and improves the test efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor. In the drawings:

[0040] Figure 1 is a flowchart of the automatic test method of the simulation machine in an embodiment of the application;

[0041] Figure 2 is an interface diagram of the automatic test system of the simulation machine in an embodiment of the application;

[0042] Figure 3This is an interface diagram of an automatic test system for a simulator in one embodiment of the present invention;

[0043] Figure 4 It is a logical structure diagram of an automatic test system of a simulator in one embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0045] In view of the technical problems in the existing technology that operators are required to manually test simulators according to the test process, which has long testing cycles, large manpower investment, high requirements on personnel's professional skills, and easy occurrence of human bias, the present invention develops a set of methods and tools for automatic testing of simulators, which can not only comprehensively test the simulator working conditions and improve test efficiency; it also converts repetitive simulator test tasks into automated tests, does not require a large number of personnel, resolves the contradiction between testing and upgrading, and improves work efficiency.

[0046] Figure 1 1 is a flow chart of a first embodiment of an automatic testing method for a simulator of the present invention. The automatic testing method of this embodiment is applied to an automatic testing system and specifically includes the following:

[0047] Step S10, obtaining a test case selected by the user, wherein the test case is obtained in advance by recording the operator's operation when the operator performs manual testing on the simulator;

[0048] In this step, when the simulator needs to be tested, the user can filter appropriate test cases through query conditions (such as system, unit number, tester, etc.) in the automatic test interface. In addition, the immediate execution or test start time can be set. In addition, it should be noted that the simulator includes a simulation platform, a non-safety-level DCS system, and a safety-level DCS system. During the recording of the test case, the operator's manual operations on the simulation system, non-safety-level DCS system, and safety-level DCS system can be transmitted to the automatic test system via TCP / IP, and the automatic test system will identify and record the instruction type. At the same time, data is collected from the non-safety-level DCS system based on the monitoring points selected by the operator to complete the recording of the entire use case, facilitating the automatic testing of the use case later.

[0049] Step S20, by parsing the selected test case, obtaining the monitoring point selected by the operator when manually testing the simulator, the input operation instruction and the time stamp corresponding to each operation instruction respectively;

[0050] In this step, in the automatic testing process, when the selected test case is obtained, the test case can be parsed to separate the instructions and data therein.

[0051] Step S30, obtaining the corresponding monitoring information from the simulator according to the monitoring point, and sending the operation instruction to the simulator according to the time stamp corresponding thereto, and obtaining the response information of the operation instruction from the simulator;

[0052] In this step, after parsing the test case, the instructions are distributed according to the instruction type and instruction interval recorded during recording, to ensure complete reproduction of the recording situation. At the same time, data collection is performed according to the monitoring point selected during recording. When the operation instruction is issued to the simulator, each step of the test execution and the response of each interface are also monitored. That is, during the automatic testing, the execution result of each operation and the performance data of the simulator are recorded in real time.

[0053] Step S40, generating a test result according to the monitoring information and the response information.

[0054] In this step, after the automatic testing is completed, data analysis is performed on the monitoring information and the response information, so that it can be known whether the automatic testing result is normal. The entire automatic testing greatly reduces the operation of the simulator instructor, and releases the teaching energy of the simulator instructor.

[0055] In the technical scheme of this embodiment, for the same case, the operator only needs to record once according to the test process, and subsequent repeated automatic testing can be implemented to verify the system working condition and response of the simulator. Therefore, this "one-time recording, multiple execution" mode reduces the repeated operation of manual operation, reduces the test error rate, and improves the test efficiency.

[0056] Further, in an optional embodiment, step S20 further comprises:

[0057] By parsing the selected test case, the monitoring information of the monitoring point and the response information of each operation instruction when the operator manually tests the simulator are obtained;

[0058] The step S40 comprises:

[0059] The monitoring information and the response information obtained in the step S30 are integrated and compared with the monitoring information and the response information obtained in the step S20, and a test result is generated.

[0060] In this step, when the comparison is performed, the data can be analyzed by least square method, extreme value method, quartile method, etc. to obtain the difference between the two, and the relevant deviation report is quickly provided for the subsequent analysis of the operator.

[0061] In this embodiment, the monitoring information of the monitoring points and the response information of each operation instruction are included in the standard (recorded) test case. The monitoring information of the same monitoring points and the response information of each operation instruction are also obtained during the actual test. By integrating and comparing the two, a clear and intuitive test result can be automatically generated to assist the user to quickly identify abnormal phenomena and improve decision-making efficiency.

[0062] Further, when integrating and comparing, all actual test cases related to the standard test case stored in the database can also be compared, for example, by matching the operation steps and data, the relationship between the data of the two operation steps can be obtained, and by analyzing the data differences at different times, the state trend of the nuclear power unit can be analyzed by the operator.

[0063] Further, in an optional embodiment, step S40 further includes displaying the monitoring information of the monitoring points in a curve graph. In this embodiment, when the real-time monitoring information of the monitoring points is obtained, a curve trend graph of the monitoring points is also generated and displayed.

[0064] Further, in an optional embodiment, the test case is obtained by the following method:

[0065] Step S01, receiving the case new instruction, case attribute information and selected monitoring points input by the operator;

[0066] In this step, the operator can input the case new instruction in the "real-time recording" interface, fill in the case attribute information (for example, including: test title, unit name, test type, importance, etc.), and select the monitoring points. The selected monitoring points can be multiple.

[0067] Step S02, receiving the start recording instruction input by the operator;

[0068] Step S03, obtaining recording information from the simulation machine, wherein the recording information includes monitoring information of the selected monitoring points, input operation instructions and time stamps corresponding to each operation instruction respectively;

[0069] In this step, it is to be explained that the existing interface relationship of the simulation machine can be re-arranged and re-developed in advance, so that the automatic test system can effectively obtain various data from the simulation machine through the developed interface, including the monitoring information of the monitoring points and the operation instructions of the operator to the simulation machine, thereby ensuring the consistency of the recorded operation.

[0070] In step S04, when the operator completes the manual test on the simulation machine, a save instruction input by the operator is received, and the recording information is saved.

[0071] In step S05, a test case is generated according to the saved recording information and the case attribute information.

[0072] In this embodiment, when the user opens the "real-time recording" interface, a test case can be created first, the attribute information is filled in, the monitoring points are selected, and then the start recording instruction is input. At this time, the automatic test system captures the operation instructions and timestamp data of the user on the simulation machine, and also obtains the monitoring information of the selected monitoring points from the simulation machine. When the operator completes the manual test, a save instruction can be input to save the above recording information, for example, it can be saved in a local database to ensure the physical isolation of the nuclear power plant data and the external network, thereby ensuring the information security and meeting the safety requirements specific to the nuclear power plant. Finally, a test case is generated according to the saved recording information and the case attribute information.

[0073] Further, in an optional embodiment, for the created test case, the operator can also perform operations such as query, edit, copy, delete, download, etc. on the test case, for example, the selected test case can be edited by clicking the right mouse button, including modifying the attribute information, refreshing the data, etc. In addition, paging query and condition filtering are also supported to ensure that the user can quickly locate the required data.

[0074] Further, step S03 further includes: performing format verification and temporary storage on the obtained recording information. In step S04, the recording information is saved, including saving the recording information that passes the format verification. In this embodiment, for the obtained recording information, format verification is performed first to determine whether the data source is correct, and only the recording information that passes the format verification is saved.

[0075] Further, in an optional embodiment, before step S10, it further includes:

[0076] Receiving the connection information input by the user, and establishing a TCP connection with the simulation machine to be tested according to the connection information.

[0077] In a specific embodiment, as Figure 2As shown, the simulation machine includes a simulation platform and a computing server, and a user can input signal connection information (including IP address and port number) of the simulation platform and the computing server in a "signal connection" interface, check a connection state, and then input a connection instruction, so that the automatic test system can establish a control and data transmission channel with the simulation machine through a network communication interface.

[0078] Further, in an optional embodiment, the automatic test method of the simulation machine further includes:

[0079] receiving a simulation machine control instruction input by a user, wherein the simulation machine control instruction includes a start instruction, a stop instruction, and a restart instruction;

[0080] sending the simulation machine control instruction to the simulation machine to control the simulation machine accordingly.

[0081] In this embodiment, as shown in Figure 2 a user can directly send a control instruction (start, stop, or restart instruction) to the simulation machine in a "signal connection" interface to control the simulation machine accordingly.

[0082] Further, in an optional embodiment, the automatic test method of the simulation machine further includes:

[0083] outputting the parsed operation instruction and marking a currently executed operation instruction;

[0084] outputting response information of the currently executed operation instruction.

[0085] In a specific embodiment, as shown in Figure 3 in a region A1 in an "automatic test" interface, various operation instructions are displayed, and a previously executed operation instruction is marked in red. In a region A2 in the "automatic test" interface, response information of a currently executed operation instruction is displayed.

[0086] Further, in an optional embodiment, before step S10, the method further includes:

[0087] receiving login information input by a user and verifying a user identity according to the login information;

[0088] associating the test result with the user identity and saving the test result.

[0089] In this embodiment, when a user starts the automatic test system, the user can input login information, including a user account and a password, in a login interface, and can select an account type (administrator or ordinary user). The background verifies the login information of the user, and if the verification is passed, the user can enter a main interface.

[0090] The present invention also constructs an automatic testing system for a simulator, comprising a processor and a memory storing a computer program. The processor implements the steps of the automatic testing method for the simulator described above when executing the computer program.

[0091] Figure 4 This is a logical structure diagram of the automatic test system of the simulator in one embodiment of the present invention. Figure 4 The following describes the workflow of the automatic testing system of this embodiment:

[0092] (1) Startup and user verification

[0093] After the user decompresses the automatic test program file on the computer, double-click to start the main program and enter the login interface. On the login interface, the user enters the login information such as account number and password, and selects the account type (administrator or ordinary user). After the software verifies, the user enters the main interface.

[0094] (2) Main interface and module selection

[0095] The Welcome screen displays the following functional portals: signal connection, real-time recording, automatic testing, data management, report analysis, etc. Users can navigate the modules by switching between different operation areas through the left menu or the upper tabs.

[0096] (3) Signal connection and data interaction

[0097] In the "Signal Connection Interface", such as Figure 2 As shown in the figure, users can enter the IP address and port number of the simulation platform and computing server. The software automatically checks the connection status and establishes a control and data transmission channel with the simulation platform through the network communication interface. In addition, in the "Signal Connection Interface", users can directly send control commands (start, stop, and restart the simulation platform) to the simulator to control the simulator accordingly.

[0098] (4) Real-time recording and use case management

[0099] On the "Real-Time Recording" screen, when the user clicks "Start," the software captures the user's command and timestamp data, performs format verification, and temporarily stores the recorded data. Clicking "Save" saves the recorded data to the database. This screen also allows users to enter test case attributes (test title, unit name, test type, importance, etc.) and select standard monitoring points. The software also supports right-click shortcuts, data refresh, and point editing to ensure accurate recording information.

[0100] (5) Automatic testing process

[0101] In the "automatic test" interface, the user can filter the appropriate test cases through the query conditions, and set the test start time or execute immediately. When the test starts to execute, the software automatically issues the selected case data to the simulation platform, while monitoring each step of the test execution and the response of each interface. In addition, during the automatic test, the software records the execution results of each step of operation and the simulation platform performance data in real time.

[0102] (6) Data management and report generation

[0103] In the "data management interface", the user can query, edit, copy, delete and download the recorded test cases. In addition, data management supports page query and condition filtering to ensure that the user can quickly locate the required data.

[0104] (7) Report analysis

[0105] In the "report analysis" interface, the software can integrate, compare and graphically display test data. When the user double-clicks the case or right-clicks to load the corresponding data, the software automatically generates a trend chart and an index report, and provides an export function.

[0106] Finally, for each of the above function modules, an error catching and prompting mechanism is provided, such as providing corresponding prompts and fault recovery solutions when signal connection fails or recording is interrupted. In addition, all operations are synchronized in real time to the central database to ensure data consistency and historical data traceability.

[0107] The technical scheme of the embodiment has the following characteristics:

[0108] (1) One recording, repeated automatic testing

[0109] The automatic test system realizes that the case is recorded once by the operator, and can be repeatedly called through automatic testing in the future to verify the working condition and response of the simulator. This "one recording, multiple execution" mode not only can test the working condition of the simulator comprehensively and improve the test efficiency, but also can convert the repeated simulator test task into automatic test, without the need for a large number of personnel, solve the contradiction between testing and upgrading, and improve the work efficiency.

[0110] Moreover, the automatic test module and the data management module are closely connected, the recorded case data is stored in the database after format verification, and then the automatic scheduling module extracts the data to repeatedly execute the test according to the predetermined time or triggering condition, and records the test results and performance.

[0111] (2) Modular system structure

[0112] The automatic test system is divided into multiple functional modules, including user interaction (login, operation interface), signal connection, real-time recording, automatic test, data management, and report analysis. Each module is relatively independent and supports each other, facilitating maintenance, upgrading, and module replacement, while facilitating the connection of new functional modules in the future.

[0113] Moreover, the automatic test system uses standardized interfaces and data formats to seamlessly connect with simulation platforms and other external servers, providing a good foundation for subsequent system integration and data sharing. The modules communicate through standardized data interfaces, especially in the signal connection and data synchronization links, ensuring real-time data transmission and accurate command issuance between the simulation platform and the computing server.

[0114] (3) Intelligent operation and real-time feedback

[0115] The automatic test system integrates real-time recording and dynamic data monitoring functions, not only recording each operation command of the operator, but also displaying and comparing the collected data in real time, providing immediate feedback to the operator through interactive methods such as floating windows. During recording, the user's command is time-stamped and recorded in real time, making the operation process and subsequent playback more intuitive, while monitoring the performance indicators of the simulation platform in real time during the automatic test process, ensuring the transparency and reliability of the test process. In addition, the real-time data acquisition and analysis module built into the automatic test system can detect and feedback data anomalies in real time during the test process, implementing dynamic adjustment and early warning mechanisms.

[0116] (4) Data integrity and user experience improvement

[0117] The automatic test system automatically records data at each stage from user operation to test results, ensuring data integrity and reliability, and facilitating post-analysis and problem positioning.

[0118] The automatic test system automatically generates clear and intuitive test reports through multi-dimensional comparison (such as time stamp, operation sequence, response curve) between standard cases and test cases, assisting users in quickly identifying abnormal phenomena and improving decision-making efficiency.

[0119] The automatic test system makes operation more humanized and intuitive through functional designs such as floating windows, instant feedback, and custom interface display, while reducing user learning costs.

[0120] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the scope of the claims of the present application.

Claims

1. A method for automatically testing a simulator, characterized in that: include: Step S10, obtaining a test case selected by the user, wherein the test case is obtained in advance by recording the operator's operation when the operator performs manual testing on the simulator; Step S20, by parsing the selected test case, obtaining the monitoring points selected by the operator when manually testing the simulator, the operation instructions input, and the timestamps corresponding to each operation instruction; Step S30, obtaining corresponding monitoring information from the simulator according to the monitoring points, and sending the operation instruction to the simulator according to its corresponding timestamp, and obtaining response information of the operation instruction from the simulator; Step S40: Generate a test result based on the monitoring information and the response information.

2. The automatic testing method of the simulator according to claim 1, characterized in that: The step S20 further includes: By parsing the selected test case, the monitoring information of the monitoring points and the response information of each operation instruction when the operator performs manual testing on the simulator are obtained; The step S40 includes: The monitoring information and response information obtained in step S30 are integrated and compared with the monitoring information and response information obtained in step S20 to generate a test result.

3. The automatic testing method of the simulator according to claim 2, characterized in that: The step S40 further includes: The monitoring information of the monitoring points is displayed in a curve graph.

4. The automatic testing method of the simulator according to claim 1, characterized in that: The test cases are obtained in the following ways: Step S01, receiving a use case creation instruction and use case attribute information input by an operator; Step S02, receiving a start recording instruction input by an operator; Step S03, obtaining recording information from the simulator, wherein the recording information includes: monitoring information of the selected monitoring point, the input operation instructions, and the timestamps corresponding to each operation instruction; Step S04, when the operator completes the manual test on the simulator, receiving a save instruction input by the operator and saving the recorded information; Step S05: Generate a test case based on the saved recording information and use case attribute information.

5. The automatic testing method of the simulator according to claim 4, characterized in that: The step S03 further includes: Perform format verification and temporary storage on the acquired recording information; In the step S04, the saving of the recording information includes: The recorded information that passes the format verification is saved.

6. The automatic testing method of a simulator according to claim 1, characterized in that: Before step S10, the method further includes: Receive the connection information input by the user, and establish a TCP connection with the simulator to be tested according to the connection information.

7. The automatic testing method of a simulator according to claim 1, characterized in that: Also includes: Receiving a simulator control instruction input by a user, wherein the simulator control instruction includes: a start instruction, a stop instruction, and a restart instruction; The simulator control instruction is sent to the simulator to control the simulator accordingly.

8. The automatic testing method of a simulator according to claim 1, characterized in that: Also includes: Output the parsed operation instructions and mark the currently executed operation instructions; Output the response information of the currently executed operation instruction.

9. The automatic testing method of a simulator according to claim 1, characterized in that: Before step S10, the method further includes: Receive login information input by the user and verify the user's identity based on the login information; The test result is associated with the user identity and saved.

10. An automatic test system for a simulator, comprising a processor and a memory storing a computer program, characterized in that: When executing the computer program, the processor implements the steps of the automatic testing method for the simulator according to any one of claims 1 to 9.