Testing device and method for rail transit signal system

By constructing a virtual model and configuring the communication link, the testing method solves the problems of low testing efficiency and insufficient accuracy of rail transit signaling systems, and realizes an efficient and accurate testing process.

CN121283918APending Publication Date: 2026-01-06BEIJING MASS TRANSIT RAILWAY OPERATION CORPORATION LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511458777.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-13
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

Existing testing technologies for rail transit signaling systems are inefficient and inaccurate. Current testing methods require high software programming skills from test personnel, and direct testing cannot accurately reflect the interactive status of signaling equipment.

Method used

The test management and execution module, simulation modeling module, and signal source control module are used to build a virtual model and configure a communication link. The virtual model is then connected to the physical signal equipment through the communication link to achieve the integration of virtual and reality and to carry out the testing process.

Benefits of technology

It eliminates the need to build complex physical environments, saving time and costs, improving testing efficiency, and ensuring testing accuracy by acquiring data from physical devices through virtual models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121283918A_ABST
    Figure CN121283918A_ABST
Patent Text Reader

Abstract

The invention provides a testing device and method for a rail transit signal system. The testing device comprises a testing management and execution module, a testing module and a testing module. The testing management and execution module is used for generating testing scripts and testing data. The simulation modeling module is used for constructing virtual models of a plurality of signal devices based on the hardware resource configuration file, and configuring communication links of the virtual models; the signal source control module is used for accessing entity signal equipment corresponding to each virtual model based on a communication link; and the test management and execution module is also used for executing a test process on each virtual model based on the test script and the test data. The virtual model is constructed and the communication link is configured, a complex entity environment does not need to be constructed based on signal equipment, and the test efficiency is improved. According to the method, the virtual model is connected with the corresponding entity signal equipment, so that the virtual system can obtain the actual data of the entity equipment, meanwhile, the control instruction is sent to the entity equipment to realize the test process, and the test accuracy is guaranteed while the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of rail transit technology, and in particular to a testing device and method for rail transit signaling systems. Background Technology

[0002] To ensure the functional integrity and reliability of the rail transit signaling system, a complete testing process is required.

[0003] Existing testing technologies are based on either direct testing or simulated testing of signal systems. Direct testing involves using structured programming languages ​​and general-purpose scripting languages ​​to test each device under test individually. This approach demands high software programming skills from test personnel and involves extensive work on encapsulating and defining test stimulus source interfaces. Changes to interfaces and communication protocols require significant modifications to the underlying encapsulation code, resulting in low testing efficiency. Simulated testing, on the other hand, fails to accurately reflect the interaction states between signal devices, leading to low testing accuracy.

[0004] How to improve testing efficiency while ensuring the accuracy of rail transit signal system testing is an important issue that the industry urgently needs to address. Summary of the Invention

[0005] This invention provides a testing apparatus and method for rail transit signaling systems, which improves testing efficiency while ensuring the accuracy of rail transit signaling system testing.

[0006] This invention provides a testing device for a rail transit signaling system, comprising: a test management and execution module, a simulation modeling module, and a signal source control module; The first end of the test management and execution module is connected to the first end of the simulation modeling module, and the second end of the test management and execution module is connected to the first end of the signal source control module. It is used to generate test scripts and test data based on the test process of multiple signal devices in the signal system. The second end of the simulation modeling module is connected to the second end of the signal source control module, and is used to construct virtual models of the multiple signal devices based on the hardware resource configuration files of the multiple signal devices, and configure the communication links of each virtual model; The signal source control module is used to access the physical signal devices corresponding to each virtual model based on the communication link; The test management and execution module is also used to perform a test process on each virtual model based on the test script and the test data.

[0007] According to the present invention, a test apparatus for a rail transit signaling system is provided, wherein the simulation modeling module is specifically used for: The hardware resources in the hardware resource configuration file are mapped to model variables, and a virtual model of each signal device is constructed based on the model variables of each signal device. Based on the communication protocol information in the hardware resource configuration file, configure the communication links for each virtual model.

[0008] According to the test apparatus for a rail transit signaling system provided by the present invention, the test management and execution module is further used for: The testing process of each virtual model is monitored based on the test process monitoring window and the test variable monitoring window; The test process monitoring window is used to display the execution progress of the test script, the number of tests passed, and the execution time; the test variable monitoring window is used to display the changes in the values ​​of test variables during the test.

[0009] The testing device for a rail transit signaling system provided by the present invention further includes: a custom action unit; The custom action unit is used to encapsulate the code sequence in the test script into an execution action with a name, parameters and return value, and store the execution action in the action library.

[0010] According to a testing apparatus for a rail transit signaling system provided by the present invention, the test management and execution module is further used for: The test script calls the execution actions in the action library to perform the test process on each virtual model.

[0011] According to the test apparatus for a rail transit signaling system provided by the present invention, it further includes: a demand change management and tracking unit; The requirement change management and tracking unit is used for: Establish a mapping relationship between the test requirement document and the test script of the signal system. If the test requirement document is changed, modify the test script based on the changed test requirement document.

[0012] The present invention also provides a testing method for a rail transit signaling system, comprising: Based on the testing process of multiple signal devices in a signal system, test scripts and test data are generated. Based on the hardware resource configuration files of the multiple signal devices, a virtual model of the multiple signal devices is constructed, and the communication link of each virtual model is configured. Based on the communication link, access the physical signal devices corresponding to each virtual model; The test process is performed on each virtual model based on the test script and the test data.

[0013] According to a testing method for a rail transit signaling system provided by the present invention, the step of constructing a virtual model of the plurality of signaling devices based on the hardware resource configuration files of the plurality of signaling devices, and configuring the communication links of each virtual model, includes: The hardware resources in the hardware resource configuration file are mapped to model variables, and a virtual model of each signal device is constructed based on the model variables of each signal device. Based on the communication protocol information in the hardware resource configuration file, configure the communication links for each virtual model.

[0014] A test method for a rail transit signaling system provided by the present invention further includes: The testing process of each virtual model is monitored based on the test process monitoring window and the test variable monitoring window; The test process monitoring window is used to display the execution progress of the test script, the number of tests passed, and the execution time; the test variable monitoring window is used to display the changes in the values ​​of test variables during the test.

[0015] According to a testing method for a rail transit signaling system provided by the present invention, the step of performing a test process on each virtual model based on the test script and the test data includes: The code sequence in the test script is encapsulated into an execution action with a name, parameters, and return value, and the execution action is stored in the action library; The test script calls the execution actions in the action library to perform the test process on each virtual model.

[0016] The testing apparatus and method for rail transit signaling systems provided by this invention, by constructing a virtual model and configuring a communication link, can recreate the actual scenario of the rail transit signaling system. This eliminates the need to build a complex physical environment based on the signaling equipment, saving significant time and costs and improving testing efficiency. By connecting to the physical equipment via the communication link, the signal source control module can utilize the pre-configured communication link to connect the virtual model with the corresponding physical signaling equipment, achieving a fusion of virtual and real systems. This allows the virtual system to acquire actual data from the physical equipment and simultaneously send control commands to the physical equipment to complete the testing process, improving testing efficiency while ensuring testing accuracy. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this 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 this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of the structure of the test device for the rail transit signaling system provided by the present invention.

[0019] Figure 2 This is a flowchart illustrating the testing method for a rail transit signaling system provided by the present invention. Detailed Implementation

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

[0021] Figure 1 This is a schematic diagram of the structure of the testing device for the rail transit signaling system provided by the present invention, as shown below. Figure 1 As shown, the device includes a test management and execution module 110, a simulation modeling module 120, and a signal source control module 130.

[0022] Rail transit signaling systems coordinate ground and onboard equipment to achieve train control, speed control, and safety interval management. The core signaling equipment in a rail transit signaling system includes: ground signals, transponders, switch machines, Automatic Train Protection (ATP) systems, and Automatic Train Supervision (ATS) systems. To ensure the normal operation of each signaling device in the rail transit signaling system, a comprehensive testing process is required before commissioning to guarantee functional reliability.

[0023] The test management and execution module analyzes the test procedures for multiple signal devices in the signaling system, determining the functional characteristics of each device, its operational logic within the system, and its interaction methods with other signal devices. For example, for ATP (Automatic Train Protection), it is necessary to clarify the safety protection mechanisms under different speeds and track conditions; for ATS (Automatic Train Control System), it is necessary to determine the process of real-time monitoring of train operation status and generation of dispatching instructions.

[0024] After analyzing the testing process, test scripts are generated. The test scripts specify the testing steps, their sequence, and the specific operations to be performed in each step. For example, when testing the display function of a signal ignition system, the test script will explicitly first check the signal ignition's display color under normal conditions, then simulate fault conditions and observe the signal ignition's response.

[0025] In addition to test scripts, the test management and execution module is also used to generate test data. Test data consists of various information that provides input to the testing process, including simulated train operating parameters (such as speed and position), and status information of signaling equipment (such as the occupancy status of track circuits and the position of switches). For example, it generates train operating data at different speed levels to test whether the ATP system can accurately calculate safe speed and implement braking.

[0026] The simulation modeling module is used to model and coordinate the operation of various simulation devices required in the automated testing process. This module acquires hardware resource configuration files for multiple signal devices. These files contain detailed information about the hardware components, interface types, performance parameters, and other details of the signal devices. For example, for an onboard ATP (Automatic Train Protection) device, the hardware resource configuration file specifies the processor model, memory capacity, and the type and number of input / output interfaces.

[0027] Based on the hardware resource configuration file, the simulation modeling module constructs virtual models corresponding to each signaling device. The virtual model is a digital simulation of the function and behavior of the actual signaling device, and it can simulate the operating state of the signaling device under various conditions.

[0028] In constructing virtual models, it is also necessary to consider the interaction relationships between models. Because the various devices in a signal system cooperate with each other, corresponding interaction mechanisms need to be established between virtual models to accurately simulate the operation of the actual system.

[0029] After constructing the virtual models, the simulation modeling module configures the communication links between each virtual model. The communication link is the channel for data transmission and interaction between virtual models, determining the method and efficiency of information transfer. For example, configuring a communication link between the virtual models of the ATP device and the ATS device simulates their data exchange process using specific communication protocols in a real system.

[0030] The signal source control module connects to the physical signaling devices corresponding to each virtual model via the communication link configured by the simulation modeling module. These physical signaling devices are actual hardware devices used in rail transit signaling systems, such as real track circuit equipment.

[0031] Through a communication link, the signal source control module can connect the virtual model with the physical signaling equipment, enabling data interaction between the virtual and the real. For example, connecting the virtual ATS equipment with the actual train control equipment allows the virtual system to acquire the actual train's operating data and generate dispatching instructions based on this data.

[0032] After the physical signaling equipment is connected, the signal source control module is responsible for managing signal transmission and control. It can send control commands to the physical signaling equipment according to testing requirements, and simultaneously receive status information from the equipment. For example, it can send a switching command to the turnout switch machine to control the turnout's position and receive a switching completion signal from the switch machine.

[0033] After generating test scripts and test data, constructing virtual models, and connecting physical signal devices, the test management and execution module initiates the testing process. It executes test operations on each virtual model sequentially, following the steps specified in the test script.

[0034] The test management and execution module inputs the generated test data into the corresponding virtual model. The virtual model runs according to the input data and preset logic, simulating the working state of actual signal equipment under different conditions. For example, simulated train speed data is input into the ATP virtual model to observe whether the model can accurately calculate the safe speed and trigger the corresponding braking measures based on the speed data.

[0035] During testing, the test management and execution module records the running results and feedback information of each virtual model in real time. These results include the output data, state changes, and interactions with the physical signaling equipment of the virtual models. Since the signal source control module has connected the virtual models to the physical signaling equipment, the virtual models and physical signaling equipment interact through a communication link during the virtual model's testing. The virtual model's operations and state changes are fed back to the physical signaling equipment, and the actual responses of the physical signaling equipment are also fed back to the virtual model. Based on this feedback information, the test management and execution module determines whether the test has passed. For example, after the virtual track signaling model issues an action command, the actual track signaling equipment performs the corresponding action, and this action is then fed back to the virtual model. The test management and execution module compares the actual display with the expected display in the test script to determine the test result, thus achieving a precise testing process.

[0036] After testing, the test management and execution module analyzes the recorded test results. By comparing them with the expected results, it determines whether the signal system meets the design requirements and performance indicators. For example, it analyzes whether the display of the signal virtual model is correct under different input conditions, and whether the safety protection functions of the ATP virtual model are effective. If the test results are found to be inconsistent with expectations, the test management and execution module will further analyze the reasons, providing a basis for subsequent debugging and optimization.

[0037] Optionally, the testing device may also include a test execution submodule for developing test plans, running the developed test plans, recording the test process, and generating test reports; a test management submodule for managing automated test execution projects, including managing signal equipment confirmation tests as test projects; and a manual test submodule for setting up a manual test interface, executing manual tests, recording the manual test process, and replaying the manual test process.

[0038] The testing device for rail transit signaling systems provided by this invention can recreate the actual scenario of a rail transit signaling system by constructing a virtual model and configuring a communication link. This eliminates the need to build a complex physical environment based on the signaling equipment, saving significant time and costs and improving testing efficiency. By connecting to the physical equipment via the communication link, the signal source control module can use the pre-configured communication link to connect the virtual model with the corresponding physical signaling equipment, achieving a fusion of virtual and real systems. This allows the virtual system to acquire actual data from the physical equipment and simultaneously send control commands to the physical equipment to complete the testing process, improving testing efficiency while ensuring testing accuracy.

[0039] In one embodiment, the simulation modeling module is specifically used to: map the hardware resources in the hardware resource configuration file to model variables, and construct virtual models of each signal device based on the model variables of each signal device; and configure the communication links of each virtual model based on the communication protocol information in the hardware resource configuration file.

[0040] The simulation modeling module is specifically used to achieve accurate virtual model construction and communication link configuration.

[0041] In constructing the virtual model, the simulation modeling module parses the hardware resource configuration file, extracting hardware resource information such as processor performance parameters, memory capacity, and interface types, and maps these hardware resources into model variables. Taking an onboard ATP device as an example, its hardware characteristics, such as processor processing speed and memory read / write capabilities, are transformed into corresponding model variables, which become the basic elements for constructing the virtual model. Based on the model variables corresponding to each signal device, the simulation modeling module constructs a virtual model of the actual device through modeling algorithms and logical rules, enabling the simulation of the device's operating state under different working conditions.

[0042] In terms of communication link configuration, the simulation modeling module defines the rules and formats for data transmission between virtual models based on the communication protocol information in the hardware resource configuration file. This configuration enables the virtual models to interact with each other according to the communication protocol, recreating the collaborative working scenario between devices in the signal system.

[0043] In one embodiment, the test management and execution module is further configured to: monitor the testing process of each virtual model based on a test process monitoring window and a test variable monitoring window; wherein, the test process monitoring window is configured to display the execution progress of the test script, the number of tests passed, and the execution time; and the test variable monitoring window is configured to display the numerical changes of test variables during the testing process.

[0044] In the rail transit signaling system testing device, the test management and execution module monitors the testing process of each virtual model based on the test process monitoring window and the test variable monitoring window.

[0045] The test process monitoring window allows testers to understand the current stage of the test, avoiding aimless waiting or missing critical steps. Simultaneously, this window provides real-time statistics and displays the number of passed tests and execution time, helping testers quickly assess overall test quality.

[0046] The Test Variable Monitoring window is used to monitor changes during the testing process. It displays the real-time changes in the values ​​of the test variables. By observing these changes, testers can identify anomalies, such as variable values ​​exceeding expected ranges, thus allowing for timely problem localization and improved testing accuracy.

[0047] In one embodiment, the system further includes: a custom action unit; the custom action unit is used to encapsulate the code sequence in the test script into an execution action with a name, parameters and a return value, and to store the execution action in an action library.

[0048] Custom action units have the ability to encapsulate code sequences, transforming code sequences used in test scripts into executable actions with clearly defined names, parameters, and return values. For example, a code sequence used to detect the communication status of train signaling equipment can be encapsulated into a communication status detection action, with input parameters (such as equipment number) and a return value (communication normal or abnormal). The encapsulated action is stored in the action library, and subsequent tests can directly call it, avoiding repetitive code writing. This not only simplifies the test script writing process but also improves testing efficiency.

[0049] In one embodiment, the test management and execution module is further configured to: call the execution actions in the action library based on the test script to perform the test process on each virtual model.

[0050] In the testing of rail transit signaling systems, the test management and execution module uses test scripts to call actions from an action library to test various virtual models. The action library stores various standard execution actions for different signaling equipment virtual models. Test scripts can call corresponding actions from the action library and issue execution commands according to preset test procedures and requirements. Based on the commands, the actions are invoked to perform operations on the virtual models, such as simulating signal input and equipment state switching, simulating the operation of the signaling system in a real-world scenario.

[0051] In one embodiment, the system further includes a requirement change management and tracking unit; the requirement change management and tracking unit is used to: construct a mapping relationship between the test requirement document of the signal system and the test script, and, if it is determined that the test requirement document has changed, modify the test script based on the modified test requirement document.

[0052] The Requirements Change Management and Tracking unit is used to establish a mapping relationship between signal system test requirements documents and test scripts. This unit maps each specific requirement in the requirements document to the corresponding test steps and content in the test scripts.

[0053] When a change is confirmed in the test requirements document, the requirement change management and tracking unit initiates the change process. Based on the revised test requirements document, it identifies the sections of the test scripts that need modification. Whether it's a newly added requirement, modified parameters, or adjusted test logic, the test scripts can be modified accordingly, ensuring that the test scripts are always synchronized with the latest requirements.

[0054] This invention also provides a testing method for a rail transit signaling system, such as... Figure 2 The flowchart of the testing method for a rail transit signaling system provided by this invention is shown. The method includes: Step 210: Based on the test process of multiple signal devices in the signal system, generate test scripts and test data; Step 220: Based on the hardware resource configuration files of the multiple signal devices, construct virtual models of the multiple signal devices and configure the communication links of each virtual model; Step 230: Access the physical signal devices corresponding to each virtual model based on the communication link; Step 240: Perform a test process on each virtual model based on the test script and the test data.

[0055] Specifically, in step 210, the testing process for multiple signaling devices in the signaling system is analyzed. The functional characteristics of each signaling device, its operational logic within the system, and its interaction methods with other devices are determined. For example, for ATP (Automatic Train Protection), its safety protection mechanisms under different speeds and track conditions need to be clarified; for ATS (Automatic Train Control System), the process of real-time monitoring of train operation status and generation of dispatching instructions needs to be determined.

[0056] After analyzing the testing process, test scripts and test data are generated. The test scripts specify the steps, sequence, and specific operations to be performed in each step. For example, when testing the display function of a signal controller, the script will explicitly first check the display color of the signal controller under normal conditions, then simulate fault conditions and observe the signal controller's response.

[0057] Test data comprises various information that provides input to the testing process, including simulated train operating parameters (such as speed and position) and signal equipment status information (such as track circuit occupancy status and switch positions). For example, generating train operating data at different speed levels can be used to test whether the ATP system can accurately calculate safe speed and implement braking.

[0058] In step 220, hardware resource configuration files for multiple signaling devices are obtained. These files contain detailed information about the hardware components, interface types, performance parameters, etc., of the signaling devices. For example, for an onboard ATP device, the hardware resource configuration file will specify the processor model, memory capacity, and the type and number of input / output interfaces.

[0059] Based on hardware resource configuration files, virtual models of multiple signaling devices are constructed. These virtual models are digital simulations of the functions and behaviors of actual signaling devices, capable of simulating their operation under various conditions. For example, when constructing a virtual model of a signal controller, its display logic is simulated, displaying corresponding colors based on input commands and status information.

[0060] In constructing virtual models, it is also necessary to consider the interaction relationships between models. Because the various devices in a signal system cooperate with each other, corresponding interaction mechanisms need to be established between virtual models to accurately simulate the operation of the actual system.

[0061] After constructing the virtual models, configure the communication links between each virtual model. The communication link is the channel for data transmission and interaction between virtual models, determining the method and efficiency of information transfer. For example, configuring a communication link between the virtual models of the ATP and ATS devices simulates their data exchange process using specific communication protocols in a real system.

[0062] In step 230, based on the configured communication link, the physical signaling devices corresponding to each virtual model are connected. Physical signaling devices are actual hardware devices used in rail transit signaling systems, such as real signal controllers and track circuit equipment.

[0063] Through communication links, virtual models can be connected to physical signaling equipment, enabling data interaction between the virtual and the real. For example, connecting a virtual ATS system to actual train control equipment allows the virtual system to acquire actual train operation data and generate dispatching instructions based on this data.

[0064] In step 240, the generated test data is input into the corresponding virtual model. The virtual model operates based on the input data and preset logic, simulating the working state of actual signal equipment under different conditions. For example, simulated train speed data is input into the ATP virtual model to observe whether the model can accurately calculate the safe speed and trigger the corresponding braking measures based on the speed data.

[0065] During testing, the operational results and feedback information of each virtual model can be recorded in real time. These results include the output data, state changes, and interactions with the physical signaling equipment. Since the virtual models are connected to the physical signaling equipment, they interact via a communication link during the testing process. The virtual model's operations and state changes are fed back to the physical signaling equipment, while the actual responses of the physical signaling equipment are also fed back to the virtual model. Based on this feedback, the test's pass / fail status is determined. For example, after the virtual track signaling model issues an action command, the actual track signaling equipment performs the corresponding action, and this action is then fed back to the virtual model. By comparing the actual display with the expected display in the test script, the test result is determined, enabling a precise testing process.

[0066] The testing method for rail transit signaling systems provided by this invention, by constructing a virtual model and configuring a communication link, can recreate the actual scenario of the rail transit signaling system. This eliminates the need to build a complex physical environment based on the signaling equipment, saving significant time and costs and improving testing efficiency. By connecting to the physical equipment via the communication link, the virtual model can be linked to the corresponding physical signaling equipment using the pre-configured link, achieving a fusion of virtual and real-world capabilities. This allows the virtual system to acquire actual data from the physical equipment and simultaneously send control commands to the physical equipment to complete the testing process, improving testing efficiency while ensuring testing accuracy.

[0067] In one embodiment, constructing virtual models of the multiple signal devices based on hardware resource configuration files of the multiple signal devices and configuring communication links for each virtual model includes: mapping hardware resources in the hardware resource configuration files to model variables, and constructing virtual models of each signal device based on the model variables of each signal device; and configuring communication links for each virtual model based on communication protocol information in the hardware resource configuration files.

[0068] In constructing the virtual model, hardware resource configuration files are parsed to extract hardware resource information, such as processor performance parameters, memory capacity, and interface types, and these hardware resources are mapped to model variables. Taking an onboard ATP device as an example, its hardware characteristics, such as processor speed and memory read / write capabilities, are transformed into corresponding model variables, which become the basic elements for constructing the virtual model. Based on the model variables corresponding to each signal device, a virtual model of the actual device is constructed through modeling algorithms and logical rules, which can simulate the operating state of the device under different working conditions.

[0069] In terms of communication link configuration, the rules and formats for data transmission between virtual models are defined based on the communication protocol information in the hardware resource configuration file. This configuration enables the virtual models to interact with each other according to the communication protocol, recreating the collaborative working scenario between devices in the signal system.

[0070] In one embodiment, the method further includes: monitoring the testing process of each virtual model based on a test process monitoring window and a test variable monitoring window; wherein, the test process monitoring window is used to display the execution progress of the test script, the number of tests passed, and the execution time; and the test variable monitoring window is used to display the numerical changes of test variables during the testing process.

[0071] Based on the test process monitoring window and the test variable monitoring window, the monitoring process of the test process of each virtual model is realized.

[0072] The test process monitoring window allows testers to understand the current stage of the test, avoiding aimless waiting or missing critical steps. Simultaneously, this window provides real-time statistics and displays the number of passed tests and execution time, helping testers quickly assess overall test quality.

[0073] The Test Variable Monitoring window is used to monitor changes during the testing process. It displays the real-time changes in the values ​​of the test variables. By observing these changes, testers can identify anomalies, such as variable values ​​exceeding expected ranges, thus allowing for timely problem localization and improved testing accuracy.

[0074] In one embodiment, the step of performing a test on each virtual model based on the test script and the test data includes: encapsulating the code sequence in the test script into an execution action with a name, parameters, and a return value, and storing the execution action in an action library; and calling the execution action in the action library based on the test script to perform a test on each virtual model.

[0075] The code sequences used in the test scripts are transformed into executable actions with clearly defined names, parameters, and return values. For example, a code sequence used to detect the communication status of train signaling equipment can be encapsulated into a communication status detection action, with input parameters (such as equipment number) and a return value (communication normal or abnormal). The encapsulated executable action is stored in an action library for direct use in subsequent tests.

[0076] The test script invokes an action library to execute actions, thus testing various virtual models. The action library stores various standard execution actions for different signal device virtual models. The test script can invoke the corresponding actions from the action library and issue execution instructions according to the preset test process and requirements. Based on the instructions, the actions are invoked to perform operations such as simulating signal input and device state switching on the virtual model, simulating the operation of the signal system in a real-world scenario.

[0077] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0078] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; 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. A testing device for a rail transit signal system, characterized in that, The application relates to a test management and execution module, a simulation modeling module and a signal source control module. A first end of the test management and execution module is connected with a first end of the simulation modeling module, and a second end of the test management and execution module is connected with a first end of the signal source control module, so as to generate a test script and test data based on a test flow of multiple signal devices in a signal system. A second end of the simulation modeling module is connected with a second end of the signal source control module, so as to construct virtual models of the multiple signal devices based on hardware resource configuration files of the multiple signal devices and configure communication links of the virtual models. The signal source control module is used for accessing entity signal devices corresponding to the virtual models based on the communication links. The test management and execution module is further used for executing a test process on the virtual models based on the test script and the test data. The simulation modeling module is specifically used for mapping hardware resources in the hardware resource configuration files into model variables, and constructing the virtual models of the signal devices based on the model variables of the signal devices.

2. The test device for a rail transit signal system according to claim 1, characterized in that, The test management and execution module is further used for monitoring the test process of the virtual models based on a test process monitoring window and a test variable monitoring window. The test process monitoring window is used for displaying execution progress, test passing quantity and execution time consumption of the test script, and the test variable monitoring window is used for displaying a numerical change amount of a test variable in the test process. The application further comprises a self-defined action unit.

3. The test device for a rail transit signal system according to claim 1, characterized in that, The self-defined action unit is used for encapsulating code sequences in the test script into execution actions with names, parameters and return values, and storing the execution actions into an action library. The test management and execution module is further used for calling the execution actions in the action library based on the test script, and executing the test process on the virtual models. The application further comprises a requirement change management and tracking unit.

4. The test apparatus for a rail transit signal system according to claim 1, wherein The requirement change management and tracking unit is used for constructing a mapping relationship between a test requirement document of the signal system and the test script, and changing the test script based on a changed test requirement document when it is determined that the test requirement document is changed. The application comprises the following steps: generating a test script and test data based on a test flow of multiple signal devices in a signal system; 5. The test device for a rail transit signal system according to claim 4, characterized in that, constructing virtual models of the multiple signal devices based on hardware resource configuration files of the multiple signal devices, and configuring communication links of the virtual models; accessing entity signal devices corresponding to the virtual models based on the communication links; 6. The test apparatus for a rail transit signal system according to claim 1, wherein executing a test process on the virtual models based on the test script and the test data. The step of constructing the virtual models of the multiple signal devices based on the hardware resource configuration files of the multiple signal devices and configuring the communication links of the virtual models comprises the following steps: mapping hardware resources in the hardware resource configuration files into model variables, and constructing the virtual models of the signal devices based on the model variables of the signal devices. ​ 7. A test method of a railway transit signal system, characterized by, ​ ​ ​ ​ ​ 8. The test method of a rail transit signal system according to claim 7, characterized in that, ​ ​ Based on the communication protocol information in the hardware resource configuration file, a communication link of each virtual model is configured.

9. The test method of a rail transit signal system according to claim 7, wherein, Further comprising: Monitoring a test process of each virtual model based on a test process monitoring window and a test variable monitoring window; Wherein, the test process monitoring window is used to display the execution progress of the test script, the number of test passes and the execution time consumption; the test variable monitoring window is used to display the value change amount of the test variable in the test process.

10. The test method of a rail transit signal system according to claim 7, wherein, The test process of each virtual model based on the test script and the test data comprises: Encapsulating a code sequence in the test script as an execution action with a name, parameters and a return value, and storing the execution action into an action library; Invoking the execution action in the action library based on the test script to execute the test process of each virtual model.