Train control interlocking integrated system test case generation method and device and storage medium
By establishing a property generation rule set and defining a test case generation table using spreadsheet tools, we automatically generate test cases of the column-controlled interlocking integrated system, solving the problem of low efficiency in the existing technology, and achieving automated generation and high-efficiency test cases.
Patent Information
- Application Number
- CN202411935986.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-25
AI Technical Summary
In the testing of existing train control interlocking integrated system, a large amount of manpower and time are required to manually design test cases, resulting in low testing efficiency.
By establishing an attribute generation rule set, the interlocking signal data of the approach is extracted from the interlocking table, the attribute information is generated, and the test case generation table is defined using the spreadsheet tool to automatically generate the test case.
It realizes automatic generation of test cases for various approaches and various signal interlocking relationship tests, improves the efficiency of test cases generation and reduces the intensity of manual labor.
Smart Images

Figure CN119883905A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to rail transit technology, and more particularly to a method, device and storage medium for generating test cases for a train control and interlocking integrated system. Background Art
[0002] The Train Control Center And Interlocking Integrated System (TIS) is a system that integrates the Train Control Center (TCC) and the station computer interlocking (CBI) equipment, which realizes the integrated control of station interlocking and section blocking. This system brings a series of advantages in on-site equipment maintenance, system real-time control, etc. by integrating the interfaces and functions of the computer interlocking system and the train control center system.
[0003] The testing of the train control and interlocking integrated system is currently mainly done by manually designing test cases. Since the system involves a wide variety of test objects and a huge number of them, it takes a lot of manpower and time to write test cases, resulting in low system testing efficiency. Summary of the invention
[0004] The present application provides a method for generating test cases for a train control and interlocking integrated system, including:
[0005] Establishing an attribute generation rule set, extracting interlock signal data of each route from the interlock table according to the attribute generation rule set, and generating attribute information of the route based on the interlock signal data of each route;
[0006] Using a spreadsheet tool to establish at least one test case generation table for a signal interlocking relationship test; wherein the test case generation table records configuration information of at least one test step, the configuration information including: generation conditions and operation configuration of the test step;
[0007] For any signal interlocking relationship test, obtain the test case generation table of the test; for any route, obtain the relevant attribute information of the route according to the requirements of the configuration information of each test step in the test case generation table; when the route meets the generation condition of the test step, generate the corresponding test step script according to the operation configuration of the test step; when the route does not meet the generation condition of the test step, do not generate the corresponding test step script; and take the set of all test step scripts of the route as the test case of the route under the signal interlocking relationship test.
[0008] The embodiment of the present application provides a test case generating device for a train control and interlocking integrated system, comprising:
[0009] An attribute generation rule establishment module, configured to establish an attribute generation rule set;
[0010] The attribute generation engine module is configured to extract the interlock signal data of each route from the interlock table according to the attribute generation rule set, and generate attribute information of the route based on the interlock signal data of each route; wherein the interlock signal data of at least one route is recorded in the interlock table;
[0011] A case generation configuration module is configured to use a spreadsheet tool to establish a test case generation table for at least one signal interlocking relationship test; wherein the test case generation table records configuration information of at least one test step, and the configuration information includes: generation conditions and operation configuration of the test step;
[0012] The case generation engine module is configured to obtain a test case generation table for any signal interlocking relationship test, and for any route, obtain relevant attribute information of the route according to the requirements of the configuration information of each test step in the test case generation table; when the route meets the generation condition of the test step, a corresponding test step script is generated according to the operation configuration of the test step; when the route does not meet the generation condition of the test step, no corresponding test step script is generated; and a collection of all test step scripts of the route is used as a test case for the route under the signal interlocking relationship test.
[0013] An embodiment of the present application provides a test case generation device for a train control and interlocking integrated system, comprising: a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above-mentioned test case generation method for the train control and interlocking integrated system are implemented.
[0014] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for generating test cases for a train control and interlocking integrated system.
[0015] The embodiments of the present application provide a test case generation method, device and storage medium for a train control interlocking integrated system. By establishing an attribute generation rule set, the interlocking signal data of each route is extracted from the interlocking table according to the attribute generation rule set and the attribute information of the route is generated. A general generation method of the test steps of all routes under each signal interlocking relationship test is defined through a spreadsheet tool. Since the attribute information of each route is different, the same test case generation table can generate test cases including different test steps for different routes, thereby realizing the automatic generation of test cases for various routes and various signal interlocking relationship tests, thereby improving the efficiency of test case generation and reducing the intensity of manual labor.
[0016] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0018] Figure 1 A flow chart of a method for generating test cases for a train control and interlocking integrated system provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of the structure of a test case generating device for a train control and interlocking integrated system provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of the structure of another train control and interlocking integrated system test case generation device provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of the structure of another train control and interlocking integrated system test case generation device provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of the structure of another train control and interlocking integrated system test case generation device provided in an embodiment of the present application;
[0023] Figure 6 A structural diagram of another train control and interlocking integrated system test case generation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0025] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0026] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.
[0027] The present application embodiment provides a method for generating test cases for a train control and interlocking integrated system. Figure 1 As shown, a method for generating test cases for a train control and interlocking integrated system includes:
[0028] Step S10, establishing an attribute generation rule set, extracting interlock signal data of each route from the interlock table according to the attribute generation rule set, and generating attribute information of the route based on the interlock signal data of each route; wherein the interlock signal data of at least one route is recorded in the interlock table;
[0029] Step S20, using a spreadsheet tool to establish a test case generation table for at least one signal interlocking relationship test; wherein the test case generation table records configuration information of at least one test step, and the configuration information includes: generation conditions and operation configuration of the test step;
[0030] Step S30, for any signal interlocking relationship test, obtain the test case generation table of the test, for any route, obtain the relevant attribute information of the route according to the requirements of the configuration information of each test step in the test case generation table, when the route meets the generation condition of the test step, generate the corresponding test step script according to the operation configuration of the test step, when the route does not meet the generation condition of the test step, do not generate the corresponding test step script, and take the set of all test step scripts of the route as the test case of the route under the signal interlocking relationship test.
[0031] The train control interlocking integrated system test case generation method provided in the embodiment of the present application establishes an attribute generation rule set, extracts the interlocking signal data of each route from the interlocking table according to the attribute generation rule set and generates the attribute information of the route, and defines a general generation method of the test steps of all routes under each signal interlocking relationship test through a spreadsheet tool. Since the attribute information of each route is different, the same test case generation table can generate test cases including different test steps for different routes, thereby realizing the automatic generation of test cases for various routes and various signal interlocking relationship tests, thereby improving the test case generation efficiency and reducing the intensity of manual labor.
[0032] The interlocking table is an important technical document in the railway signal system. It describes in detail the mutual constraints and dependencies between signal machines, turnouts and routes in the station. These relationships are called interlocking relationships, and they are the key to ensuring the safe operation of trains and avoiding conflicts and accidents.
[0033] In an exemplary embodiment, the interlocking table includes multiple rows and multiple columns; interlocking signal data of different routes are recorded in different rows; and different types of interlocking signal data of one route are recorded in different columns.
[0034] In an exemplary embodiment, the interlocking signal data of the route may include at least one of the following: route direction, route type, route mode, route number, route arrangement button, signal, switch, hostile signal, track section and interlocking condition.
[0035] Table 1 gives an example of some interlocking signals in an interlocking table. As shown in Table 1, a signal includes the following data: signal name, light display, light off display, indicator, and manual release time. The data of a signal with four routes includes the signal name, light display, light off display, and manual release time, but does not include the indicator data.
[0036] Table 1
[0037]
[0038] In an exemplary embodiment, the method further includes:
[0039] An input audit rule set is established, and the interlocking signal data of each route in the interlocking table is audited according to the input audit rule set; if a certain interlocking signal data fails the audit, an audit failure alarm message is generated for the interlocking signal data.
[0040] In an exemplary embodiment, when all interlocking signal data of an approach do not contain alarm information that fails the review, the interlocking signal data of the approach can be used as a data source to generate attribute information of the approach.
[0041] In an exemplary embodiment, the input audit rule set is classified according to two classification methods;
[0042] The first classification method is to classify according to the type of interlocking signal; the second classification method is to divide it into column review and row review.
[0043] In an exemplary embodiment, auditing the interlocking signal data of each route in the interlocking table according to the input audit rule set includes:
[0044] The interlock signal data in the interlock table is reviewed column by column and / or row by row according to the input review rule set.
[0045] In an exemplary embodiment, the interlock signal data in the interlock table is audited by column according to the input audit rule set, including: auditing at least one of the following aspects of each cell in the target column: whether the cell content is empty, whether the cell content is equal to a preset value, whether the cell content is in the form of a number + a preset suffix, whether the cell content is in the form of a number + a preset prefix, whether the value contained in the cell content exceeds a preset range, whether the separator contained in the cell content is a preset separator, whether the character string contained in the cell content is one of multiple preset character strings, and whether the value contained in the cell content is one of multiple preset values.
[0046] In an exemplary embodiment, the input review rule set includes multiple input review rules, and at least one input review rule is defined using the following first custom syntax or second custom syntax:
[0047] The first custom syntax: column number of the interlock table + audit type;
[0048] The second custom syntax: the column number of the interlock table + the audit type + "=" + the first expression.
[0049] Table 2 gives an example of an input review rule designed for a chain table (ie, an entry table). As shown in Table 2, some input review rules are defined using the first user-defined syntax, and some input review rules are defined using the second user-defined syntax.
[0050] Table 2
[0051]
[0052]
[0053] In an exemplary embodiment, the attribute generation rule set includes: rules for directly generating attributes and rules for indirectly generating attributes; wherein, the rule for directly generating attributes is to directly use the data obtained from the interlocking table as the attribute value of the attribute; the rule for indirectly generating attributes is to use the relevant data obtained from the interlocking table as the attribute value after calculation.
[0054] In an exemplary embodiment, the relevant data obtained from the interlocking table is subjected to an operation process, including at least one of the following processes: a combination operation, a predefined operation, and an association operation;
[0055] The combination operation includes performing any of the following operations: addition, subtraction, substitution, partial removal, and addition of a fixed value;
[0056] The predefined operation includes executing any one of the following processing: generating a turnout position display, generating a turnout position, generating a turnout position operation button, generating a turnout reverse position, generating a turnout reverse position operation button, and generating a device status;
[0057] The association operation includes executing any of the following processing: generating an associated route for driving the turnout in reverse position, generating an associated route for protecting the turnout in reverse position, and generating the next route.
[0058] In an exemplary embodiment, the rule for directly generating an attribute is defined using the following third custom syntax: column number of the interlocking table + generation method + "=" + second expression; wherein the second expression includes the attribute name.
[0059] Table 3 gives an example of a rule for directly generating attributes designed for a chain table (ie, a route table). As shown in Table 3, some rules are defined using the third self-defined syntax.
[0060] Table 3
[0061]
[0062]
[0063] In an exemplary embodiment, the rule for indirectly generating an attribute is defined using the following fourth custom syntax: attribute name + "=" + generation method expression + "," + third expression. Among them, the attribute name and generation method expression are required items, and the third expression is an optional item.
[0064] Table 4 gives an example of a rule for indirectly generating attributes designed for a linkage table (ie, a route table). As shown in Table 4, some rules are defined using the third self-defined syntax.
[0065] Table 4
[0066]
[0067]
[0068]
[0069] In an exemplary embodiment, the signal interlocking relationship test includes at least one of the following: normal open signal, switch no indication cannot open signal, switch position is wrong and cannot open signal, switch no indication closing signal, section occupied and cannot open signal, section with vehicle closing signal, over-limit insulation condition, driving switch, protective switch, locking switch after signal opening, hostile signal, hostile check, closing signal at any time, cancellation of route unlocking, approach locking and section check, manual unlocking of section, prevention of automatic repeated opening signal, normal route unlocking, manual delayed unlocking, guide signal and shunting white light retention check.
[0070] In an exemplary embodiment, the test case may be named in the following manner: signal interlocking relationship test name, or signal interlocking relationship test name + manufacturer name.
[0071] In an exemplary embodiment, in a test case generation table of any signal interlocking relationship test, configuration information of different test steps is recorded in different rows, and the configuration information of a test step includes multiple configuration items, and different configuration items are recorded in different columns.
[0072] In an exemplary embodiment, the configuration information of the test case generation table includes at least one of the following configuration items: the serial number of the test step, the row group to which the test step belongs, whether the test step is a loop operation, loop operation configuration information, the generation condition of the test step, the first operation of the user interface UI program, the second operation of the automated test program, the time limit condition provided to the automated test program to determine whether the test result is correct, the time limit condition provided to the automated test program to continuously execute the test step, the first expected result, and the second expected result;
[0073] Among them, the first expected result is a correct test result for display in the user interface; the second expected result is a correct test result for reference used by the automated test program to determine whether the actual test result is correct.
[0074] In the test case generation table, the test steps are grouped by row according to the route type; the route types include: train route, shunting route, push route and continuation route. For example, in the test case generation table, the multiple rows with test step serial numbers ab are the test step configuration information of the test case of the route type being the train route. The multiple rows with test step serial numbers cd are the test step configuration information of the test case of the route type being the shunting route.
[0075] The loop operation configuration information includes at least one of the following: the test step number included in the loop body, the number of loops, the loop variable and the initial value of the loop variable, and the change step of the loop variable. The change step of the loop variable is, for example, +1, -1, etc.
[0076] In an exemplary embodiment, the time limit condition includes at least one of the following: an interval from operation to judgment, a minimum duration for a correct judgment to be made, a maximum duration for a correct judgment to be made, and a pause time after a successful judgment.
[0077] The interval from operation to judgment refers to the interval time from the execution of the operation step to the judgment of the test result. The minimum duration of continuous correct judgment refers to the shortest time for judging that the test result of the operation step is correct and the correct state needs to continue. The maximum duration of continuous judgment refers to: if the test result of the operation step is incorrect, continue to judge, and if the correct test result is not obtained after the maximum duration, it is determined that the operation step is executed incorrectly. The pause time after successful judgment refers to: after judging that the current operation step is executed correctly, wait for a period of time before executing the next operation step.
[0078] In an exemplary embodiment, generating a corresponding test step script according to the operation configuration of the test step includes:
[0079] Substituting the actual values of the relevant attributes of the route obtained into the configuration information of the test step in the test case generation table to obtain the test step script of the route;
[0080] The configuration information in the test case generation table includes operation configurations of relevant attributes of the route.
[0081] In an exemplary embodiment, obtaining the relevant attribute information of the route according to the configuration information requirements of each test step in the test case generation table includes any one of the following obtaining methods:
[0082] Directly obtain a single attribute value, obtain one of multiple attribute values, iterate over each of multiple attribute values in a loop operation, obtain the total number of attribute values of an attribute, obtain the last attribute value of an attribute, and obtain the set of remaining attribute values in multiple attribute values of an attribute after removing a specified attribute value.
[0083] Table 5 provides an example of multiple ways of obtaining the relevant attribute information of the route. As shown in Table 5, the first column is the acquisition method, the second column is an example of the configuration item of the test case generation table, and the third column is the result of substituting the attribute information into the configuration item.
[0084] Table 5
[0085]
[0086] In an exemplary embodiment, the generation conditions of the test step include two types: single conditions and compound conditions;
[0087] The single condition includes any one of the following: unconditional, skip, equal, not equal, empty, not empty, greater than, less than, include, not include, overlap, and do not overlap.
[0088] The compound condition includes any one of the following: an AND operation, an OR operation, and a nested operation.
[0089] Table 6 gives an example of a single condition. As shown in Table 6, the first column is the condition name, the second column is the condition example, and the third column is the result of the condition execution.
[0090] Table 6
[0091]
[0092] Table 7 gives an example of a compound condition. As shown in Table 7, the first column is the condition name, the second column is the grammatical representation of the condition, the third column is the condition example, and the fourth column is the meaning explanation of the condition.
[0093] Table 7
[0094]
[0095]
[0096] The attribute name in each cell content of the test case generation table is filled in the recognition characters "<>", and is replaced by the actual attribute value of this route when generating the test case steps. For example, the content of column C of a row is "Press the button to cancel the route: always cancel, <start button>", and assuming that the attribute value of <start button> of route 1 is "XLA", the test step of this step of route 1 generated by column C is "Press the button to cancel the route: always cancel, XLA". Assuming that the attribute value of <start button> of route 2 is "XDLA", the test step of this step of route 2 generated by column C is "Press the button to cancel the route: always cancel, XDLA".
[0097] In an exemplary embodiment, the method further includes:
[0098] The test case is sent to the automated test program through the automated test program interface, and the test result of the automated test program executing the test case is obtained and saved.
[0099] In an exemplary embodiment, the method further includes:
[0100] Perform at least one of the following processing on the test case of at least one signal interlocking relationship test of any route: save, enter the test results and export the test table.
[0101] The embodiment of the present application can flexibly expand the attribute information of the route, and can generate the attribute information of the route by simply configuring the attribute generation rule set. The test case generation table can also be flexibly configured according to the route type and the signal type of the signal interlocking relationship test, so as to adjust the test steps of the specific test case.
[0102] The present application embodiment provides a test case generation device for a train control and interlocking integrated system. Figure 2 As shown, a test case generating device for a train control and interlocking integrated system comprises:
[0103] An attribute generation rule establishing module 10, configured to establish an attribute generation rule set;
[0104] The attribute generation engine module 20 is configured to extract the interlock signal data of each route from the interlock table according to the attribute generation rule set, and generate attribute information of the route based on the interlock signal data of each route; wherein the interlock signal data of at least one route is recorded in the interlock table;
[0105] The case generation configuration module 30 is configured to use a spreadsheet tool to establish a test case generation table for at least one signal interlocking relationship test; wherein the test case generation table records configuration information of at least one test step, and the configuration information includes: generation conditions and operation configuration of the test step;
[0106] The case generation engine module 40 is configured to obtain a test case generation table for any signal interlocking relationship test, and for any route, obtain relevant attribute information of the route according to the requirements of the configuration information of each test step in the test case generation table; when the route meets the generation condition of the test step, a corresponding test step script is generated according to the operation configuration of the test step; when the route does not meet the generation condition of the test step, no corresponding test step script is generated; and a collection of all test step scripts of the route is used as a test case for the route under the signal interlocking relationship test.
[0107] The train control interlocking integrated system test case generation device provided in the embodiment of the present application establishes an attribute generation rule set, extracts the interlocking signal data of each route from the interlocking table according to the attribute generation rule set and generates the attribute information of the route, and defines a general generation method of the test steps of all routes under each signal interlocking relationship test through a spreadsheet tool. Since the attribute information of each route is different, the same test case generation table can generate test cases including different test steps for different routes, thereby realizing the automatic generation of test cases for various routes and various signal interlocking relationship tests, thereby improving the efficiency of test case generation and reducing the intensity of manual labor.
[0108] In an exemplary embodiment, Figure 3 As shown, the device also includes:
[0109] An input audit rule set establishing module 50, configured to establish an input audit rule set;
[0110] The input audit engine module 60 is configured to audit the interlocking signal data of each route in the interlocking table according to the input audit rule set; if a certain interlocking signal data fails the audit, an audit failure alarm message is generated for the interlocking signal data.
[0111] In an exemplary embodiment, Figure 4 As shown, the device also includes:
[0112] The automated test interface module 70 is configured to send a test case to the automated test program through an automated test program interface, obtain a test result of the automated test program executing the test case, and save the test result.
[0113] In an exemplary embodiment, Figure 5 As shown, the device also includes:
[0114] The case management module 80 is configured to perform at least one of the following processing on a test case of at least one signal interlocking relationship test of any route: saving, entering test results and exporting a test table.
[0115] like Figure 6 As shown, an embodiment of the present application provides a test case generating device for a train control and interlocking integrated system, comprising: a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above-mentioned test case generating method for a train control and interlocking integrated system are implemented.
[0116] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for generating test cases for a train control and interlocking integrated system.
[0117] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0118] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include at least one of the features.
[0119] In the description of the present application, “plurality” means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0120] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0121] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0122] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for generating test cases for a train control and interlocking integrated system, comprising: Establishing an attribute generation rule set, extracting interlock signal data of each route from the interlock table according to the attribute generation rule set, and generating attribute information of the route based on the interlock signal data of each route; Using a spreadsheet tool to establish at least one test case generation table for a signal interlocking relationship test; wherein the test case generation table records configuration information of at least one test step, the configuration information including: generation conditions and operation configuration of the test step; For any signal interlocking relationship test, obtain the test case generation table of the test; for any route, obtain the relevant attribute information of the route according to the requirements of the configuration information of each test step in the test case generation table; when the route meets the generation condition of the test step, generate the corresponding test step script according to the operation configuration of the test step; when the route does not meet the generation condition of the test step, do not generate the corresponding test step script; and take the set of all test step scripts of the route as the test case of the route under the signal interlocking relationship test.
2. The method according to claim 1, characterized in that: The attribute generation rule set includes: rules for directly generating attributes and rules for indirectly generating attributes; The rule for directly generating attributes is to use the data obtained from the interlocking table directly as the attribute value of the attribute; the rule for indirectly generating attributes is to use the relevant data obtained from the interlocking table as the attribute value after performing calculations; The relevant data obtained from the interlocking table is subjected to operation processing, including at least one of the following processing: combination operation, predefined operation and association operation.
3. The method according to claim 1, characterized in that: In the test case generation table of any signal interlocking relationship test, the configuration information of different test steps is recorded in different rows. The configuration information of one test step includes multiple configuration items, and different configuration items are recorded in different columns.
4. The method according to claim 3, characterized in that: The configuration information of the test case generation table includes at least one of the following configuration items: the serial number of the test step, the row group to which the test step belongs, whether the test step is a loop operation, loop operation configuration information, the generation condition of the test step, the first operation of the user interface UI program, the second operation of the automated test program, the time limit condition for the automated test program to determine whether the test result is correct, the time limit condition for the automated test program to continuously execute the test step, the first expected result and the second expected result; Among them, the first expected result is a correct test result for display in the user interface; the second expected result is a correct test result for reference used by the automated test program to determine whether the actual test result is correct.
5. The method according to claim 1, characterized in that The method further comprises: An input audit rule set is established, and the interlocking signal data of each route in the interlocking table is audited according to the input audit rule set; if a certain interlocking signal data fails the audit, an audit failure alarm message is generated for the interlocking signal data.
6. The method according to claim 1, characterized in that The method further comprises: The test case is sent to the automated test program through the automated test program interface, and the test result of the automated test program executing the test case is obtained and saved.
7. The method according to claim 1, characterized in that Generate a corresponding test step script according to the operation configuration of the test step, including: Substituting the actual values of the relevant attributes of the route obtained into the configuration information of the test step in the test case generation table to obtain the test step script of the route; The configuration information in the test case generation table includes operation configurations of relevant attributes of the route.
8. A test case generating device for a train control and interlocking integrated system, comprising: An attribute generation rule establishment module, configured to establish an attribute generation rule set; The attribute generation engine module is configured to extract the interlock signal data of each route from the interlock table according to the attribute generation rule set, and generate attribute information of the route based on the interlock signal data of each route; wherein the interlock signal data of at least one route is recorded in the interlock table; A case generation configuration module is configured to use a spreadsheet tool to establish a test case generation table for at least one signal interlocking relationship test; wherein the test case generation table records configuration information of at least one test step, and the configuration information includes: generation conditions and operation configuration of the test step; The case generation engine module is configured to obtain a test case generation table for any signal interlocking relationship test, and for any route, obtain relevant attribute information of the route according to the requirements of the configuration information of each test step in the test case generation table; when the route meets the generation condition of the test step, a corresponding test step script is generated according to the operation configuration of the test step; when the route does not meet the generation condition of the test step, no corresponding test step script is generated; and a collection of all test step scripts of the route is used as a test case for the route under the signal interlocking relationship test.
9. A test case generating device for a train control and interlocking integrated system, comprising: A memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the method for generating a test case for a train control and interlocking integrated system according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the method for generating a test case for a train control and interlocking integrated system according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Test case generation method and device, computer equipment and storage medium
CA3131079A1
Automatic generation method of train control system test sequence
CN103092755A
Method for generating conflict access test case suitable for interlocking automatic testing
CN110334022A
Signal equipment detection method for annual interlocking electric service experiment
CN111913882A
CTCS-3 level train control system integrated test method
CN113212502A