An interlocking display system and method based on automatic testing

By designing an interlocking control and display system based on automatic testing, and using simulation and screen recording software to simulate and record the operation of the operator display, the problem of low efficiency in traditional testing methods is solved, and efficient and reliable automatic testing is achieved.

CN120371620BActive Publication Date: 2025-11-21CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510854676.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-11-21
Estimated Expiration
2045-06-25

AI Technical Summary

Technical Problem

Existing computer interlocking systems have vulnerabilities and defects during development. Traditional manual testing methods are time-consuming, labor-intensive, and experience-dependent, resulting in low testing efficiency and low reliability. Existing automated testing methods are highly complex and rely on manual intervention.

Method used

Design an interlocking control and display system based on automatic testing, including an interaction layer, a business layer, an interface layer, a data layer, and a support layer. Simulation software and screen recording software are used to simulate and record the operation of the display device, thereby reducing testing complexity and improving testing efficiency and reliability.

Benefits of technology

It simplifies test case input, reduces failure rate, improves testing efficiency and accuracy, and ensures test reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371620B_ABST
    Figure CN120371620B_ABST
Patent Text Reader

Abstract

The application relates to the rail transit technical field and discloses an interlocking display control system and method based on automatic testing, which comprises an interaction layer, a business layer, an interface layer, a data layer and a support layer, wherein the business layer comprises a test execution module, the test execution module is used for sending a test execution command to the support layer based on a test step in an experiment table; the support layer comprises an operator simulation module and a screen recording module, the operator simulation module comprises simulation simulation software and a platform operation terminal, and the screen recording module comprises screen recording software; all simulation operations of the operation display machine are realized by setting different system layers and arranging the operator simulation module and the screen recording module in the support layer, the test failure rate is reduced, the test efficiency is improved, in addition, the automatic test process is recorded through the screen recording software, and the test accuracy and reliability are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of rail transit technology, and specifically relates to an interlocking control and display system and method based on automatic testing. Background Technology

[0002] Existing computer interlocking systems are used to achieve real-time logic control of signals, switches, and track circuits within stations. They have high fail-safe requirements, ensuring safe train operation and improving transportation efficiency. However, during the development of computer interlocking software, some vulnerabilities and defects inevitably arise. Therefore, to meet the reliability and safety requirements of interlocking software, comprehensive and standardized testing must be conducted before deployment. Traditional manual testing methods are time-consuming, labor-intensive, and tedious, heavily reliant on the experience level of the testers, resulting in low testing efficiency and an inability to guarantee test reliability.

[0003] Automated testing systems primarily aim to overcome human limitations and achieve automation, gradually realizing the automation of testing operations and result judgment. Furthermore, the concept of automation continues to expand, giving rise to functions such as automatically recording test results, automatically generating test reports, and automatically executing regression tests. Currently, the mainstream automated testing methods fall into two categories: model-driven automated testing systems and script-driven automated testing systems. Model-driven automated testing systems generate test cases through interlocking software models. Script-driven automated testing systems generate test cases through test scripts. Both methods suffer from high complexity and reliance on human intervention for reliability. Summary of the Invention

[0004] To address the aforementioned problems, the present invention aims to provide an interlocking control and display system based on automatic testing, comprising an interaction layer, a business layer, an interface layer, a data layer, and a support layer. The interaction layer, business layer, interface layer, and data layer are respectively connected to the support layer.

[0005] The business layer includes a test execution module, which is used to send test execution commands to the support layer based on the test steps in the experimental table.

[0006] The support layer includes an operator simulation module and a screen recording module. The operator simulation module includes simulation software and a platform operation terminal. The screen recording module includes screen recording software. The simulation software and the screen recording software are respectively connected to the platform operation terminal via a communication transmission protocol.

[0007] The simulation software is used to start the interlocking system and the operator display system after receiving the test execution command, obtain the operation command or recognition command of the platform operation terminal, and perform simulated operation on the operator display based on the operation command or recognize the display interface of the operator display based on the recognition command.

[0008] The platform operation terminal is used to read the configuration files of the operator display system and the screen recording software after the operator simulation module starts the interlocking system and the operator display system, and to perform automatic testing after the operator simulation software successfully completes the initialization operation.

[0009] Screen recording software is used to acquire video recording commands or video recording stop commands from the platform's operating terminal during automated testing, and to record the simulated operation and / or display process of the operating display device based on the acquired video recording commands.

[0010] Furthermore, the operator simulation module also includes interlocking host software, and the platform operation terminal is equipped with operation display software, wherein...

[0011] Simulation software is also used to forward received test execution commands to the operator display software during automated testing;

[0012] The operator software is used to send test execution commands to the interlocking host software;

[0013] The interlocking host software is used to execute test commands and send equipment status information to the simulation software through the operator display software.

[0014] Furthermore, the operating computer software is also used to request an automatic test flag through the interface function of the simulation software to determine whether it is in automatic test mode.

[0015] The automatic test flag is the return value of the simulation software. If the simulation software returns true, it indicates that the system is currently in automatic test mode.

[0016] Furthermore, the longest length of the test execution command is a preset number of bytes, where two bytes represent a button state;

[0017] The device status information transmitted from the operating computer software to the simulation software is of fixed length, and the content of the device status information includes a header and several device information packets; wherein...

[0018] The header content is the length of the entire data packet;

[0019] Each of the several device information packets contains data type, data length, and data content.

[0020] Furthermore, the interaction layer includes a user interface module for inputting file uploads or downloads, responding to mouse operations, and / or text input.

[0021] Furthermore, the business layer also includes an initialization module, an input verification module, a form generation module, and a video playback module;

[0022] The initialization module is used to read the operator display configuration file, system configuration file and / or experimental data of automatic test when the interlocking system and the operator display system are started.

[0023] The input review module is used to read input files from the interface module and review the content of the input files;

[0024] The table generation module is used to generate experimental tables and upload them to the interface layer;

[0025] The video playback module is used to play back the video from the screen recording file of the display interface of the operating instrument during the automatic test.

[0026] Furthermore, the interface layer includes a file read / write module, a communication protocol module, a file transfer protocol module, a database module, and a log recording module;

[0027] The file read / write module is used to read and save input files and save experimental tables;

[0028] The communication protocol module is used to implement the communication connection between the interface layer and the support layer.

[0029] The file transfer protocol module is used to upload and download files and save screen recording files;

[0030] The database module is used to store experimental tables and update and query experimental data;

[0031] The logging module is used to record the automatic testing process and results of the operating display machine.

[0032] Furthermore, the data layer is used to provide static data configuration and dynamic data recording, wherein,

[0033] Static data configuration includes the configuration file for the operator's control system and the basic configuration for the interlocking system;

[0034] Dynamic data recording includes database entry, log recording, and video recording.

[0035] Furthermore, an interface protocol is set between the test execution module and the operator simulation module. The test execution module is also used to send test commands to the operator simulation module to set the device status, and to receive operation results or inspection results from the operator simulation module.

[0036] Another object of the present invention is to provide an interlocking control and display method based on automatic testing, comprising,

[0037] Generate test execution commands based on the test steps in the experimental table;

[0038] After receiving the test execution command, the simulation software starts the interlocking system and the operation display system, performs simulation preparation and initialization operations, and sends an initialization success flag to the platform operation terminal after the initialization operation is successful.

[0039] After the platform operation terminal starts the interlocking system and the operation display system in the simulation software, it reads the configuration file of the operation display system and the configuration file of the screen recording software, and performs automatic testing after the simulation software successfully completes the initialization operation.

[0040] The screen recording software prepares for recording, obtains the video recording command or video recording stop command from the platform operation terminal after the automatic test begins, and records the simulated operation and / or display process of the operation display device based on the obtained video recording command.

[0041] Furthermore, it also includes establishing communication protocol connections between the simulation software and the screen recording software and the platform operation terminal.

[0042] Furthermore, the platform operating terminal reads the configuration files of the operating display system and the screen recording software, including...

[0043] Based on the configuration file of the operator's display system, calculate the connection relationship between the section, turnout, and signal;

[0044] Based on the screen recording software's configuration file, obtain screen recording and file transfer protocol parameters.

[0045] Furthermore, the simulation software performs simulation preparation, including:

[0046] The simulation software sends a request for operation display graphic information to the platform operation terminal. The operation display graphic information includes the device name and coordinates.

[0047] The platform's operating terminal feeds back graphical information from the operating display machine to the simulation software;

[0048] After completing the simulation preparation, the simulation software sends a simulation preparation completion message to the platform operation terminal.

[0049] After receiving the simulation preparation completion message, the platform operation terminal sends a system initialization command to the simulation software. The system initialization command includes power-on unlocking and starting the simulation.

[0050] Furthermore, the preparation process for screen recording software includes:

[0051] The screen recording software sends a request for screen recording parameters to the platform's operating terminal;

[0052] The platform's operating terminal sends a request to save the video to the screen recording software using FTP parameters, including the path, username, password, and port.

[0053] Furthermore, the platform's operating terminal begins to perform automated tests, including...

[0054] The platform's operating terminal sends operation information to the simulation software;

[0055] The simulation software operates based on the operation information and sends a success signal to the platform operation terminal after the operation is successful.

[0056] After receiving the operation success flag, the platform operation terminal sends a check message to the simulation software;

[0057] The simulation software feeds back the inspection results to the platform operation terminal, where the inspection results are the equipment status;

[0058] The platform's operating terminal determines whether the inspection results meet expectations.

[0059] Furthermore, the operational information includes operational commands or identification commands, and the simulation software performs operations based on this operational information.

[0060] It acquires operation commands or recognition commands from the platform operation terminal, and performs simulated operation on the operation display device based on the operation commands or recognizes the display interface of the operation display device based on the recognition commands.

[0061] Furthermore, the platform's operating terminal begins to perform automated tests, which also include:

[0062] If it is necessary to reset the interlocking environment, the platform operation terminal sends a reset command to the simulation software;

[0063] The simulation software then restarts the interlocking and operation display processes, and re-prepares the operator simulation and initializes the interlocking system.

[0064] Furthermore, the platform operation terminal is equipped with operation display software, and the method further includes the operation display software interacting with the interlocking host software and the simulation software, including,

[0065] During the automated testing process, the simulation software forwards the received test execution commands to the operator display software;

[0066] The operator software sends the test execution command to the interlocking host software;

[0067] The interlocking host software executes test commands and sends equipment status information to the simulation software via the operator display software.

[0068] Furthermore, the longest length of the test execution command is a preset number of bytes, where two bytes represent a button state;

[0069] The device status information transmitted from the operating computer software to the simulation software is of fixed length, and the content of the device status information includes a header and several device information packets; wherein...

[0070] The header content is the length of the entire data packet;

[0071] Each of the several device information packets contains data type, data length, and data content.

[0072] Furthermore, it also includes determining whether to enter automatic testing mode, specifically including:

[0073] The operating computer software requests an automatic test flag through the interface function of the simulation software. The automatic test flag is the return value of the simulation software. If the return value of the simulation software is true, it indicates that the computer is currently in automatic test mode.

[0074] The control and display system of this invention achieves the simulation operation of the operator display machine by setting up different system layers and placing the operator simulation module and screen recording module in the support layer. Thus, the control and display system can complete all control and display simulation operations of the operator display machine. Compared with the traditional method of using model-driven or script-driven methods to realize case input, it completes the case input more simply and efficiently, reduces the test failure rate, and improves the test efficiency. In addition, the automatic test process is recorded by screen recording software, which ensures the accuracy and reliability of the test.

[0075] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description

[0076] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0077] Figure 1A schematic diagram of an interlocking control and display system based on automatic testing is shown in an embodiment of the present invention;

[0078] Figure 2 This invention illustrates an internal interaction diagram of an operation simulation module according to an embodiment of the invention.

[0079] Figure 3 A schematic flowchart of an interlocking control and display method based on automatic testing is shown in an embodiment of the present invention;

[0080] Figure 4 A schematic flowchart of an interlocking control and display method based on automatic testing is shown in an embodiment of the present invention. Detailed Implementation

[0081] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0082] like Figure 1As shown in the figure, this embodiment of the invention introduces an interlocking control and display system based on automatic testing. The system includes an interaction layer, a business layer, an interface layer, a data layer, and a support layer. The interaction layer, business layer, interface layer, and data layer are respectively connected to the support layer. The business layer includes a test execution module, which is used to send test execution commands to the support layer based on the test steps in the test table. The support layer includes an operator simulation module and a screen recording module. The operator simulation module includes simulation software and a platform operation terminal. The screen recording module includes screen recording software. The simulation software and screen recording software are respectively connected to the platform operation terminal via a communication transmission protocol. The simulation software is used to receive test commands and then execute them. After executing the command, the system starts the interlocking system and the operator display system, acquires the operation commands or identification commands from the platform operator terminal, and performs simulated operation on the operator display system based on the operation commands or identifies the display interface of the operator display system based on the identification commands. The platform operator terminal is used to read the configuration files of the operator display system and the screen recording software after the operator simulation module starts the interlocking system and the operator display system, and to perform automatic testing after the simulation software successfully initializes. The screen recording software is used to acquire the video recording command or video recording stop command from the platform operator terminal during the automatic testing process, and to record the simulated operation and / or display process of the operator display system based on the acquired video recording command. Through the above system, all control and display simulation operations of the operator display system can be completed. Compared with the traditional method of using model-driven or script-driven methods to implement case input, this method completes the case input more simply and efficiently, reduces the test failure rate, improves test efficiency, and ensures the accuracy and reliability of automatic testing by recording the automatic testing process through the screen recording software.

[0083] like Figure 1 As shown, the interaction layer includes an interface module, which is used for inputting file uploads or downloads, responding to mouse operations, and / or text input, thereby realizing human-computer interaction functions and providing support for subsequent auxiliary review of input data, automatic generation of test forms, and automatic testing of simulation experiments.

[0084] The business layer also includes an initialization module, an input verification module, a table generation module, and a video playback module. The initialization module is used to read the operator display configuration file, system configuration file, and / or experimental data of automatic testing when the interlocking control display system starts up, which is a prerequisite for executing subsequent automatic testing tasks. The input verification module is used to read input files from the interface module and verify the contents of the input files. Preferably, the input files are in Excel format, but it is not limited to this, and other formats are also applicable to this invention. Furthermore, the input review module includes functions such as Excel reading and writing, database updating, and log recording. It reviews the contents of input file table cells according to agreed-upon rules (i.e., the test case table must include the following fields: test ID, operation type, device name, expected status, and remarks). Cell contents can be modified and saved in the interface module, and can be exported and saved as an Excel file. The table generation module generates experimental tables and uploads them to the interface layer. This module includes database query, update, and log recording functions. During automated testing, after reading the input data stored in the database, it generates experimental tables of the tested object and test steps according to agreed-upon rules (i.e., the basic test case information includes test case ID, test scenario, tested object, and priority; the basic test case information is converted into test step configuration, including: step ID, associated test case ID, operation type, target device, parameters, and expected results). The generated experimental tables are saved to the database module. The video playback module is used to play back the video from the screen recording file of the operating display interface during automated testing. The video playback module includes FTP (File Transfer Protocol) download and log recording functions. It can read video files saved in the FTP module, embed a video player for playback, and support dragging the video progress bar, thereby effectively realizing the playback of the screen recording files of the test process operation display.

[0085] The interface layer includes a file read / write module, a communication protocol module, a file transfer protocol module, a database module, and a log recording module. Among them, the file read / write module enables the interlocking control and display system to read and save Excel files, and is used to read and save input files and experimental tables, providing support for reading and saving input files and saving experimental table files.

[0086] The communication protocol module is a TCP (Transmission Control Protocol) module, which is used to realize the communication connection between the interface layer and the support layer. Furthermore, it realizes the function of internal and external TCP communication of the interlocking control and display system, providing support for automatic testing.

[0087] The file transfer protocol module is an FTP (File Transfer Protocol) module used to upload and download input files, save screen recording files, and provide support for video playback in screen recording files on the operating display interface.

[0088] The database module is used to store input files, experimental tables, and update and query experimental data, enabling the updating and querying of experimental data, and providing support for the initialization module, input verification module, table generation module, and test execution module.

[0089] The logging module records the process and results of automated testing, specifically the operation, calculation process, and results of the interlocking control and display system. It provides support for the initialization module, input verification module, form generation module, test execution module, video playback module, operator simulation module, and screen recording module.

[0090] The data layer is used to provide static data configuration and dynamic data recording. Static data configuration includes the operator display configuration file and the basic configuration of the interlocking control and display system, while dynamic data recording includes database entry, log recording, and video recording.

[0091] like Figure 2 As shown, the operator simulation module also includes interlocking host software, and the platform operation terminal is equipped with operation display software. The simulation software forwards received test execution commands to the operation display software during automatic testing; the operation display software sends the test execution commands to the interlocking host software; the interlocking host software executes the test execution commands and sends equipment status information to the simulation software via the operation display software. Furthermore, the operation display software also requests an automatic test flag through the simulation software's interface function to determine whether it is in automatic testing mode. The automatic test flag is a return value from the simulation software; if the simulation software returns true, it indicates that it is currently in automatic testing mode.

[0092] In this embodiment of the invention, the longest length of the test execution command is a preset number of bytes, wherein two bytes represent one button state; the command format for one button state is shown in Table 1:

[0093] Table 1 Command format for a button state

[0094]

[0095] In Table 1, Bits 0 to 7 represent the button status, with 0 indicating the button is released and 1 indicating it is pressed. Furthermore, the preset number of bytes is 20 bytes, representing the longest possible test command of 20 bytes, but this is not a limitation; other numbers of bytes are also applicable to this invention.

[0096] Furthermore, the device status information transmitted from the operating computer software to the simulation software is of fixed length. The content of the device status information includes a header and several device information packets. The header content is the length of the entire data packet (i.e., the entire data packet including the device status information content), including the header. Preferably, the header length can be, but is not limited to, 4 bytes (big-endian). Each device information packet contains a data type, a data length, and data content. The data type can be, but is not limited to, occupying 1 byte, and the data length can be, but is not limited to, occupying 2 bytes (big-endian). The data content length is determined by the number of devices in the station. However, this is not a limitation; the data type, data length, etc., can all occupy 2 bytes, etc., and this is also applicable to the present invention.

[0097] In this embodiment of the invention, according to different device types, each device packet is divided into a small device packet. Each small device packet has its own data length and data content. Thus, the length of each device data packet includes 1 byte of packet type, 2 bytes of device packet length, and device information content length. The device information content length is in bytes, but is not limited to this. Packet type and device packet length can also be 2 or 4 bytes, etc., which are also applicable to this invention.

[0098] In this embodiment of the invention, unless otherwise specified in the format column of the data transmitted from the operating computer software to the simulation software, the device information content in each device data packet represents one device information with 1 bit.

[0099] An interface protocol is established between the test execution module and the operator simulation module. The test execution module is also used to send test execution commands to the operator simulation module to set the device status, and to receive operation results or inspection results from the operator simulation module. The interface protocol is shown in Table 2.

[0100] Table 2 Interface Protocol

[0101]

[0102] like Figure 4As shown in the illustration, this embodiment of the invention also introduces an interlocking control and display method based on automatic testing. Applying the system described above, the method includes: first, generating a test execution command based on the test steps in the experimental table; second, after receiving the test execution command, the simulation software starts the interlocking system and the operating display system, performs simulation preparation and initialization operations, and sends an initialization success flag to the platform operating terminal after successful initialization; then, after the simulation software starts the interlocking system and the operating display system, the platform operating terminal reads the configuration file of the operating display system and the configuration file of the screen recording software, and performs automatic testing after the simulation software successfully completes the initialization operation; finally, the screen recording software prepares for recording, obtains a video recording command or a video recording stop command from the platform operating terminal after the automatic test begins, and records the simulated operation and / or display process of the operating display based on the obtained video recording command.

[0103] In this embodiment of the invention, the operation representation and method based on automatic testing are implemented through three parts: simulation software, screen recording software, and a platform operation terminal. The simulation software is deployed in the interlocking / operation representation system, responsible for starting other software within the host, simulating mouse operation of the operation representation system, and image recognition of the operation representation system's display interface. It communicates with the platform operation terminal via TCP protocol to obtain operation / recognition commands. The screen recording software is deployed in the interlocking / operation representation system, responsible for recording the operation and display process of the operation representation system, recording video data of the testing process, and communicating with the platform operation terminal via TCP protocol to obtain video recording / stop commands. Specifically, as follows... Figure 3 As shown:

[0104] Step S1: The simulation software starts the interlocking and operation indicator system. The platform operation terminal reads the configuration file of the operation indicator and the configuration file of the screen recording software. The configuration file of the operation indicator system is used to calculate the connection relationship of the section, turnout and signal; the configuration file of the screen recording software is used to obtain the screen recording and file transmission protocol parameters.

[0105] Step S2: The operator simulation software and screen recording software establish a TCP connection with the platform operation terminal respectively;

[0106] Step S3: The operator simulation software prepares for simulation. First, the simulation software sends a request for operator display graphics information to the platform operation terminal. This graphics information includes the device name and coordinates. Second, the platform operation terminal sends the operator display graphics information back to the simulation software. Then, after completing simulation preparation, the simulation software sends a simulation preparation completion message to the platform operation terminal. Finally, upon receiving the simulation preparation completion message, the platform operation terminal sends a system initialization command to the simulation software. This system initialization command includes power-on unlocking and starting the simulation. The screen recording software prepares for recording. This includes first, the screen recording software sending a request for recording parameters to the platform operation terminal. Then, the platform operation terminal sends a request for FTP video saving parameters to the screen recording software. These FTP parameters include the path, username, password, and port.

[0107] Step S4: The simulation software performs initialization operations and sends an initialization success flag to the platform operation terminal;

[0108] Step S5: The platform operation terminal starts automatic testing and sends a start recording command to the screen recording software, and the screen recording software starts recording.

[0109] Step S6: The platform operation terminal sends operation information to the simulation software; the operation information includes operation commands or identification commands.

[0110] Step S7: The simulation software performs operations based on the operation information and sends a success signal to the platform operation terminal upon successful operation. Further, the simulation software's operation based on the operation information includes acquiring operation commands or recognition commands from the platform operation terminal, and simulating operations on the operation display device based on the operation commands or recognizing the display interface of the operation display device based on the recognition commands.

[0111] Step S8: After receiving the operation success flag, the platform operation terminal sends inspection information to the simulation software; the inspection information includes the device name, operation, etc.

[0112] Step S9: The simulation software feeds back the inspection results to the platform operation terminal, where the inspection results are the equipment status;

[0113] Step S10: The platform operation terminal determines whether the inspection results meet expectations.

[0114] Step S11: If it is necessary to reset the interlocking environment, the platform operation terminal sends a reset command to the simulation software.

[0115] In step S12, the simulation software restarts the interlocking and operation display process, and re-executes steps S3 and S4.

[0116] Step S13: After the platform operation terminal stops the automatic test, it sends a stop recording command to the screen recording software.

[0117] Step S14: The screen recording software stops recording, saves the file, and uploads it to FTP.

[0118] In this embodiment of the invention, the platform operation terminal is equipped with operation display software, which is the operation display system, and the interlocking system is the interlocking host software. The operation display software, interlocking host software, and simulation software are all housed in the operator simulation module. For example... Figure 2 As shown, the data flow of the operator simulation module is as follows:

[0119] First, during the automatic testing process, the simulation software forwards the received test execution commands to the operating display software;

[0120] Then, the operator software sends the test execution command to the interlocking host software;

[0121] Finally, the interlocking host software executes the test execution command and sends the equipment status information to the simulation software through the operation display software.

[0122] In this embodiment of the invention, the longest length of the test execution command is a preset number of bytes, wherein two bytes represent a button state;

[0123] The device status information transmitted from the operating computer software to the simulation software is of fixed length, and the content of the device status information includes a header and several device information packets; wherein...

[0124] The header content is the length of the entire data packet;

[0125] Each of the several device information packets contains data type, data length, and data content.

[0126] In this embodiment of the invention, the system further includes determining whether to enter the automatic test mode by operating the computer system. This includes the computer software requesting an automatic test flag through the interface function of the simulation software. The automatic test flag is the return value of the simulation software. If the return value of the simulation software is true, it indicates that the system is currently in the automatic test mode.

[0127] The above method enables automatic, efficient, and comprehensive testing of interlocking software and / or operating display devices to ensure their reliability and security. Compared with traditional methods that use model-driven or script-driven approaches to input test cases, this method provides a simpler and more efficient way to input test cases, reducing the failure rate and improving testing efficiency.

[0128] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An interlocking control and display system based on automatic testing, characterized in that, It can complete all control and display simulation operations of the operating display device, including an interaction layer, a service layer, an interface layer, a data layer, and a support layer. The interaction layer, service layer, interface layer, and data layer are respectively connected to the support layer. The data layer is used to provide static data configuration, which includes the configuration file of the operation display system and the basic configuration of the interlocking system. The business layer includes a table generation module and a test execution module; The table generation module is used to generate experimental tables and upload them to the interface layer. This module includes database query, update, and log recording functions. During automated testing, it reads the input data stored in the database and generates experimental tables of the tested object and test steps according to agreed-upon rules. The generated experimental tables are then saved to the database module. The agreed-upon rules include specifying that basic test case information includes test case ID, test scenario, tested object, and priority; and converting the basic test case information into test step configuration, including: step ID, associated test case ID, operation type, target device, parameters, and expected results. The interaction layer includes mouse operation responses and / or text input; The test execution module is used to send test execution commands to the support layer based on the test steps in the experimental table; The support layer includes an operator simulation module and a screen recording module. The operator simulation module includes simulation software, a platform operation terminal, and interlocking host software. The platform operation terminal is equipped with operation display software. The screen recording module includes screen recording software. The simulation software and the screen recording software are connected to the platform operation terminal via a communication transmission protocol. The simulation software is used to start the interlocking system and the operator display system after receiving the test execution command, obtain the operation command or recognition command of the platform operation terminal, and simulate mouse operation to perform simulated operation on the operator display machine based on the operation command or perform image recognition on the display interface of the operator display machine based on the recognition command; wherein, the operator display machine software is the operator display machine system, and the interlocking system is the interlocking host software; The platform operation terminal is used to read the configuration files of the operator display system and the screen recording software after the operator simulation module starts the interlocking system and the operator display system, and to perform automatic testing after the operator simulation software successfully completes the initialization operation. The platform's operating terminal reads the configuration files of the operating display system and the screen recording software, including: Based on the configuration file of the operator's display system, calculate the connection relationship between the section, turnout, and signal; Based on the screen recording software's configuration file, obtain screen recording and file transfer protocol parameters; Screen recording software is used to acquire video recording commands or video recording stop commands from the platform operation terminal during automated testing, and to record the simulated operation and / or display process of the operation display device based on the acquired video recording commands; The operating system software is used to request an automatic test flag through the interface functions of the simulation software to determine whether it is in automatic test mode. The automatic test flag is the return value of the simulation software. If the simulation software returns true, it indicates that the system is currently in automatic test mode.

2. The interlocking control and display system based on automatic testing according to claim 1, characterized in that, The operator simulation module also includes interlocking host software, and the platform operation terminal is equipped with operation display software. Simulation software is also used to forward received test execution commands to the operator display software during automated testing; The operator software is used to send test execution commands to the interlocking host software; The interlocking host software is used to execute test commands and send equipment status information to the simulation software through the operator display software.

3. The interlocking control and display system based on automatic testing according to claim 2, characterized in that, The maximum length of the test execution command is a preset number of bytes, where two bytes represent a button state; The device status information transmitted from the operating computer software to the simulation software is of fixed length, and the content of the device status information includes a header and several device information packets; wherein... The header content is the length of the entire data packet; Each of the several device information packets contains data type, data length, and data content.

4. The automatic testing interlocking control and display system according to any one of claims 1-3, characterized in that, The interaction layer also includes a user interface module for inputting file uploads or downloads.

5. The automatic testing interlocking control and display system according to claim 4, characterized in that, The business layer also includes an initialization module, an input verification module, and a video playback module; The initialization module is used to read the operator display configuration file, system configuration file and / or experimental data of automatic test when the interlocking system and the operator display system are started. The input review module is used to read input files from the interface module and review the content of the input files; The video playback module is used to play back the video from the screen recording file of the display interface of the operating instrument during the automatic test.

6. The automatic testing interlocking control and display system according to claim 4, characterized in that, The interface layer includes a file read / write module, a communication protocol module, a file transfer protocol module, a database module, and a log recording module; The file read / write module is used to read and save input files and save experimental tables; The communication protocol module is used to implement the communication connection between the interface layer and the support layer. The file transfer protocol module is used to upload and download files and save screen recording files; The database module is used to store experimental tables and update and query experimental data; The logging module is used to record the automatic testing process and results of the operating display machine.

7. The automatic testing interlocking control and display system according to claim 6, characterized in that, The data layer is also used to provide dynamic data records, wherein... Dynamic data recording includes database entry, log recording, and video recording.

8. The interlocking control and display system based on automatic testing according to claim 1, characterized in that, An interface protocol is set up between the test execution module and the operator simulation module. The test execution module is also used to send test commands to the operator simulation module to set the device status, and to receive operation results or inspection results from the operator simulation module.

9. A method for interlocking control and display based on automatic testing, characterized in that, It can complete all control and display simulation operations of the operator display device, including the operator simulation module which includes simulation software, platform operation terminal and interlock host software, and the platform operation terminal is equipped with operator display device software; The data layer is used to provide static data configuration, which includes the configuration file of the operator's control system and the basic configuration of the interlocking system. The table generation module generates experimental tables and uploads them to the interface layer. This module includes database query, update, and log recording functions. During automated testing, it reads the input data stored in the database and generates experimental tables of the tested object and test steps according to agreed-upon rules. The generated experimental tables are then saved to the database module. The agreed-upon rules include specifying that basic test case information includes test case ID, test scenario, tested object, and priority; and converting the basic test case information into test step configuration, including: step ID, associated test case ID, operation type, target device, parameters, and expected results. The interaction layer includes mouse operation responses and / or text input; Generate test execution commands based on the test steps in the experimental table; After receiving the test execution command, the simulation software starts the interlocking system and the operator display system, performs simulation preparation and initialization operations, and sends an initialization success flag to the platform operation terminal after the initialization operation is successful; among them, the operator display software is the operator display system, and the interlocking system is the interlocking host software; After the platform operation terminal starts the interlocking system and the operation display system in the simulation software, it reads the configuration file of the operation display system and the configuration file of the screen recording software, and performs automatic testing after the simulation software successfully completes the initialization operation. The platform's operating terminal reads the configuration files of the operating display system and the screen recording software, including: Based on the configuration file of the operator's display system, calculate the connection relationship between the section, turnout, and signal; Based on the screen recording software's configuration file, obtain screen recording and file transfer protocol parameters; The screen recording software prepares for recording, obtains the video recording command or video recording stop command from the platform operation terminal after the automatic test starts, and records the simulated operation and / or display process of the operation display device based on the obtained video recording command; Determining whether to enter automatic testing mode includes, specifically, The operating computer software requests an automatic test flag through the interface function of the simulation software. The automatic test flag is the return value of the simulation software. If the return value of the simulation software is true, it indicates that the current mode is automatic test mode. The simulation software acquires operation commands or recognition commands from the platform's operating terminal, and performs simulated mouse operations on the operating display device based on the operation commands, or performs image recognition on the display interface of the operating display device based on the recognition commands.

10. The interlocking control and display method based on automatic testing according to claim 9, characterized in that, It also includes establishing communication protocol connections between simulation software and screen recording software and the platform's operating terminal.

11. The interlocking control and display method based on automatic testing according to claim 9, characterized in that, Simulation software preparation includes... The simulation software sends a request for operation display graphic information to the platform operation terminal. The operation display graphic information includes the device name and coordinates. The platform's operating terminal feeds back graphical information from the operating display machine to the simulation software; After completing the simulation preparation, the simulation software sends a simulation preparation completion message to the platform operation terminal. After receiving the simulation preparation completion message, the platform operation terminal sends a system initialization command to the simulation software. The system initialization command includes power-on unlocking and starting the simulation.

12. The interlocking control and display method based on automatic testing according to claim 9, characterized in that, Preparations for screen recording software include: The screen recording software sends a request for screen recording parameters to the platform's operating terminal; The platform's operating terminal sends a request to save the video to the screen recording software using FTP parameters, including the path, username, password, and port.

13. The interlocking control and display method based on automatic testing according to any one of claims 9-12, characterized in that, The platform's operating terminal begins automatic testing, including... The platform's operating terminal sends operation information to the simulation software; The simulation software operates based on the operation information and sends a success signal to the platform operation terminal after the operation is successful. After receiving the operation success flag, the platform operation terminal sends a check message to the simulation software; The simulation software feeds back the inspection results to the platform operation terminal, where the inspection results are the equipment status; The platform's operating terminal determines whether the inspection results meet expectations.

14. The interlocking control and display method based on automatic testing according to claim 13, characterized in that, The platform's operating terminal also begins to perform automated tests, including: If it is necessary to reset the interlocking environment, the platform operation terminal sends a reset command to the simulation software; The simulation software then restarts the interlocking and operation display processes, and re-prepares the operator simulation and initializes the interlocking system.

15. The interlocking control and display method based on automatic testing according to claim 14, characterized in that, The platform operation terminal is equipped with operation display software. The method further includes the operation display software interacting with the interlocking host software and the simulation software, including... During the automated testing process, the simulation software forwards the received test execution commands to the operator display software; The operator software sends the test execution command to the interlocking host software; The interlocking host software executes test commands and sends equipment status information to the simulation software via the operator display software.

16. The interlocking control and display method based on automatic testing according to claim 15, characterized in that, The maximum length of the test execution command is a preset number of bytes, where two bytes represent a button state; The device status information transmitted from the operating computer software to the simulation software is of fixed length, and the content of the device status information includes a header and several device information packets; wherein... The header content is the length of the entire data packet; Each of the several device information packets contains data type, data length, and data content.

Citation Information

Patent Citations

  • Computer interlocking performance test system based on operation scene

    CN112416715A

  • Integrated train control interlocking integrated equipment comprehensive simulation test system

    CN119987234A