Interlocking control display system and method based on automatic test
By designing an interlocking control display system based on automatic testing, and using simulation software and screen recording software to achieve automated testing, the problem of inefficiency of traditional manual testing methods is solved, and the reliability and efficiency of testing are improved.
Patent Information
- Application Number
- CN202510854676.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-06-25
AI Technical Summary
The existing computer interlocking systems have vulnerabilities and flaws in the development process. The traditional manual testing methods are time-consuming and labor-intensive and rely on experience, resulting in inefficient and unreliable testing.
Design an interlocking control display system based on automatic testing, including the interaction layer, business layer, interface layer, data layer and support layer. Automatic testing is realized through simulation simulation software and screen recording software, reducing manual intervention and improving testing efficiency and accuracy.
The test process is simplified, the failure rate is reduced, the testing efficiency and accuracy are improved, and the testing reliability is ensured.
Smart Images

Figure CN120371620A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of rail transit, and particularly relates to an interlocking control and display system and method based on automatic testing. Background Art
[0002] The existing computer interlocking system is used to realize the real-time logical control of signal lights, switches and track circuits in the station. It has high requirements for fault-safety, and can ensure the safety of train operation in the station and improve the transportation efficiency. However, during the software development process of computer interlocking, some loopholes and defects will inevitably occur. Therefore, in order to meet the reliability and safety requirements of the interlocking software, before it is put into use, it needs to be comprehensively and standardizedly tested. Among them, the traditional manual testing method is time-consuming, laborious and very boring, and it also depends strongly on the experience level of the testers, resulting in low testing efficiency and unable to guarantee the testing credibility.
[0003] The automatic testing system aims to overcome human factor defects and achieve "automation", and gradually realizes the "automation" of testing operations and the "automation" of result determination; and continuously extends on the concept of "automation", deriving functions such as automatically recording test results, automatically generating test reports, and automatically executing regression tests. At present, the mainstream automatic testing methods are divided into two categories. One is the model-driven automatic testing system, and the other is the script-driven automatic testing system. The model-driven automatic testing system generates test cases through the interlocking software model. The script-driven automatic testing system generates test cases through test scripts. Both of the above methods have the technical problems of high complexity and credibility depending on manual intervention. Summary of the Invention
[0004] In view of the above problems, the purpose of the present invention is to provide an interlocking control and display system based on automatic testing, including an interaction layer, a service layer, an interface layer, a data layer and a support layer. The interaction layer, the service layer, the interface layer and the data layer are respectively connected to the support layer. Among them, The service layer includes a test execution module, and the test execution module is used to send a test execution command to the support layer based on the test steps in the experimental form; 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 through a communication transmission protocol. Among them, The simulation software is used to start the interlocking system and the operation indication machine system after receiving the test execution command, obtain the operation command or recognition command of the platform operation terminal, and perform simulated operations on the operation indication machine based on the operation command or recognize the display interface of the operation indication machine based on the recognition command; The platform operation terminal is used to read the configuration file of the operation indication machine system and the configuration file of the screen recording software after the operator simulation module starts the interlocking system and the operation indication machine system, and to perform automatic testing after the initialization operation of the operator simulation software is successful; The screen recording software is used to obtain the video recording command or video recording stop command of the platform operation terminal during the automatic testing process, and to record the simulation operation and / or display process of the operation indication machine based on the obtained video recording command.
[0005] Furthermore, the operator simulation module further includes an interlocking host software, and the platform operation terminal is provided with an operation indication machine software, wherein, The simulation software is further used to forward the received test execution command to the operation indication machine software during the automatic testing process; The operation indication machine software is used to send the test execution command to the interlocking host software; The interlocking host software is used to execute the test execution command and send the device status information to the simulation software through the operation indication machine software.
[0006] Furthermore, the operation indication machine software is further used to apply for obtaining an automatic testing flag through the interface function of the simulation software to determine whether it is in the automatic testing mode, wherein, The automatic testing flag is the return value of the simulation software. If the return value of the simulation software is true, it indicates that the current is in the automatic testing mode.
[0007] Furthermore, the maximum length of the test execution command is a preset number of bytes, wherein two bytes represent a button state; The device status information transmitted by the operation indication machine software to the simulation software is of a fixed length. The content of the device status information includes a packet header and several device information packets; wherein, The content of the packet header is the length of the entire data packet; Each device information packet in the several device information packets includes a data type, a data length, and data content.
[0008] Furthermore, the interaction layer includes an interface module for input file upload or download, mouse operation response, and / or text input.
[0009] Furthermore, the service layer further includes an initialization module, an input review module, a form generation module, and a video playback module; The initialization module is used to read the operation indication machine configuration file, the system configuration file, and / or the experimental data of the automatic testing when the interlocking system and the operation indication machine system are started; The input review module is used to read the input file from the interface module and review the content in the input file; The table generation module is used to generate an experiment table and upload it to the interface layer; The video playback module is used to playback the video in the screencast file of the display interface of the operation indication machine during the automatic test.
[0010] Further, the interface layer includes a file reading and writing module, a communication protocol module, a file transfer protocol module, a database module, and a log recording module; The file reading and writing module is used to read and save the input file and save the experiment table; 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 implement file upload, download, and saving of the screencast file; The database module is used to store the experiment table, update, and query experiment data; The log recording module is used to record the automatic test process and results of the operation indication machine.
[0011] Further, the data layer is used to provide static data configuration and dynamic data recording, where, The static data configuration includes the configuration file of the operation indication machine system and the basic configuration of the interlocking system; The dynamic data recording includes database storage, log recording, and video recording.
[0012] Further, an interface protocol is set between the test execution module and the operator simulation module. The test execution module is also used to send a test command for setting the device status to the operator simulation module and receive the operation result or inspection result feedback by the operator simulation module.
[0013] Another object of the present invention is to provide an interlocking control and display method based on automatic test, including, Generate a test execution command based on the test steps in the experiment table; After receiving the test execution command, the simulation software starts the interlocking system and the operation indication machine system, performs simulation preparation and initialization operations, and after the initialization operation is successful, sends the initialization success flag to the platform operation terminal; After the simulation software starts the interlocking system and the operation indication machine system, the platform operation terminal reads the configuration file of the operation indication machine system and the configuration file of the screencast software, and performs an automatic test after the initialization operation of the simulation software is successful; The screen recording software prepares for recording, obtains a video recording command or a video recording stop command of the platform operation terminal after the automatic test starts, and records the simulation operation and / or display process of the operation representation machine based on the obtained video recording command.
[0014] Furthermore, it also includes that the simulation software and the screen recording software respectively establish communication protocol connections with the platform operation terminal.
[0015] Furthermore, the platform operation terminal reads the configuration files of the operation representation machine system and the screen recording software, including: Based on the configuration file of the operation representation machine system, calculate the connection relationships of sections, turnouts, and signal machines; Based on the configuration file of the screen recording software, obtain the screen recording and file transfer protocol parameters.
[0016] Furthermore, the simulation software prepares for simulation, including: The simulation software sends a request for the graphic information of the operation representation machine to the platform operation terminal, and the graphic information of the operation representation machine includes device names and coordinates; The platform operation terminal feeds back the graphic information of the operation representation machine to the simulation software; After the simulation software completes the simulation preparation, it 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, and the system initialization command includes power-on unlocking and starting the simulation.
[0017] Furthermore, the screen recording software prepares for recording, including: The screen recording software sends a request for screen recording parameters to the platform operation terminal; The platform operation terminal feeds back the requested video saving FTP parameters to the screen recording software, and the FTP parameters include path, username, password, and port.
[0018] Furthermore, the platform operation terminal starts the automatic test, including: The platform operation terminal sends operation information to the simulation software; The simulation software performs operations based on the operation information and feeds back an operation success flag to the platform operation terminal after the operation is successful; After receiving the operation success flag, the platform operation terminal sends inspection information to the simulation software; The simulation software feeds back the inspection result to the platform operation terminal, where the inspection result is the device status; The platform operation terminal judges whether the inspection result meets the expectation.
[0019] Further, the operation information includes an operation command or an identification command. The simulation software performs operations based on the operation information, including obtaining the operation command or identification command of the platform operation terminal, and performing simulation operations on the operation display machine based on the operation command or identifying the display interface of the operation display machine based on the identification command.
[0020] Further, the platform operation terminal starting the automatic test further includes 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 machine processes, and re-performs operator simulation preparation and interlocking system initialization.
[0021] Further, the platform operation terminal is provided with operation display machine software. The method further includes the operation display machine software interacting with the interlocking host software and the simulation software respectively, including During the automatic test process, the simulation software forwards the received test execution command to the operation display machine software; The operation display machine software sends the test execution command to the interlocking host software; The interlocking host software executes the test execution command and sends the device status information to the simulation software through the operation display machine software.
[0022] Further, 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 by the operation display machine software to the simulation software is of fixed length. The content of the device status information includes a packet header and several device information packets; where The content of the packet header is the length of the entire data packet; Each of the several device information packets contains a data type, a data length, and data content.
[0023] Further, it also includes judging whether to enter the automatic test mode, specifically including The operation display machine software obtains the 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 is in the automatic test mode.
[0024] The control and display system of the present invention realizes the simulation operation of the operation representation machine by setting different system layers and arranging the operator simulation module and the screen recording module in the support layer. Therefore, all the control and display simulation operations of the operation representation machine can be completed by adopting the above control and display system. Compared with the traditional method of using model-driven or script-driven to implement case input, the case input is completed more simply and efficiently, the test failure rate is reduced, and the test efficiency is improved. In addition, the automatic test process is recorded by the screen recording software, which ensures the accuracy and reliability of the test.
[0025] Other features and advantages of the present invention will be described in the following specification, and in part, will be obvious from the specification, or will be understood by implementing the present invention. The objectives and other advantages of the present invention can be realized and obtained by the structure pointed out in the specification, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0027] Figure 1 FIG. shows a schematic structural diagram of an interlocking control and display system based on automatic testing in an embodiment of the present invention; Figure 2 FIG. shows an internal interaction schematic diagram of an operation simulation module in an embodiment of the present invention; Figure 3 FIG. shows a schematic flowchart of an interlocking control and display method based on automatic testing in an embodiment of the present invention; Figure 4 FIG. shows a schematic flowchart of an interlocking control and display method based on automatic testing in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0029] Such as Figure 1As shown in the figure, an interlocking control and display system based on automatic testing is introduced in an embodiment of the present invention. The system includes an interaction layer, a service layer, an interface layer, a data layer, and a support layer. The interaction layer, the service layer, the interface layer, and the data layer are respectively connected to the support layer. Among them, the service layer includes a test execution module, and the test execution module is used to send a test execution command to the support layer based on the test steps in the experimental form. 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 through a communication transmission protocol. Among them, the simulation software is used to start the interlocking system and the operation indication machine system, obtain the operation command or recognition command of the platform operation terminal, and perform simulated operations on the operation indication machine based on the operation command or recognize the display interface of the operation indication machine based on the recognition command after receiving the test execution command. The platform operation terminal is used to read the configuration file of the operation indication machine system and the configuration file of the screen recording software after the operator simulation module starts the interlocking system and the operation indication machine system, and perform automatic testing after the initialization operation of the simulation software is successful. The screen recording software is used to obtain a video recording command or a video recording stop command of the platform operation terminal during the automatic testing process, and record the simulated operation and / or display process of the operation indication machine based on the obtained video recording command. Through the above system, all control and display simulation operations of the operation indication machine can be completed. Compared with the traditional method of using model-driven or script-driven to implement case input, the case input is completed more simply and efficiently, the test failure rate is reduced, the test efficiency is improved, and the automatic testing process is recorded by the screen recording software, ensuring the accuracy and reliability of the automatic testing.
[0030] As Figure 1 shown, the interaction layer includes an interface module, and the interface module is used for file upload or download input, mouse operation response, and / or text input to implement the human-computer interaction function, and also provides support for the auxiliary review of subsequent input materials, the automatic generation of test forms, and the automatic testing of simulation tests.
[0031] The service layer further includes an initialization module, an input review module, a form generation module, and a video playback module. Among them, the initialization module is used to read the operation display machine configuration file, system configuration file, and / or experimental data for automatic testing when the interlocking control and display system starts up, which is a prerequisite for performing subsequent automatic testing tasks; the input review module is used to read the input file from the interface module and review the content of the input file. Preferably, the input file is an Excel-format input file, but it is not limited to this, and other formats are also applicable to the present invention. Further, the input review module includes functions such as Excel reading and writing, database update, and log recording. It reviews the content of the input file table cells according to the agreed rules (that is, it is stipulated that the test case table contains the following fields: test ID, operation type, device name, expected status, and remarks information). The cell content can be modified and saved in the interface module and can be exported and saved as an Excel file; the form generation module is used to generate an experimental form and upload it to the interface layer. Among them, the form generation module includes database query, update, and log recording functions. After reading the input materials saved in the database during the automatic testing process, it generates an experimental form for the object under test and test steps according to the agreed rules (that is, it is stipulated that the basic information of the test case includes the case ID, test scenario, object under test, and priority; the basic information of the test case is converted into test step configuration, including: step ID, associated case ID, operation type, target device, parameters, and expected result), and the generated experimental form is saved to the database module; the video playback module is used to play back the video in the screen recording file of the operation display machine interface during the automatic testing process. The video playback module includes FTP (File Transfer Protocol) download and log recording functions, can read the video file saved in the FTP module, embed the video player for playback, and supports dragging the video progress bar, thus effectively realizing the playback of the screen recording file of the operation display machine during the testing process.
[0032] The interface layer includes a file reading and writing module, a communication protocol module, a file transfer protocol module, a database module, and a log recording module; among them, the file reading and writing module realizes the functions of the interlocking control and display system to read and save Excel files, and is used to read and save input files and save experimental forms, providing support for the reading and saving of input files and the saving of experimental form files.
[0033] 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. Further, it realizes the functions of internal and external TCP communication within the interlocking control and display system, providing support for the automatic testing of the experiment.
[0034] The file transfer protocol module is the FTP (File Transfer Protocol) module, which is used to implement the upload and download of input files, the saving of screen recording files, and to provide support for the video playback of screen recording files in the operation display machine interface.
[0035] The database module is used to store input files, experimental tables, and update and query experimental data, etc., to implement the update and query of test data, and to provide support for the initialization module, input review module, form generation module, and test execution module.
[0036] The log recording module is used to record the process and results of automatic testing, that is, to implement the recording of the operation of the interlocking control and display system, the calculation process and results. It provides support for the initialization module, input review module, form generation module, test execution module, video playback module, operator simulation module, and screen recording module.
[0037] The data layer is used to provide static data configuration and dynamic data recording. Among them, the static data configuration includes the operation display machine configuration file and the basic configuration of the interlocking control and display system, and the dynamic data recording includes database warehousing, log recording, and video recording, etc.
[0038] As Figure 2 shown, the operator simulation module further includes an interlocking host software, and an operation display machine software is set on the platform operation terminal. Among them, the simulation software is used to forward the received test execution command to the operation display machine software during the automatic testing process; the operation display machine software is used to send the test execution command to the interlocking host software; the interlocking host software is used to execute the test execution command and send the device status information to the simulation software through the operation display machine software. Further, the operation display machine software is also used to apply for obtaining an automatic testing flag through the interface function of the simulation software to determine whether it is in the automatic testing mode. Among them, the automatic testing flag is the return value of the simulation software. If the return value of the simulation software is true, it means that the current is in the automatic testing mode.
[0039] In the embodiment of the present invention, the maximum length of the test execution command is a preset number of bytes, where two bytes represent a button state; the command format of one button state is shown in Table 1: Table 1 Command format of one button state
[0040] In Table 1, Bit0 to Bit7 are filled with the button state, 0 means lifted, and 1 means pressed. Further, the preset number of bytes is 20 bytes, that is, the longest 20 bytes of the test execution command, but not limited to this, and other numbers of bytes are applicable to the present invention.
[0041] Further, the device status information transmitted by the operation representation machine software to the simulation software is of fixed length. The content of the device status information includes a packet header and several device information packets. Among them, the content of the packet header is the length (including the packet header) of the entire data packet (i.e., the entire data packet including the content of the device status information). Preferably, the length of the packet header can be, but is not limited to, 4 bytes (big endian first). Each of the several device information packets contains a data type, a data length, and data content. Among them, the data type can be, but is not limited to, 1 byte, the data length can be, but is not limited to, 2 bytes (big endian first), and the length of the data content is determined by the number of station devices. However, it is not limited to this. The number of bytes occupied by the data type, data length, etc. can also be 2 bytes each, etc., which is also applicable to the present invention.
[0042] In the embodiment of the present invention, according to different device types, it is divided into a device small packet, and each device small packet has its own data length and data content. Thus, the length of each device data packet includes a packet type of 1 byte, a device packet length of 2 bytes, and the length of the device information content. The length of the device information content is in bytes. However, it is not limited to this. The packet type and device packet length can also be 2 or 4 bytes, etc., which is also applicable to the present invention.
[0043] In the embodiment of the present invention, if there is no special description in the format column of the data transmitted by the operation representation machine software to the simulation software, one device information is represented by 1 Bit in the device information content of each device data packet.
[0044] An interface protocol is set between the test execution module and the operator simulation module. The test execution module is also used to send a test execution command for setting the device status to the operator simulation module and receive the operation result or inspection result feedback by the operator simulation module. Among them, the interface protocol is shown in Table 2. Table 2 Interface Protocol
[0045] Such as Figure 4As shown in the figure, an interlocking control and display method based on automatic testing is also introduced in the embodiments of the present invention. Applying the system described above, the method includes: First, based on the test steps in the experimental form, generate test execution commands; Second, after receiving the test execution commands, the simulation software starts the interlocking system and the operation representation machine system, performs simulation preparation and initialization operations, and after the initialization operation is successful, sends the initialization success flag to the platform operation terminal; Then, after the simulation software starts the interlocking system and the operation representation machine system, the platform operation terminal reads the configuration files of the operation representation machine system and the screen recording software, and performs automatic testing after the simulation software completes the initialization operation successfully; Finally, the screen recording software performs recording preparation, obtains video recording commands or video recording stop commands of the platform operation terminal after the automatic testing starts, and records the simulation operation and / or display process of the operation representation machine based on the obtained video recording commands.
[0046] In the embodiments of the present invention, the operation representation and method based on automatic testing are implemented through three parts: simulation software, screen recording software, and platform operation terminal. Among them, the simulation software is deployed in the interlocking / operation representation machine system, responsible for starting other software in the host, simulating mouse operations on the operation representation machine, and performing image recognition on the display interface of the operation representation machine, communicating with the platform operation terminal through the TCP protocol, and obtaining operation / recognition commands. The screen recording software is deployed in the interlocking / operation representation machine system, responsible for recording the operation and display process of the operation representation machine, recording the video data of the test process, communicating with the platform operation terminal through the TCP protocol, and obtaining video recording / stop commands. Specifically, as Figure 3 shown: Step S1: The simulation software starts the interlocking and operation representation machine systems, and the platform operation terminal reads the configuration files of the operation representation machine and the screen recording software. Among them, based on the configuration file of the operation representation machine system, calculate the connection relationships of sections, turnouts, and signal machines; based on the configuration file of the screen recording software, obtain the protocol parameters of screen recording and file transmission.
[0047] Step S2: The operator simulation software and the screen recording software respectively establish communication protocol (TCP) connections with the platform operation terminal; Step S3: The operator simulation software performs simulation preparation. First, the simulation software sends a request for operation representation machine graphic information to the platform operation terminal. The operation representation machine graphic information includes the device name and coordinates. Second, the platform operation terminal feeds back the operation representation machine graphic information to the simulation software. Then, after the simulation software completes the simulation preparation, it sends a simulation preparation completion message to the platform operation terminal. Finally, 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 electrolysis unlocking and starting the simulation. The screen recording software performs recording preparation, which includes, first, the screen recording software sending a request for screen recording parameters to the platform operation terminal. Then, the platform operation terminal feeds back the requested video saving FTP parameters to the screen recording software. The FTP parameters include the path, username, password, and port.
[0048] Step S4: The simulation software performs initialization operations and sends an initialization success flag to the platform operation terminal. 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. Step S6: The platform operation terminal sends operation information to the simulation software. The operation information includes operation commands or recognition commands.
[0049] Step S7: The simulation software performs operations based on the operation information and, after the operation is successful, feeds back an operation success flag to the platform operation terminal. Further, the simulation software performing operations based on the operation information includes obtaining the operation commands or recognition commands of the platform operation terminal, and performing simulated operations on the operation representation machine based on the operation commands or recognizing the display interface of the operation representation machine based on the recognition commands.
[0050] 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, operations, etc.
[0051] Step S9: The simulation software feeds back the inspection result to the platform operation terminal, where the inspection result is the device status. Step S10: The platform operation terminal determines whether the inspection result meets the expectations.
[0052] Step S11: If it is necessary to reset the interlock environment, the platform operation terminal sends a reset command to the simulation software. Step S12: The simulation software then restarts the interlock and operation representation machine processes and re-executes steps S3 and S4.
[0053] Step S13: After the platform operation terminal stops the automatic testing, it sends a stop recording command to the screen recording software.
[0054] Step S14: The screen recording software stops recording, saves the file, and uploads it to the FTP.
[0055] In the embodiment of the present invention, an operation display machine software is set on the platform operation terminal. The operation display machine software is the operation display machine system, and the interlocking system is the interlocking host software. The operation display machine software, the interlocking host software, and the simulation software are all set in the operator simulation module. Among them, as Figure 2 shown, the data flow of the operator simulation module is as follows: First, during the automatic test process, the simulation software forwards the received test execution command to the operation display machine software. Then, the operation display machine software sends the test execution command to the interlocking host software. Finally, the interlocking host software executes the test execution command and sends the device status information to the simulation software through the operation display machine software.
[0056] In the embodiment of the present invention, the maximum length of the test execution command is a preset number of bytes. Among them, two bytes represent a button state. The device status information transmitted by the operation display machine software to the simulation software is of fixed length. The content of the device status information includes a packet header and several device information packets. Among them, the content of the packet header is the length of the entire data packet. Each device information packet in several device information packets includes a data type, a data length, and data content.
[0057] In the embodiment of the present invention, it also includes that the operation display machine system determines whether to enter the automatic test mode, including that the operation display machine software obtains the automatic test flag through the interface function of the simulation software. The automatic test flag is the return value of the simulation software. Among them, if the return value of the simulation software is true, it means that the current is in the automatic test mode.
[0058] The above method can realize automatic, efficient, and comprehensive testing of the interlocking software and / or the operation display machine to ensure the reliability and safety of the interlocking software and / or the operation display machine. Compared with the traditional method of using model-driven or script-driven to implement case input, it completes the case input more simply and efficiently, reduces the test failure rate, and improves the test efficiency.
[0059] Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions 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 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. Among them, the business layer includes a test execution module, which is used to send a test execution command to the support layer based on the test steps in the experimental form; 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 through a communication transmission protocol. Among them, the simulation software is used to start the interlocking system and the operation indication machine system, obtain the operation command or recognition command of the platform operation terminal, and perform simulated operations on the operation indication machine based on the operation command or recognize the display interface of the operation indication machine based on the recognition command after receiving the test execution command; the platform operation terminal is used to read the configuration file of the operation indication machine system and the configuration file of the screen recording software after the operator simulation module starts the interlocking system and the operation indication machine system, and perform automatic testing after the initialization operation of the operator simulation software is successful; the screen recording software is used to obtain a video recording command or a video recording stop command of the platform operation terminal during the automatic testing process, and record the simulated operation and / or display process of the operation indication machine based on the obtained video recording command.
2. The interlocking control and display system based on automatic testing according to claim 1, wherein The operator simulation module further includes an interlocking host software, and the platform operation terminal is provided with an operation indication machine software. Among them, the simulation software is further used to forward the received test execution command to the operation indication machine software during the automatic testing process; the operation indication machine software is used to send the test execution command to the interlocking host software; the interlocking host software is used to execute the test execution command and send the device status information to the simulation software through the operation indication machine software.
3. The interlocking control and display system based on automatic testing according to claim 2, wherein The operation indication machine software is further used to apply for and obtain an automatic testing flag through the interface function of the simulation software to determine whether it is in the automatic testing mode. Among them, the automatic testing flag is the return value of the simulation software. If the return value of the simulation software is true, it indicates that the current is in the automatic testing mode.
4. 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, and two bytes represent a button state; the device status information transmitted by the operation indication machine software to the simulation software is of a fixed length, and the content of the device status information includes a packet header and several device information packets; among them, the content of the packet header is the length of the entire data packet; each device information packet in several device information packets includes a data type, a data length, and data content.
5. The interlocking control and display system for automatic testing according to any one of claims 1-4, characterized in that, The interaction layer includes an interface module, which is used for input file upload or download, mouse operation response, and / or text input.
6. The interlocking control and display system for automatic testing according to claim 5, characterized in that, The business layer further includes an initialization module, an input review module, a form generation module, and a video playback module; the initialization module is used to read the operation indication machine configuration file, the system configuration file, and / or the experimental data of the automatic testing when the interlocking system and the operation indication machine system are started; The input review module is used to read the input file from the interface module and review the content in the input file; The form generation module is used to generate an experiment form and upload it to the interface layer; The video playback module is used to playback the video in the screen recording file of the display interface of the operation indication machine during the automatic test.
7. The interlocking control and display system for automatic testing according to claim 5, wherein The interface layer includes a file reading and writing module, a communication protocol module, a file transfer protocol module, a database module, and a log recording module; The file reading and writing module is used to read and save the input file and save the experiment form; The communication protocol module is used to establish a communication connection between the interface layer and the support layer; The file transfer protocol module is used to implement file upload, download, and save the screen recording file; The database module is used to store the experiment form, update, and query experiment data; The log recording module is used to record the automatic test process and results of the operation indication machine.
8. The interlocking control and display system for automatic testing according to claim 7, characterized in that, The data layer is used to provide static data configuration and dynamic data recording, where, The static data configuration includes the configuration file of the operation indication machine system and the basic configuration of the interlocking system; The dynamic data recording includes database storage, log recording, and video recording.
9. The interlocking control and display system based on automatic testing according to claim 1, characterized in that An interface protocol is set between the test execution module and the operator simulation module. The test execution module is also used to send a test command for setting the device status to the operator simulation module and receive the operation result or inspection result feedback by the operator simulation module.
10. An interlocking control and display method based on automatic testing, characterized in that, including, Generate a test execution command based on the test steps in the experiment form; After receiving the test execution command, the simulation software starts the interlocking system and the operation indication machine system, performs simulation preparation and initialization operations, and sends an initialization success flag to the platform operation terminal after the initialization operation is successful; After the simulation software starts the interlocking system and the operation indication machine system, the platform operation terminal reads the configuration file of the operation indication machine system and the configuration file of the screen recording software, and performs an automatic test after the simulation software's initialization operation is successful; The screen recording software performs recording preparation, obtains a video recording command or a video recording stop command of the platform operation terminal after the automatic test starts, and records the simulation operation and / or display process of the operation indication machine based on the obtained video recording command.
11. The interlocking control and display method based on automatic testing according to claim 10, characterized in that, It also includes that the simulation software and the screen recording software respectively establish a communication protocol connection with the platform operation terminal.
12. The interlocking control and display method based on automatic testing according to claim 10, characterized in that The platform operation terminal reads the configuration file of the operation indication machine system and the configuration file of the screen recording software, including, Based on the configuration file of the operation indication machine system, calculate the connection relationship of sections, turnouts, and signal machines; Based on the configuration file of the screen recording software, obtain the screen recording and transfer file protocol parameters.
13. The interlocking control and display method based on automatic testing according to claim 10, wherein, The simulation software performs simulation preparation, including, The simulation software sends a request for the operation indication machine graphic information to the platform operation terminal. The operation indication machine graphic information includes device name and coordinates; The platform operation terminal feeds back the operation indication machine graphic information to the simulation software; After the simulation software completes the simulation preparation, it sends a simulation preparation completion message to the platform operation terminal; After receiving the message indicating that the simulation preparation is complete, 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.
14. The interlocking control and display method based on automatic testing according to claim 10, characterized in that The screen recording software performs recording preparation, including The screen recording software sends a request for screen recording parameters to the platform operation terminal; The platform operation terminal feeds back the requested FTP parameters for video saving to the screen recording software. The FTP parameters include the path, username, password, and port.
15. The interlocking control and display method based on automatic testing according to any one of claims 10-14, characterized in that, The platform operation terminal starts automatic testing, including The platform operation terminal sends operation information to the simulation software; The simulation software performs operations based on the operation information and feeds back an operation success flag to the platform operation terminal after the operation is successful; After receiving the operation success flag, the platform operation terminal sends inspection information to the simulation software; The simulation software feeds back the inspection result to the platform operation terminal, where the inspection result is the device status; The platform operation terminal determines whether the inspection result meets the expectation.
16. The interlock control and display method based on automatic testing according to claim 15, wherein The operation information includes an operation command or an identification command. The simulation software performs operations based on the operation information, including Obtaining the operation command or identification command of the platform operation terminal, and performing simulated operations on the operation display machine based on the operation command or identifying the display interface of the operation display machine based on the identification command.
17. The interlocking control and display method based on automatic testing according to claim 15, characterized in that The platform operation terminal starting automatic testing also includes 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 machine processes and re-performs operator simulation preparation and interlocking system initialization.
18. The interlocking control and display method based on automatic testing according to claim 17, wherein The platform operation terminal is provided with operation display machine software. The method further includes the operation display machine software interacting with the interlocking host software and the simulation software respectively, including During automatic testing, the simulation software forwards the received test execution command to the operation display machine software; The operation display machine software sends the test execution command to the interlocking host software; The interlocking host software executes the test execution command and sends the device status information to the simulation software through the operation display machine software.
19. The interlocking control and display method based on automatic testing according to claim 18, wherein The maximum length of the test execution command is a preset number of bytes, where two bytes represent the state of a button; The device status information transmitted by the operation display machine software to the simulation software is of a fixed length. The content of the device status information includes a packet header and several device information packets; where The content of the packet header is the length of the entire data packet; Each of the several device information packets contains a data type, a data length, and data content.
20. The interlocking control and display method based on automatic testing according to claim 19, wherein It also includes determining whether to enter the automatic test mode, specifically including The operation display machine software applies for and obtains 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 is in the automatic test mode.
Citation Information
Patent Citations
Urban rail full-electronic interlocking simulation test system and method
CN112230562A
Computer interlocking performance test system based on operation scene
CN112416715A
Integrated train control interlocking integrated equipment comprehensive simulation test system
CN119987234A
Cloud simulation apparatus and method for verifying rail transit-oriented full-automatic unmanned driving scene
US20220319333A1