Automatic execution method of computer interlocking route table test

By decomposing the test item of the computer to enter the road table into the action command and automatic execution, the problem of time and effort of manual operation costs in existing technologies has been solved, and the test efficiency and regularity are improved.

CN113978520BActive Publication Date: 2025-01-28SIGNAL & COMM RES INST OF CHINA ACAD OF RAILWAY SCI +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111471263.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2025-01-28
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

The existing computer interlocking path table testing method requires a lot of manual operation, resulting in high labor intensity, easy to lead to personnel fatigue and missed problems, and low testing efficiency.

Method used

By decomposing the test item into a test case, and each test case as a motion command to form a collection of action commands containing the timing relationship, the automatic execution of the action command is realized to replace the manual operation.

Benefits of technology

The automatic execution of the entire process of the road table test has improved the test efficiency, reduced the labor intensity of manual operation, and enhanced the regularity and scalability of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113978520B_ABST
    Figure CN113978520B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for automatically executing a computer interlocking route table test. In the present invention, a test item is a main object of test execution. Each test item is decomposed into a plurality of test cases, and each test case is further decomposed into a plurality of action commands that need to be executed in sequence, and the commands are automatically executed in a time sequence, so as to realize the automatic execution of the whole process and test steps of the route table test, replace manual operation, and the test personnel only need to monitor the test process and judge the result. The present invention effectively solves the problem that the interlocking route table test is time-consuming and labor-intensive, and is an automatic execution scheme for the route table test with high efficiency, strong regularity and good scalability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit technology, and in particular to a method for automatically executing a computer interlocking route table test. Background Art

[0002] The core function of the computer interlocking system is route control. The route contains the equipment objects to be controlled and inspected, that is, the interlocking relationship, including turnouts, signals, track sections, etc. The control of each route and the inspection conditions of the route on the equipment objects are implemented by the computer interlocking software. During the engineering design, the design unit writes the interlocking relationship of each route in the route table, and the interlocking supplier compiles the interlocking software based on the route table.

[0003] As an important system to ensure the safety of railway transportation, the computer interlocking system has extremely stringent requirements for its safety. Therefore, in order to ensure that the software is absolutely correct and meets the design intent, rigorous testing must be carried out, which is also an effective means to ensure the correctness of the software. The route test is the most core test, and the test content is specific to the effectiveness of each device object in the route, as well as the correctness of the action sequence. According to statistics, the average time for manual testing of one route is about 20 minutes. Taking a station with 200 routes as an example, if calculated at 8 hours a day, a group of people needs to test for 8 days. For testing work, if long-term repetitive labor is required, it is also easy to cause personnel fatigue and omission of problems.

[0004] At present, there are two methods for route table testing. One is simulation testing, which is to connect the external simulation disk and other tooling equipment to the meter machine cable of the computer interlocking system, and realize the broken turnout indication and simulated train occupation section by toggling the switch, which is a kind of manual testing method. The second is computer simulation testing, which is to communicate with the interlocking computer host through the computer simulator, and the software simulates the input and output information changes, and automatically hooks the output and input information back. By operating on the interface of the simulator, the broken turnout indication and simulated train occupation section are realized, which is also a kind of manual testing method. Compared with the first method, the second method is easy to build the environment in the laboratory through computer simulation. The advantages of the above two methods are simple and easy to implement, especially the first method, which can be built through a simple tool assembly line; the common disadvantages of the two methods are that they need to set up conditions and operations manually when applied, and the frequent manual operations are labor-intensive, especially for a large number of routes and route control objects. In recent years, some railway signal product suppliers have begun to explore and research automatic testing, but most of them are reviews of the test environment, architecture, and test process, while methods for automatically executing computer interlocking tests are rarely involved. Summary of the invention

[0005] The purpose of the present invention is to provide a method for automatically executing a computer interlocking route table test, which is an automatic execution scheme for the route table test with high efficiency, strong regularity and good expansibility.

[0006] The objective of the present invention is achieved through the following technical solutions:

[0007] A method for automatically executing a computer interlocking route table test, comprising:

[0008] According to the selected approach and test items, the test items are decomposed into a plurality of test cases, each test case is decomposed into a plurality of action commands, and all the action commands are integrated to form an action command set including a time sequence relationship;

[0009] According to the timing relationship, the current action command to be executed is obtained from the action command set. After executing the current action command on the current device object, it is determined whether the command execution completion judgment condition is met; if the command execution completion judgment condition is met, it is determined whether the current action command has reached the waiting time; if the waiting time is reached, it is determined whether an auxiliary command needs to be inserted; if so, the corresponding auxiliary command is inserted and executed; when the inserted auxiliary command meets the command execution completion judgment condition, it is determined whether there are other device objects to be executed for the current action command; if there are other device objects to be executed, the current action command is executed on other device objects to be executed; if there are no other device objects to be executed, the next action command is obtained from the action command set.

[0010] It can be seen from the technical solution provided by the present invention that the test items in the present invention are the main objects of test execution. Each test item is decomposed into several test cases, and each test case is further decomposed into several action commands that need to be executed, and they are automatically executed in sequence, so as to realize the automatic execution of the whole process and test steps of the route table test, replace manual operation, and the tester only needs to monitor the test process and judge the results. The present invention effectively solves the problem that the computer interlocking route table test is time-consuming and labor-intensive, and is an automatic execution scheme for route table test with high efficiency, strong regularity and good scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0012] Figure 1 A flowchart of a method for automatically executing a computer interlocking route table test provided by an embodiment of the present invention;

[0013] Figure 2 An example site diagram is provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0014] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0015] First, the terms that may be used in this article are explained as follows:

[0016] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.

[0017] The following is a detailed description of a method for automatically executing a computer interlocking route table test provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professionals in the field. If no specific conditions are specified in the embodiments of the present invention, the conventional conditions in the field or the conditions recommended by the manufacturer are followed. If the manufacturer of the instruments used in the embodiments of the present invention is not specified, they are all conventional products that can be purchased commercially.

[0018] like Figure 1 As shown, a method for automatically executing a computer interlocking route table test comprises the following steps:

[0019] 1. According to the selected approach and test items, the test items are decomposed into a number of test cases, and each test case is decomposed into a number of action commands, and all the action commands are integrated to form an action command set containing a timing relationship.

[0020] 2. According to the timing relationship, obtain the current action command to be executed from the action command set. After executing the current action command on the current device object, determine whether the command execution completion judgment condition is met; if the command execution completion judgment condition is met, determine whether the current action command has reached the waiting time; if the waiting time is reached, determine whether an auxiliary command needs to be inserted; if so, insert the corresponding auxiliary command and execute it; when the inserted auxiliary command meets the command execution completion judgment condition, determine whether there are other device objects to be executed for the current action command; if there are other device objects to be executed, execute the current action command on other device objects to be executed; if there are no other device objects to be executed, obtain the next action command from the action command set.

[0021] Specifically: for each action command, after execution, three judgments need to be made, which is equivalent to secondary decomposition, to supplement and improve the action command: 1) Determine whether it is necessary to insert a waiting time. After each action command is executed, it is necessary to determine whether to insert a waiting time according to the case requirements, so that the tester can visually confirm the execution result. If the set waiting time has been reached, there is no need to insert it; otherwise, insert the corresponding waiting time; then make the next judgment. This waiting time is the interval between action commands. The action command interval can be manually adjusted and set before testing for different action command types. 2) Determine whether it is necessary to insert an auxiliary command (the inserted auxiliary command is a command supplemented during the execution process and is not in the action command set). Inserting an auxiliary command is a necessary condition for insertion during the execution process. Two situations are mainly considered: The first situation is to avoid affecting the execution of the next test item or the next route. Therefore, it is necessary to determine whether an auxiliary command (a control-type auxiliary command) needs to be inserted so that the subsequent test items can be executed smoothly. If so, insert the corresponding unlocking command; for example, the route total cancellation command. The second case is to ensure that the device object remains in a certain state when the action command in the first case is executed; therefore, it is necessary to determine whether the device object needs to be controlled to remain in a specified state when executing the action command. If so, insert the corresponding auxiliary command (simulation auxiliary command), and the inserted corresponding auxiliary command has a matching auxiliary command to release the insertion; for example, set the turnout manual mode. 3) Determine whether the action command has other device objects that need to be executed. When executing an action command, there is a situation of loop execution, but the corresponding device objects of the loop execution are different. It belongs to the situation where the route is executed in sequence for different turnouts, sections and other device objects. In this case, it is necessary to traverse and execute it before entering the next action command.

[0022] In the embodiment of the present invention, the action command is the smallest working unit of the test automatic execution. The above-mentioned test automatic execution method mainly schedules the action command to perform control operations on the specified device object, and makes a judgment on the completion of execution. After performing timing control, it traverses and executes other objects or executes the next action command.

[0023] In the embodiment of the present invention, the action command is a control command issued to a specified number of device objects, and the execution of the command is monitored according to the command execution completion judgment condition; all action commands are combined with the specified device objects in the route information to form an action command set. The action command set determines the input parameters according to the scheduling program. Each action command mainly includes three types of parameters: command type, device object type and name, and command execution completion judgment condition.

[0024] In the embodiment of the present invention, the command types include: operation commands and simulation commands. The operation commands include: route action commands and object individual control action commands; for example, button handling, manual cancellation, manual mode, etc. Simulation commands include: disconnection action commands and recovery action commands.

[0025] In the embodiment of the present invention, the command type, device object type and name are generally in the form of binary coding.

[0026] In the embodiment of the present invention, the equipment objects mainly include: signal machines, switches, track sections and indicator light equipment, etc.

[0027] In the embodiment of the present invention, the command execution completion judgment condition is to judge whether the command execution is completed according to the corresponding judgment condition. According to the complexity of the interlocking logic, it is divided into a single judgment condition and a compound judgment condition. For a single judgment condition, there is only one result after the action command is executed. For example, the approach is locked and the single-locked switch is the single-locked state of the switch. For a compound judgment condition, there are multiple results after the action command is executed. Therefore, it is necessary to select the judgment condition for the completion of the execution in combination with the specific scenarios of the test items and test cases. For example, the judgment condition for the completion of the total cancellation action command can be the signal closing or the unlocking of the first section of the approach; the judgment condition for the completion of the section fault unlocking action command can be the signal fault closing or the unlocking of the current section, etc.

[0028] The above scheme of the embodiment of the present invention can be completed by testing the automatic execution program, and the automatic test execution program runs in the test host. The test host has the function of importing the route table, obtaining the route number of each route, the button to be pressed to arrange the route, the name of the signal machine, the lighting display, the time of human release, the switch in the route, the section in the route, the hostile signal and other information, and the obtained information is used as the type and name of the device object for the execution of the action command. The test host has the necessary human-machine interface. The interface includes a control area and a display area. The control area includes a test item selection and necessary start and stop buttons, and the route number and the test item can be selected for testing. The display area mainly displays the decomposition of the action command and the completion of the action, as well as the changes in the input and output information during the automatic execution of the test. The input and output information is the change information of the relay interface recorded in the order of time points, including drive information and acquisition information.

[0029] The above solution of the embodiment of the present invention is a general solution, and the test automatic execution program formed must be implemented for the specified test items. If the test item content or test case is added or changed, the software or data can be quickly changed based on the present invention to implement the new test.

[0030] To facilitate understanding, a specific application example is used below for introduction.

[0031] In this example, an environment of test host, monitoring machine, interlocking machine, and simulation machine is built, and a test example station is selected to implement two tests.

[0032] 1. Set up the test environment and other test preparation work.

[0033] The data communication between the test host and the monitoring machine adopts a standard serial interface, and the communication mode is asynchronous duplex. The test host is connected to the computer interlocking system monitoring machine, and sends action commands such as route handling and turnout operation to the monitoring machine at a cycle of 500ms, and receives station field indication information from the monitoring machine as a judgment of the completion of the action command execution. Specifically, the test host sends action commands to the monitoring machine. The commands sent to the monitoring machine are divided into 4 types of device objects: signal, turnout, section, and indication light. The frame types are shown in Table 1.

[0034]

[0035] Table 1 Communication frame types between test host and monitoring machine

[0036] The test host and the simulator are connected by RJ45 Ethernet interface, and communicate in UDP unicast mode, with a single channel. The test host sends the section occupation command, switch break indication command, and signal wire break command to the simulator at a cycle of 500ms; the simulator sends the switch quantity acquisition information, switch quantity drive information, and communication status information between the simulator and the interlocking machine to the test host at a cycle of 500ms. The frame types are shown in Table 2.

[0037]

[0038] Table 2 Communication frame types between test host and simulator

[0039] In addition, the test host, monitoring machine and simulator share the same interface information table. In this table, the definition includes two parts: command and representation. The command part mainly describes and stipulates the object type, object name and command value, and the representation part mainly describes and stipulates the object type, object name, state category and state value. For example, the section occupation information command value is defined as: 00b not processed, 10b idle, 01b occupied; the switch break representation information command value is defined as: 0000b not processed, 0001b lost representation, 0010b restored representation, 0100b manual mode, 1000b automatic mode.

[0040] 2. Select the test example station and test items.

[0041] Select Figure 2 The station is taken as a test example station, and the test is carried out using the first route XLA-SILA as an example.

[0042] According to the relevant railway regulations, select the test items of the route table. In this example, take the implementation of test items 1-5 and test item 6 as an example. Test items 1-5 are the tests of route number, starting point, alternative, terminal, and normal open signal. The test case is: according to the route number given in the route table, check the consistency of the interlocking route number and the arranged route; test item 6 is the test of the switch without indication that the signal cannot be opened. The test case is: cut off the indication of all switches in the current route one by one, and try to arrange this route. Its signals should not be open.

[0043] 3. Test items and route numbers are decomposed into action commands.

[0044] Test items 1-5 are route tests arranged according to the issued operation buttons, including 1 test case. The test case is further decomposed into 1 action command. According to the needs of the case, interval time is inserted, and 1 auxiliary command is inserted, as shown in Table 3, which is the decomposition execution table of test items 1-5.

[0045]

[0046] Table 3 Test items 1-5 decomposition execution table

[0047] Test item 6 is a test for the switch without a signal that cannot be opened. All the switches on the current route are disconnected one by one, and the signal of this route should not be opened. It includes 1 test case, which is further decomposed into 3 action commands. According to the needs of the case, 3 auxiliary commands are inserted, as shown in Table 4, which is the decomposition execution table of test item 6.

[0048]

[0049] Table 4 Test Item 6 Decomposition Execution Table

[0050] 4. Execution status of test items 1-5.

[0051] Step 1-1: Execute the first action command.

[0052] 1) Get the first action command and execute it.

[0053] According to Table 3, the first action command is to arrange the route, (action command 1) issuing commands XLA and SILA.

[0054] 2) Determine whether the action command has been executed.

[0055] The completion of action command 1 is a single judgment condition, and the judgment condition for the completion of action command 1 is: section IAG is locked.

[0056] Step 1-2: Insert command interval time.

[0057] After each action command is executed, it is necessary to wait for a specific time so that the tester can visually confirm the execution result before executing the next test command. The command interval for route selection completion is set to 5s.

[0058] Step 1-3: Insert auxiliary commands.

[0059] 1) Insert unlock auxiliary command.

[0060] This test case has little content and has been completed up to step 1-2. In order not to affect the execution of the next test item or the next route, insert the unlock auxiliary command (insert command 1) to always cancel XLA.

[0061] 2) Determine whether the auxiliary command has been executed.

[0062] The completion of the execution of auxiliary command 1 still belongs to a single judgment condition, and the judgment condition for the completion of the execution of the auxiliary command is: the section IAG is unlocked.

[0063] 5. Execution status of test item 6.

[0064] Step 2-1: Set the first turnout in the route to open to indicate the action command.

[0065] 1) According to Table 4, the first action command is to set the first switch in the route to be disconnected, which is a disconnection type action command. After the command is issued, it starts to execute (action command 2) to set the switch 1 / 3 to be lost.

[0066] (2) Determine whether the action command has been executed.

[0067] After receiving the switch 1 / 3 loss indication information, action command 2 is determined to have been executed.

[0068] Step 2-2: Insert the manual mode setting auxiliary command.

[0069] In order to ensure that the turnout remains in the lost display state when the subsequent action command is executed, an auxiliary command for manual mode setting is inserted, (Insert Command 2) to set the turnout 1 / 3 manual mode to start execution. The judgment condition for the completion of the auxiliary command execution is that the turnout 1 / 3 is switched to manual mode.

[0070] Step 3-1: Issue route action commands.

[0071] (Action command 3) Arrange route: Issue button commands XLA and SILA to start execution. The execution of this step action command belongs to a single judgment condition. After waiting for the specified interval time (10s is selected for this implementation), it is judged that the current route cannot be locked. At this time, it can be determined that the arrangement route: XLA->SILA has timed out and the route cannot be selected.

[0072] Step 3-2: Insert the unlock auxiliary command.

[0073] Although the previous step is judged as a timeout, the maximum time for interlocking route selection is 30s, and the interlocking system route under test is still in the process of route selection. In order to speed up the test execution and not affect the test of the next turnout, insert the unlocking auxiliary command (insert command 3) to cancel the total: XLA.

[0074] Step 4-1: Restore action commands.

[0075] Issue an action command to restore the indication of switch #1 / 3, (action command 4) set switch 1 / 3 to restore indication.

[0076] Step 4-2: Insert the manual mode release auxiliary command.

[0077] (Insert command 4) After the manual mode release command is issued, 1 / 3 of the switches are changed to automatic mode.

[0078] Step 5-1: Traverse all turnout equipment objects on the XLA->SILA route.

[0079] According to the action command set decomposed by this test item, this test item needs to perform actions on the subsequent 5 / 7 turnouts in the route, and loop through steps from 2-1 to 4-2. After executing the 5 / 7 turnout, traverse the next turnout until all the turnouts in the route are executed.

[0080] After all objects are traversed, the execution of test item 6 ends. The test logs formed according to the present invention are shown in Table 5 and Table 6, and the test logs record the complete automatic execution process in detail.

[0081] Serial number time Steps and Status 1 2021 / 07 / 23 08:36:33.245 Start execution: (Action command 1) Arrange route: XLA->SILA 2 2021 / 07 / 23 08:36:43.742 Sector IAG Lock 3 2021 / 07 / 23 08:36:47.241 X signal open: U 4 2021 / 07 / 23 08:36:47.746 Completed: (Action command 1) Arrange route: XLA->SILA 5 2021 / 07 / 23 08:36:53.240 Start execution: (auxiliary command 1) total cancellation: XLA 6 2021 / 07 / 23 08:36:56.765 Segment IAG Clearance 7 2021 / 07 / 23 08:36:56.765 X signal closed: H 8 2021 / 07 / 23 08:36:57.266 Completed: (auxiliary command 1) Total canceled: XLA

[0082] Table 5 Decomposition and execution of test items 1-5

[0083]

[0084]

[0085] Table 6 Decomposition and execution of test item 6

[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0087] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for automatically executing a computer interlocking route table test, characterized in that: include: According to the selected approach and test items, the test items are decomposed into a plurality of test cases, each test case is decomposed into a plurality of action commands, and all the action commands are integrated to form an action command set including a time sequence relationship; According to the timing relationship, the current action command to be executed is obtained from the action command set. After executing the current action command on the current device object, it is determined whether the command execution completion judgment condition is met; if the command execution completion judgment condition is met, it is determined whether the current action command reaches the waiting time; If the waiting time is reached, it is determined whether an auxiliary command needs to be inserted; If yes, then insert the corresponding auxiliary command and execute it; when the inserted auxiliary command meets the command execution completion judgment condition, then judge whether there are other device objects to be executed for the current action command; if there are other device objects to be executed, then execute the current action command for other device objects to be executed; If there are no other device objects to be executed, the next action command is obtained from the action command set.

2. A method for automatically executing a computer interlocking route table test according to claim 1, characterized in that: The action command is a control command issued to a number of specified device objects, and the execution of the command is monitored according to the command execution completion judgment condition; all action commands are combined with the specified device objects in the route information to form an action command set.

3. A method for automatically executing a computer interlocking route table test according to claim 1, characterized in that: The action command includes: command type, device object type and name, and command execution completion judgment condition; the command type includes: operation type command and simulation type command.

4. A method for automatically executing a computer interlocking route table test according to claim 3, characterized in that: The operation type commands include: route type action commands and object individual control type action commands; the simulation type commands include: disconnection type action commands and recovery type action commands.

5. A method for automatically executing a computer interlocking route table test according to claim 1, 2 or 3, characterized in that: Equipment object types include: signals, switches, track sections and indicator lighting equipment.

6. A method for automatically executing a computer interlocking route table test according to claim 1, 2 or 3, characterized in that: The determining whether an auxiliary command needs to be inserted comprises: Determine whether it is necessary to insert an auxiliary command of the control class so that subsequent test items can be executed smoothly. If so, the inserted auxiliary command of the control class is the corresponding unlocking command; Also, determine whether it is necessary to control the device object to remain in a specified state when executing the auxiliary command of the control class. If so, insert the corresponding auxiliary command of the simulation class, and the inserted corresponding simulation class action command should have a matching auxiliary command to release the insertion.

7. A method for automatically executing a computer interlocking route table test according to claim 1, 2 or 3, characterized in that: The determination of whether the waiting time has been reached includes: After each action command is executed, it is determined whether to insert a waiting time according to the case requirements; if the set waiting time has been reached, there is no need to insert it; otherwise, the corresponding waiting time is inserted.

Citation Information

Patent Citations

  • Railway route sheet optimizing device

    CN105512771A

  • Automatic test method and system for data of autonomous machine of decentralized autonomous centralized traffic control station

    CN109649447A