[0062] The specific embodiments of the present invention will be further described below in conjunction with the drawings and embodiments. The following embodiments are only used to illustrate the technical solutions of the present invention more clearly, and cannot be used to limit the protection scope of the present invention.
[0063] The present invention provides a testing method of interlocking software for testing the interlocking software of the interlocking system, such as figure 1 As shown, the method includes:
[0064] Step 101: Receive a test instruction input by a user, where the test instruction is used to indicate the test content of the current test.
[0065] Step 102: Determine test parameters required to complete the test content.
[0066] Step 103: Simulate the test parameters, and input the simulated test parameters into the parameter collection interface of the interlocking software.
[0067] In the test method provided by the first embodiment of the present invention, after receiving the test instruction input by the user, the test parameters required to complete the test content are determined according to the test content indicated by the test instruction, and then the test parameters are simulated and simulated The test parameters are entered into the interlocking software. In this way, the test system can automatically complete the input of test parameters during the test process, which improves the degree of automation of the test. Reduce the burden of testers, and improve the accuracy of the test.
[0068] In practical applications, the corresponding relationship between the test content and the test parameters can be stored in the test equipment in advance, so that the test equipment can determine the required test parameters according to the test content in the test instruction after receiving the test instruction.
[0069] Preferably, the step 103 can also be replaced by inputting an analog trigger signal into the on-site control system, so that the on-site control system inputs corresponding parameters to the parameter collection interface of the interlocking software according to the simulated trigger signal .
[0070] On the basis of the first embodiment, the test method provided in the second embodiment of the present invention can also be as figure 2 Shown, including:
[0071] Step 201 to step 203 are the same as step 101 to step 101.
[0072] Step 204: Collect the output result of the interlocking software.
[0073] Step 205: Generate a test result according to the output result of the interlocking software.
[0074] Step 206: Output the test result.
[0075] In the above step 205, there can be many ways to generate the test result based on the output result, such as generating a corresponding curve based on the output signal in the output result, and outputting the curve as the output test result, or the signal collected at each sampling point Exporting as a table and outputting, etc., the specific use of the worsening Zhennanguan method does not affect the protection scope of the present invention.
[0076] In this way, the test system can automatically output test results, which reduces the burden on testers for data analysis and further improves test efficiency.
[0077] Preferably, the above-mentioned step 204 can be implemented in one of the following ways:
[0078] Method (a), collect the output signal of the interlocking software, and use the collected output signal as the output result.
[0079] Method (b): Collect the output result of the physical device input by the output signal of the interlocking software, and use the output result of the physical device as the output result of the interlocking software.
[0080] Method (c): Collect the output result of the simulation device inputted by the output signal of the interlocking software, and use the output result of the simulation device as the output result of the interlocking software.
[0081] The emulators here can include:
[0082] Trackside simulator:
[0083] All on-site trackside equipment and their status are displayed through the interface. In this automated test system, the trackside simulator needs to open the corresponding interface; the interlocking automated test software can send corresponding commands to the trackside simulator, such as: section occupation The current status of the corresponding equipment can also be obtained from the trackside simulator.
[0084] Relay combination rack simulator:
[0085] The relay combination rack simulator is mainly used to drive and collect signals for the hardware function test system.
[0086] After the relay combination rack simulator receives the trackside equipment status information from the trackside simulator, it converts the trackside equipment status information into corresponding relay code positions to drive the hardware function test system; collect the relay code position information of the hardware function test system, This code position information is reset accordingly and sent to the trackside simulator subsystem. The relay combination rack simulator realizes the test of actual CI related functions through fault injection.
[0087] LEU emulator:
[0088] Used to simulate the actual LEU subsystem. The LEU simulator is mainly used for the point type MA screening function. The CI simulator performs the CAN code bit information and the LEU status serial code bit information interaction, and the actual CI performs the LEU status serial code bit information interaction to realize the point type MA screening function. And send the selected point MA to the trackside simulator.
[0089] CI simulator:
[0090] Used to simulate actual CI equipment. In the automated test of the interlocking machine, there will be multiple interlocking stations. The CI simulator can form a station connection with the actual CI, and the automated test environment is more complete. The CI simulator can basically replace most of the functions of the actual CI. In the automated test system, it needs to communicate with the interlocking automated test software.
[0091] ZC emulator:
[0092] Used to simulate actual ZC equipment. In the automated test of the interlocking machine, a CBTC level test is required. Through the interaction between the ZC simulator and the VOBC simulator, the train can be sequenced, the train’s safe position can be calculated, and the mobile authorization under the CBTC level can be sent to the train. Train cancellation, monitoring the communication status with the train, etc.; ZC simulator needs to communicate with the interlocking automation test software.
[0093] VOBC emulator:
[0094] Used to simulate the actual VOBC. The VOBC simulator can easily add simulation cars, and plays an irreplaceable role in actual tests. Adding the interface communication between the interlocking automated test software and the simulated car in this architecture can realize the automated test of the sports car scene.
[0095] Of course, in practical applications, those skilled in the art may also use other methods, and the preferred implementation manners provided by the embodiments of the present invention cannot understand the limitation of the protection scope of the present invention.
[0096] Preferably, before step 206 in the second embodiment, the method may further include:
[0097] Receive test expectations entered by users;
[0098] In this case, step 206 specifically includes:
[0099] Compare the test expectation input by the user with the output result of the interlocking software, and output the test result according to the comparison result.
[0100] Preferably, based on any of the above embodiments, the third embodiment of the present invention provides the following method for the test system to obtain the user's test instruction, and the method may also include such as image 3 Shown:
[0101] Step 301: Receive a test trigger instruction input by a user;
[0102] Those skilled in the art can easily understand that the test trigger instruction here is an instruction to trigger the test system to perform a test.
[0103] Step 302: Instruct the user to input a test instruction into a specific position in the test script.
[0104] Step 303: Receive a test instruction input by the user at the specific location.
[0105] In this way, structured test scripts can be provided to facilitate testers to create and edit test scripts.
[0106] Preferably, the test method provided in the fourth embodiment of the present invention can also be used to test the hardware of the interlocking system, such as Figure 4 As shown, the test process can include:
[0107] Step 401: Receive a hardware test instruction input by a user, where the hardware test instruction includes a signal that needs to be collected by the hardware under test.
[0108] Step 402, call the corresponding tested hardware to collect the corresponding signal.
[0109] Step 403: Determine whether the tested hardware is normal according to the signal fed back by the tested hardware.
[0110] Step 404: Output the judgment result.
[0111] The tested hardware here can include: interlocking host, I\O cabinet, relay box, etc.
[0112] Similarly, because the system under test automatically collects the corresponding signals and automatically outputs the test results on whether the hardware under test is normal, the test complexity is reduced and the test efficiency is improved.
[0113] Based on the same concept, the fifth embodiment of the present invention also provides an interlocking software test system, such as Figure 5 As shown, the system includes:
[0114] The test instruction collection interface 501 is configured to receive a test instruction input by a user, and the test instruction is used to indicate the test content of the current test;
[0115] The parameter determination module 502 is configured to determine the test parameters required to complete the test content;
[0116] The parameter simulation module 503 simulates the test parameters and inputs the simulated parameters to the parameter collection interface of the interlocking software.
[0117] Preferably, the system further includes:
[0118] Output result collection module, used to collect the output result of the interlocking software;
[0119] The test result generation module generates test results according to the output results of the interlocking software;
[0120] The feedback module is used to output the test results generated by the test result generation module.
[0121] Preferably, the system further includes:
[0122] The output result collection module is specifically used for
[0123] Collect the output signal of the interlocking software, and use the collected output signal as the output result; or,
[0124] Collect the output result of the physical device inputted by the output signal of the interlocking software, and use the output result of the physical device as the output result of the interlocking software; or,
[0125] Collect the output result of the simulation device inputted by the output signal of the interlocking software, and use the output result of the simulation device as the output result of the interlocking software.
[0126] Preferably, the system further includes:
[0127] The test expectation collection module is used to receive the test expectation input by the user;
[0128] The feedback module is specifically used to compare the test expectations input by the book with the output result of the interlocking software, and output the test result according to the comparison result.
[0129] Preferably, the system further includes:
[0130] The trigger module is used to receive the test trigger instruction input by the user;
[0131] The instruction module is used to instruct the user to input the test instruction to a specific position in the test script after the trigger module receives the test trigger instruction;
[0132] The test instruction collection interface 501 is specifically configured to receive the test instruction input by the user at the specific location.
[0133] Preferably, the system is also used to test the hardware of the interlocking system,
[0134] The test instruction collection interface 501 is also used to receive a hardware test instruction input by a user, and the hardware test instruction contains a signal that needs to be collected by the hardware under test;
[0135] It also includes: calling module, which is also used to call the corresponding tested hardware to collect the corresponding signal;
[0136] The test result generation module is also used to determine whether the tested hardware is normal according to the signal fed back by the tested hardware;
[0137] The feedback module is also used to output the judgment result of the test result generation module.
[0138] The above are only the preferred embodiments of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the technical principles of the present invention, several improvements and modifications can be made. These improvements and modifications It should also be regarded as the protection scope of the present invention.