Railway signaling system is an important system to ensure the safe operation of trains and improve railway efficiency.As a railway signal system to ensure train safety,computer interlocking system should have high reliability and high safety.Therefore,for the computer interlocking system to be put into use,in order to ensure the quality of the product,it must undergo a detailed and complete functional test before leaving the factory.At present,there are many institutions conducting research on automatic testing of computer interlocking systems,and these studies have improved the automation level of interlocking testing.However,there are still the following problems: test case generation and test case execution are often carried out separately and not integrated;third-party execution of test cases is still performed manually,and the degree of automation is low;automatic tests cannot test different interlocking systems.In order to better solve the above problems,it is necessary to design a computer interlocking automatic test platform that can test a variety of computer interlocking systems and has a high degree of integration.According to the functional test outline and test specification of computer interlocking software,this paper uses C# programming language,and designs and implements computer interlocking automatic test host computer software and interlocking test execution software under the development environment of Visual Studio 2017.The computer interlocking automatic test host computer software realizes the function of test case generation and test result judgment,and the interlocking test execution software realizes the test case execution function.First,obtain the station yard static data through the computer interlocking host computer interface identification module,and then generate the station interlock table;secondly,obtain the test case from the test case generation module based on the interlock table;then use the Auto It automated testing technology to write the operation command;then,analyze the test case to obtain the test content,and then obtain the test parameters and corresponding operation commands,form the operation commands into a test script and execute it,and record the test process at the same time;finally,based on the interface recorded in the test process,the dynamic data of the station is obtained from the interface recognition module of the computer interlocking host computer,and then the actual test result is determined,and the test result is compared with the expected result to complete the test result judgment,and finally generate the test report.The main work of this thesis is as follows:(1)The computer interlocking system,interlocking software test and computer interlocking automatic test platform are introduced;the functional requirements and work flow of the test platform are clarified,and the overall structure of the software related to automatic testing is designed.(2)According to the overall structure of the software,each functional module of the computer interlocking automatic test upper computer software is designed in detail.Realize the communication between automatic test host computer software and test execution software,station data acquisition,interlock table generation,manual correction of station and interlock table data,test case acquisition,and test result judgment and output.(3)According to the overall structure of the software,each functional module of the interlocking test execution software is designed in detail to realize the writing of operation commands,the acquisition of the interface of the interlocking host computer,the analysis and execution of test cases,and the recording of the test process.(4)According to the workflow,the functions of the two software implementations related to automatic testing are shown.The function test of a computer interlock simulation system is carried out by using the computer interlocking automatic test platform,and compared with the manual test.The results show that the platform automatically completes the whole process from test case generation to test case execution to test result judgment,which improves the level of third-party test automation;station data acquisition has nothing to do with the model of the interlocking system,and the platform can realize interlocking of different models.Automatic testing of the system. |