CN112162916B - LKJ test system capable of automatically generating test script - Google Patents

LKJ test system capable of automatically generating test script Download PDF

Info

Publication number
CN112162916B
CN112162916B CN202010900527.5A CN202010900527A CN112162916B CN 112162916 B CN112162916 B CN 112162916B CN 202010900527 A CN202010900527 A CN 202010900527A CN 112162916 B CN112162916 B CN 112162916B
Authority
CN
China
Prior art keywords
test
lkj
script
software
complete machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010900527.5A
Other languages
Chinese (zh)
Other versions
CN112162916A (en
Inventor
王永和
张锦飞
孔湘洁
杜迎杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jiaoda Signal Technology Co Ltd
Original Assignee
Beijing Jiaoda Signal Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jiaoda Signal Technology Co Ltd filed Critical Beijing Jiaoda Signal Technology Co Ltd
Priority to CN202010900527.5A priority Critical patent/CN112162916B/en
Publication of CN112162916A publication Critical patent/CN112162916A/en
Application granted granted Critical
Publication of CN112162916B publication Critical patent/CN112162916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The LKJ test system capable of automatically generating the test script comprises an LKJ complete machine test tool and upper computer software, wherein the LKJ complete machine test tool is used for outputting signals required by an LKJ host machine and collecting signals generated by the LKJ host machine, and the upper computer software comprises: script programming software, LKJ test platform software and server software; the LKJ test platform software can load the test script, analyze the content of the test script, send the analyzed test script to the LKJ complete machine test fixture through the serial port, drive the LKJ simulation locomotive to run according to the script content by the LKJ complete machine test fixture, carry on the automatic test. The invention has the technical advantages that: the LKJ test system can record manual test steps and convert the manual test steps into test scripts, record key operation of DMI of LKJ and convert the key operation of DMI of LKJ into test scripts, and convert LKJ recorder files into test scripts. The efficiency of scripting and testing is improved.

Description

LKJ test system capable of automatically generating test script
Technical Field
The invention relates to the field of railway communication signals, in particular to a test system of a train operation monitoring and recording device, and a test script of the system can be automatically generated.
Background
The train operation monitoring device (LKJ) plays an extremely important role in ensuring the operation safety of the train, and in order to ensure the quality of the LKJ host, the host software must be subjected to strict system test after each modification and upgrade.
At present, the LKJ software function is verified and confirmed by adopting a traditional manual test mode, and the LKJ software function is automatically tested by adopting a manual programming mode, so that script programming is high in requirements on script programming personnel, meanwhile, host business needs to be very familiar, logic is kept clear and correct during programming, otherwise, the script programming is unreasonable, and the test cannot be executed correctly.
LKJ during operation, the logger board will log a large amount of LKJ data. The data includes key information such as road crossing, driver operation, real speed, speed limit, position, locomotive signals and the like of the locomotive, and all other input information, output information and the like of LKJ. On the one hand, during laboratory test, the on-site road crossing test is generally simulated manually, and the real running condition of the train cannot be completely restored; on the other hand, if a problem is encountered in the field, it needs to be reproduced in a laboratory. Therefore, how to convert the on-site recorder data and then use the on-site recorder data to automatically test the LKJ train operation monitoring device, and meanwhile solve the problem that the manual writing of test scripts is troublesome, so that the test efficiency is improved, the test cost is reduced, and the problem which needs to be solved rapidly nowadays is solved.
Disclosure of Invention
The invention provides a test system of an LKJ train operation monitoring device, which can perform manual test and automatic test on the train operation monitoring device.
The invention provides an LKJ test system capable of automatically generating test scripts, which comprises an LKJ complete machine test tool and upper computer software, wherein the LKJ complete machine test tool is used for outputting signals required by an LKJ host machine and collecting signals generated by the LKJ host machine, a board card in the tool is provided with a processor MCU, and the board card is provided with corresponding MCU software,
The upper computer software comprises: script programming software, LKJ test platform software and server software;
The script programming software is used for programming a test script, and the software not only supports a tester to manually program the test script, but also supports a mode of automatically generating the test script;
The automatic generation mode of the test script comprises the following steps: recording a manual test step and converting the manual test step into a test script, recording a DMI key and converting the DMI key into the test script, and converting an LKJ recorder file into the test script;
The LKJ test platform software can load the test script, analyze the content of the test script, send the analyzed test script to the LKJ complete machine test tool through a serial port, and drive the LKJ simulation locomotive to run according to the script content by the LKJ complete machine test tool to perform automatic test.
The invention has the technical advantages that: the LKJ test system can record manual test steps and convert the manual test steps into test scripts, can record key operation of DMI of LKJ and convert the key operation of DMI of LKJ into the test scripts, and can convert LKJ recorder files into the test scripts. The converted test script can be automatically executed after being loaded by LKJ test platform software, so that the efficiency of script programming and testing is improved.
Drawings
FIG. 1 is a block diagram of an LKJ test system according to the present invention
FIG. 2 is a flow chart of the working principle of recording manual test steps and converting them into test scripts
FIG. 3 is a schematic diagram of an architecture for converting a recorder file into a test script and performing an automatic test
FIG. 4 is a flowchart showing the operation of converting a recorder file into a test script
Detailed Description
The present invention will be described in detail with reference to specific embodiments. The following examples will assist those skilled in the art in further understanding the present implementation, but are not intended to limit the invention in any way. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the present invention, which are within the scope of the present invention.
The LKJ test system of the present invention comprises: LKJ complete machine test fixture and upper computer software. The LKJ complete machine testing tool is used for outputting signals such as speed, pressure, switching value and the like required by an LKJ host machine, collecting signals such as real-speed limit, mileage and the like generated by the LKJ host machine, and a plurality of board cards in the tool are provided with a processor MCU and corresponding MCU software. The upper computer software comprises: script programming software, LKJ test platform software and server software.
The script programming software is used for programming the test script, and the software not only supports a tester to manually program the test script, but also supports a mode of automatically generating the test script.
The automatic generation mode of the test script mainly comprises the following steps: recording manual testing steps and converting the manual testing steps into testing scripts, recording DMI keys and converting the DMI keys into the testing scripts, and converting LKJ recorder files into the testing scripts.
The mode of recording the manual testing step and converting the manual testing step into the testing script refers to the mode of automatically recording the operation step of a tester in the manual testing by the LKJ testing platform software, and after the operation is completed, the testing script is automatically generated by script programming software. The method can help testers to quickly compile and debug scripts, and shortens the time for debugging the scripts.
The mode of recording the DMI keys and converting the DMI keys into the test scripts is mainly that script programming software records all key operations of a tester on the DMI of the LKJ through an LKJ automatic test fixture and converts the key operations into the test scripts, so that script programming time can be shortened.
The mode of converting the recorder file into the test script is that the script programming software converts the content in the recorder file into the test script by reading and analyzing the content of the LKJ recorder file. When the script is executed on the LKJ test system, the script can drive the LKJ to truly simulate the running condition of the locomotive on a road. The method can help testers to quickly reproduce the problems occurring on site, and can realize the simulation test on LKJ in a laboratory, which is the same as the on-site running intersection environment, so that manpower and material resources are greatly saved, and test errors caused by human factors can be avoided.
The LKJ test platform software can load a test script, analyze the content of the test script, send the analyzed test script to the LKJ complete machine test tool through a serial port, and drive the LKJ (train operation monitoring device) to simulate the operation of a locomotive according to the script content by the LKJ complete machine test tool so as to perform automatic test.
The LKJ test platform software can monitor all communication information between the LKJ host and the DMI. When the software executes the test script, the software can acquire the needed parameter information from the LKJ at the corresponding moment according to the content in the script, and compare and judge the parameter information with the expected result set in the test script, and display the judging result and the related detailed information of the LKJ host.
The LKJ test platform software not only can judge whether the related information of the LKJ host accords with the expectations of the testers according to the expected results set in the test script, but also can automatically monitor the abnormal states of various parameters of the LKJ in the running process, and when the parameter information changes which are not reflected in the expected results of the test script or unexpected parameter changes occur, for example, the conditions of emergency braking and the like which happen accidentally in the test process, the test personnel can be timely notified and the current abnormal information is displayed on the interface of the software for the testers to refer to so as to quickly process the related problems.
The LKJ test platform software not only can display the running condition of the current script and the expected result judgment condition in real time in the automatic test process so as to enable a tester to know the test condition in real time, but also can store the test result and detailed information in the automatic test process into the server software after the execution of the test script is completed, thereby facilitating the subsequent tester to inquire the test result and the test detailed information.
The server software can receive and store the test result and the test detailed information uploaded by the LKJ test platform software and store the test result and the test detailed information into a database so as to be stored in a lasting mode.
The server software adopts the WebService technology and the B/S architecture, and can realize access by inputting a fixed website (IP address) through any browser, and filtering the execution detailed information and test results of the query test script. And support exporting test results into a formal PDF file for viewing or saving.
Referring to fig. 1, the LKJ test system of the present invention includes: LKJ complete machine test fixture and upper computer software. The upper computer software comprises: script programming software, LKJ test platform software and server software. The scripting software is used to generate test scripts. The LKJ test platform software is used for reading the test script, sending the test script to the LKJ complete machine test tool through a serial port after analysis, storing test data to the server software, and inquiring a test result through any browser.
The LKJ complete machine testing tool is used for outputting various signals required by the LKJ host machine and collecting signals generated by the LKJ host machine. The LKJ host communicates with the I-end DMI and the II-end DMI through a CAN, and the CAN communication is monitored by the LKJ complete machine test tool. The LKJ complete machine test tool can also operate the I-end DMI and the II-end DMI.
The LKJ complete machine test fixture adopts a standard 3U chassis structure and is realized in the form of a backboard board card and a plurality of plugboards, wherein each plugboard comprises 13 board cards including a communication board, a simulation board, an analog output board, an analog input board, a control board, a key analog board I, a key analog board II and a parallel locomotive signal board, and a TIU signal board, a brake output board, a brake acquisition board, a power board I and a power board II.
The communication board is a bridge for communicating the LKJ complete machine test tool with the LKJ test platform software, is connected with a computer through a serial port, is communicated with other boards inside the tool through a CAN interface, and is used for monitoring the communication between the I-end DMI and the II-end DMI and the LKJ host through the CAN.
The simulation board realizes the serial locomotive signal communication function with the LKJ host machine through the CAN interface.
The analog output board is used for providing analog quantity signals such as pressure, primary side voltage, traction current, diesel speed, inductance coil and the like required by the LKJ host. Wherein the pressure signal, the primary side voltage and the traction current are generated by the MCU and the DAC; the diesel speed and the inductance coil signals are realized through a DDS and a high-precision instrument amplifier. Alternatively, the analog output signal may also be directly provided by a data acquisition card of the PCI interface.
The analog input board is used for collecting the real speed, speed limit, mileage, power supply of a speed sensor and power supply signals of a pressure sensor of the LKJ host, and the signals enter the MCU after passing through the ADC. Optionally, the collected input signal may also directly enter the data collection card of the PCIe interface.
The control board is used for providing a speed signal required by the LKJ host.
The key simulation board I is used for simulating and recording the key function of the DMI at the I end. The LKJ complete machine test fixture collects row and column information of the DMI keys through a parallel port, codes on a key simulation board I, and transmits the information to the LKJ test platform software through a serial port, so that the entry of the DMI keys is completed.
The key simulation board II is used for simulating the function of a II-terminal DMI key.
The parallel port cab signal board is used for providing 16-way variable 50V switching value signals required by the LKJ host. The internal 24VDC fixed power supply is used as an input source, the internal 24VDC fixed power supply is boosted, a PWM signal with a variable duty ratio is generated by a program, the PWM signal is converted into a variable direct current voltage to be used as a feedback signal, so that the 25 VDC-60 VDC voltage with a variable program control output is realized, and then the voltage is divided into 16 paths to be output through a 16-path switching circuit controlled by the program.
The TIU signal board is used for providing 14-way variable 110V switching value signals required by the LKJ host. The implementation is similar to a parallel port cab signal board.
The brake output board is used for providing 6-way fixed 110V switching value signals required by the LKJ host, the voltage is boosted to 110VDC from an internal 24VDC fixed power supply, and then the voltage is divided into 6-way output through a 6-way switching circuit controlled by a program.
The power panel I is used for converting 24VDC into 5VDC and positive and negative 15VDC low-voltage power supplies which can normally work in the LKJ complete machine testing tool.
The power panel II is used to convert 110VDC into 24VDC power, and a power switching circuit to provide 110VDC to the LKJ host.
Many board cards in the LKJ complete machine test fixture are provided with a processor MCU, and corresponding MCU software is provided. When executing the test script, the MCU software of each board can identify which commands need to be executed by the corresponding board according to the command ID of the test script.
And the command of the test script is sent to the LKJ complete machine test tool by LKJ test platform software to be executed. However, since the command is sent from the LKJ test platform software, the completion of the reception of the LKJ complete machine test tool is achieved, and then the command is started to be executed, a certain time delay is needed to be carried out in the series of processes, the real-time performance of the system is affected by the time delay, and the executed command is not executed in time.
In order to solve the problem of real-time performance, after the automatic test is started, LKJ test platform software sends all script commands to an LKJ complete machine test tool, MCU software of each board card in the tool sorts according to script command IDs, caches corresponding commands and executes the commands regularly. The main implementation mode is as follows:
and the LKJ test system takes the time stamp of the communication board in the LKJ complete machine test tool as a time reference, and periodically time-corrects other boards and cards of the LKJ complete machine test tool and LKJ test platform software to obtain the calibrated time stamp.
All test scripts carry the command execution time. The time is relative time, the execution time of the first command of the script is 0, and the execution time of the rest commands is based on the first command.
After the automatic test is started, LKJ test platform software adds the execution time of all commands to the calibrated time stamp and the configured fixed delay value to obtain the absolute execution time of all commands in the test script.
After the absolute execution time of the test script is calculated, the LKJ test platform software sends a command for starting automatic test to the LKJ complete machine test tool.
After receiving a command for starting automatic test, the LKJ complete machine test tool actively requests a script from LKJ test platform software. The LKJ test platform software sends the test script according to the protocol.
MCU software of each board card in the tool sorts according to the test script command ID and caches corresponding commands.
Because the execution time of the script command is increased by a fixed delay value, the command is not executed during the period that the LKJ test platform software sends the command to the LKJ complete machine test tool, but is not executed until the absolute execution time, so that the execution of all commands on time can be ensured.
The script programming software provided by the system mainly comprises seven modules, namely a test script management module, a test script compiling module, a test script simulation module, a test script editing module, a conversion intermediate file module, a DMI key recording module and a conversion LKJ recorder file module.
The test script management module can manage the test script, and the test script can realize test cases and test sequences.
The test script compiling module can compile the generated script to check whether the generated script has grammar errors or trigger condition calculation errors.
The test script simulation module can simulate and run the generated script to check whether the generated script has a logic error problem or not.
Example 1
The test script editing module can edit the test script. When the test script is edited, the line model module and the graphical parameter setting module displayed in the main interface of the script programming software can be used for generating and updating the automatic test command, and operations such as adding, deleting, copying, pasting and the like can be performed on the command. The line model module is that software loads a line data file, reads relevant information such as a station, a signal machine, an in-out fork and the like in the file, establishes a model of the whole intersection on a software interface according to train information, and displays the current position of the train. The graphical parameter setting module can build an automatic test command model at a corresponding position by dragging models of different parameter setting modules, and the automatic test command model comprises all parameters required for generating an automatic test command. After the parameters are set, a one-key generation command and a one-key update command can be realized.
When the test script is edited, the test script editing module can automatically calculate the triggering time of the automatic test command according to the user requirement; supporting setting and displaying comments for each command; the management of the generated automatic test commands, namely up, down or delete commands, copy and paste commands, cancel paste, etc., is supported.
The test script editing module establishes a line model, edits the test script in a graphical mode, and facilitates the compiling of the test script. However, the test script needs to be manually compiled, the tester needs to edit the test script in an offline state according to the test case or the test sequence, and the test script needs to be debugged after the script is edited.
Example two
The test system not only supports automatic test by executing the test script and driving the LKJ, but also supports the manual test by a tester by setting related parameters through the manual test module of the LKJ test platform software.
The LKJ test platform software also supports the operation of recording the manual test by a tester on the software interface, and generates an intermediate file. The intermediate file is converted into a test script by the intermediate file conversion module of the scripting software.
The function of converting the operation executed by the tester during manual testing into the intermediate file and finally converting the operation into the test script enables the tester to timely acquire LKJ feedback during script compiling, increases the logicality and the robustness of the test script, and improves the efficiency of script compiling. In order to quickly write the test script, the logic of a tester in writing the script is increased. The test personnel can timely receive feedback information of the DMI during operation and adjust the test steps according to the feedback information, so that the time for setting parameters of each module can be selected more flexibly, the recorded test script has strong logic, the correctness of script execution can be ensured almost without debugging again, and the time for script debugging after script programming is completed is greatly reduced. And the trigger time of each step in the locomotive position and test script is calculated when the script is programmed is saved.
The LKJ test platform software of the invention can record the operation of a tester during manual test, and the operation of the tester,
The method comprises the steps of setting related parameters of a speed module, namely parameters such as a speed value parameter, an acceleration value parameter, a duty ratio parameter, a phase difference parameter, a pulse number parameter, an amplitude parameter, a main wheel diameter value and a standby wheel diameter value.
The method comprises the setting of related parameters of locomotive signals, namely, the type of the system, the related parameters of serial locomotive signals, the related parameters of parallel locomotive signals, the related parameters of induction coils, the related parameters of alternating current counting, plane shunting and the like.
The method comprises the steps of setting TIU related parameters, namely a reference voltage value, a working condition and handle related parameters, setting single-point soil files and double-point soil files, and setting parameters such as manual vigilance and periodic vigilance.
The method comprises setting parameters related to analog quantity, namely pipe pressure, gate pressure, cylinder pressure parameters and the like, parameters related to diesel speed signals, primary side voltage, current and the like.
Including controlling the operation of the power switch of the train operation monitoring device, i.e. including the operation of a single switching power supply or multiple switching power supplies.
After the above operation is completed, the LKJ test platform software can record the content and time operated by each operation step and the comments for the present operation step according to the operation sequence of the tester.
After the recording is completed, the LKJ test platform software can convert all recorded contents into an intermediate file and add abstract information for the whole operation process.
The intermediate file conversion module of the scripting software can analyze the intermediate file and convert the intermediate file into a test script according to the content of the intermediate file. And adding abstract related information for the script.
Fig. 2 is a working schematic diagram of recording manual testing steps and converting to generate test scripts according to the present embodiment.
When a tester performs manual test, LKJ test platform software records parameter values of each module of operation, records the moment of parameter change, and generates an intermediate file when recording is finished. A convert intermediate file module of the scripting software converts the intermediate file into a test script.
Specifically, at the beginning of recording, the software internally prepares for recording: and (5) resetting the time stamp, and waiting for the operation of the tester.
When a tester performs manual testing on related parameters of interface operation of LKJ test platform software, the software can record the content of operation of the tester and the time of operation, and corresponding comments are added.
After the operation of the tester is recorded, the software can call the corresponding module in the software to convert the operation of the tester into an intermediate file.
When the script programming software converts the intermediate file, the script programming software can generate a test command in the corresponding test script according to the operation content of each step recorded in the intermediate file, and automatically calculate the triggering time of the test command according to the recorded operation time. And adds a corresponding annotation to each test command.
After the scripting software converts all the operation steps recorded in the intermediate file into test commands, the commands can be formed into a test script, and abstract information for the whole script is added.
Example III
The script programming software of the test system not only supports the conversion of an intermediate file generated by LKJ test platform software into a test script, but also can automatically record all key operations of a tester on the DMI of LKJ through a recording DMI key module of the software, and generate the test script.
Different from the above mode of recording the operation steps of the tester and finally converting into the test script, the recording DMI key module can record all key operations of the tester on the DMI of LKJ and convert into the test script. When the script runs on the automatic test platform software, the DMI key of the LKJ can be driven, and the DMI key is automatically operated according to the operation sequence and the time when recording. Therefore, test scripts for operating the DMI keys can be quickly compiled.
After the recording is started, serial port information sent by the LKJ complete machine testing tool is sent to the recording DMI key module, the module records the DMI key content, and after the recording is finished, the module is automatically converted into a test script. The serial information includes a key value of the key, a time of the key, and a duration of the key.
Example IV
The LKJ recorder file conversion module can automatically convert the recorder file generated by the LKJ host train monitoring device into a test script and automatically test the test script.
In order to more rapidly reproduce the problems occurring on site and simulate the real locomotive running environment in a laboratory to carry out the intersection test on the LKJ, the conversion LKJ recorder file module of the script programming software of the system can rapidly convert a large number of recorder files of the road bureau on-site trains in running into test scripts, and when the scripts are executed on an automatic test platform, all input quantities and operations required by the trains in running on the whole intersection can be truly simulated, and the running state of the trains in running on the intersection is restored, so that the rapid reproduction of the on-site problems and the simulation test on the LKJ in the laboratory which is identical to the on-site running intersection environment can be realized.
The LKJ recorder file conversion module can read all data frames in the recorder file, analyze relevant parameters in each frame and convert the relevant parameters into corresponding automatic test commands. And combines all automatic test commands into a test script.
The converted automatic test commands include a speed signal command, a cab signal command, a TIU signal related command, an analog signal related command, a power switch command, and all commands to operate the DMI button.
When the recorder file is converted, the conversion LKJ recorder file module can add corresponding trigger time for each converted automatic test command according to the occurrence time of each data frame in the recorder file, and add comments for the command for each converted automatic test command according to the type of each data frame of the recorder file.
After the conversion recorder file is completed, the conversion LKJ recorder file module can automatically add summary information for the entire script. And can automatically add relevant commands for setting the initial environment of the train running time to the script. Thereby better simulating the field operation environment.
When converting the recorder file into the test script, the LKJ recorder file conversion module can compress the running time of the converted test script by eliminating useless stopping time under the condition of not influencing the running of the train, so that the test time is shortened and the test efficiency is improved under the condition of not influencing the test result.
When the conversion recorder file is a test script, the conversion LKJ recorder file module can intercept a section of recorder file for conversion according to the user-defined setting. Therefore, a tester can more flexibly select the content of the recorder file to be converted, select a specific section for testing, and remove the running condition of the section irrelevant to the testing. The test time is greatly shortened, and the test efficiency is improved.
Since the laboratory environment may be different from the on-site environment, the converted LKJ recorder file module supports free setting of parameters associated with the train operating environment when converting the recorder file, thereby better simulating locomotive operation.
In converting a recorder file, the convert LKJ recorder file module supports freely selecting a certain type of data frame in the recorder file that needs to be converted or not. Thereby enabling the removal of data that is not related to the test item or that may affect the test.
FIG. 3 is a block diagram of converting a recorder file into a test script and performing an automatic test.
The conversion recorder file module in the scripting software of the present invention converts the recorder file into a test script after loading the initial recorder file and the associated line data file.
The LKJ test platform software analyzes and outputs the test script to the LKJ complete machine test tool after loading the test script, and the LKJ complete machine test tool drives the LKJ to run.
When the test script runs, the display condition of the DMI of the LKJ can be recorded in a screen recording mode; or after LKJ operation is completed, acquiring a newly generated recorder file, comparing the newly generated recorder file with the content of the original recorder file through recorder data comparison analysis software, and testing related problems according to comparison results. The judging mode of the two test results is determined by a tester according to actual conditions.
FIG. 4 is a flow chart of a conversion recorder file test script. Wherein,
When in conversion, the conversion LKJ recorder file module firstly loads and analyzes parameter information such as stations, annunciators and the like in the line data file so as to calculate the triggering time of the command.
And then loading a recorder file, and when the recorder file is analyzed, firstly analyzing a recorder file header, determining initial information when the train runs according to the content in the file header, and automatically generating an automatic test command.
After the next frame of data in the recorder file is read, the data content of the read data frame is analyzed and converted into a corresponding automatic test command.
After all the data frames are read, all the automatic test commands are combined into a test script, and abstract information is added and stored as a script file.
The LKJ test system has the following technical advantages:
1) The test of the LKJ host train operation monitoring device can be automatically completed.
2) Through the graphics, a line model is established to edit the script, so that the script is conveniently, quickly and logically edited clearly.
3) The manual testing steps can be recorded and converted into the testing script, so that the debugging time is shortened, and the efficiency of script programming is improved.
4) Key operation of the DMI of LKJ can be recorded and converted into a test script, so that script programming efficiency is improved.
5) The LKJ recorder file can be converted into a test script, the running state of the train is restored, and the problems occurring on site are quickly reproduced.
6) The existing LKJ recorder file is converted into a test script to drive the LKJ to run, so that the running condition of the locomotive on a corresponding road can be truly simulated, and the road crossing test can be conveniently carried out in a laboratory.
7) The method can automatically judge the expected result and the abnormal operation information, and inquire and download the test result through any browser.
The foregoing description is only a preferred embodiment of the present novel scheme, and is not intended to limit the scope of the present novel scheme. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present novel scheme should be included in the protection scope of the present novel scheme.

Claims (9)

1. An LKJ test system capable of automatically generating test scripts comprises an LKJ complete machine test tool and upper computer software, wherein the LKJ complete machine test tool is used for outputting signals required by an LKJ host machine and collecting signals generated by the LKJ host machine, a board card in the tool is provided with a processor MCU and corresponding MCU software,
The upper computer software comprises: script programming software, LKJ test platform software and server software;
The script programming software is used for programming a test script, and the software not only supports a tester to manually program the test script, but also supports a mode of automatically generating the test script;
The automatic generation mode of the test script comprises the following steps: recording a manual test step and converting the manual test step into a test script, recording a DMI key and converting the DMI key into the test script, and converting an LKJ recorder file into the test script; the mode of converting the LKJ recorder file into the test script means that the script programming software converts the content in the recorder file into the test script by reading and analyzing the content of the LKJ recorder file;
The LKJ test platform software can load a test script, analyze the content of the test script, send the analyzed test script to an LKJ complete machine test tool through a serial port, and drive an LKJ simulation locomotive to run according to the script content by the LKJ complete machine test tool so as to perform automatic test; in order to solve the problem of real-time performance, after the automatic test is started, the LKJ test platform software sends all script commands to an LKJ complete machine test tool, MCU software of each board card in the tool sorts according to script command IDs, caches corresponding commands and executes the commands at regular time;
The server software can receive and store the test result and the test detailed information uploaded by the LKJ test platform software and store the test result and the test detailed information into a database.
2. The LKJ test system of claim 1, wherein the means for recording the manual test step and converting to the test script means that the LKJ test platform software automatically records the operation step of the tester during the manual test, and after the operation is completed, the script is automatically generated by the script programming software.
3. The LKJ test system of claim 1, wherein the means for recording DMI keys and converting to test scripts means that scripting software records all key operations of the tester's DMI for LKJ by the LKJ automatic test fixture and converts to test scripts.
4. The LKJ test system of claim 1, wherein by converting LKJ recorder files into test scripts that when executed on said LKJ test system, drive LKJ to truly simulate locomotive operation on an intersection.
5. The LKJ test system of claim 1, wherein the LKJ test system periodically time-corrects other boards of the LKJ complete machine test fixture and LKJ test platform software with a time stamp of a communication board in the LKJ complete machine test fixture as a time reference to obtain a calibrated time stamp;
After starting automatic test, the LKJ test platform software adds the execution time of all commands to the calibrated time stamp and the configured fixed delay value to obtain absolute execution time of all commands in the test script; and during the period that the LKJ test platform software sends the command to the LKJ complete machine test fixture, the command is not executed, but is not executed until the absolute execution time.
6. The LKJ test system of claim 1, wherein said server software is capable of receiving and storing test results and test details uploaded by LKJ test platform software and storing them in a database, and said server software is capable of accessing and screening execution details and test results of a query test script by inputting a fixed web address through an arbitrary browser.
7. The LKJ test system of claim 1, wherein said LKJ test platform software is capable of listening to all communications of the LKJ host with the DMI; when the LKJ test platform software executes the test script, the required parameter information can be obtained from the LKJ at the corresponding moment according to the content in the script, and the LKJ test platform software is compared with the expected result set in the test script to judge, so that the judging result and the related detailed information of the LKJ host are displayed.
8. The LKJ test system of claim 7, wherein the LKJ test platform software is capable of not only determining whether the relevant information of the LKJ host accords with the expectations of the testers according to the expected results set in the test script, but also automatically monitoring the abnormal states of various parameters of the LKJ in the running process, and notifying the testers in time and displaying the current abnormal information on the interface of the software when the parameter information changes or unexpected parameter changes which are not reflected in the expected results of the test script occur.
9. The LKJ test system of claim 1, wherein said LKJ test system not only supports automatic testing by executing test scripts and driving LKJ, but also supports manual testing by a tester by setting related parameters by a manual test module of said LKJ test platform software.
CN202010900527.5A 2020-08-31 2020-08-31 LKJ test system capable of automatically generating test script Active CN112162916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010900527.5A CN112162916B (en) 2020-08-31 2020-08-31 LKJ test system capable of automatically generating test script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010900527.5A CN112162916B (en) 2020-08-31 2020-08-31 LKJ test system capable of automatically generating test script

Publications (2)

Publication Number Publication Date
CN112162916A CN112162916A (en) 2021-01-01
CN112162916B true CN112162916B (en) 2024-04-19

Family

ID=73858609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010900527.5A Active CN112162916B (en) 2020-08-31 2020-08-31 LKJ test system capable of automatically generating test script

Country Status (1)

Country Link
CN (1) CN112162916B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679650B (en) * 2020-06-08 2021-06-18 中车洛阳机车有限公司 Simple method for testing performance of LKJ2000 type train operation monitoring and recording device
CN112722016B (en) * 2021-01-14 2022-08-30 卡斯柯信号有限公司 Automatic test system and method for rail transit train automatic control system
CN115328104A (en) * 2022-10-13 2022-11-11 湖南中车时代通信信号有限公司 Automatic testing device and method for train operation monitoring system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257925A (en) * 2013-04-28 2013-08-21 株洲南车时代电气股份有限公司 Automatic testing device, system and method for train operation monitoring record software
CN107463500A (en) * 2017-08-09 2017-12-12 网易(杭州)网络有限公司 Adjustment method, medium, system and the computing device of test script
WO2018010552A1 (en) * 2016-07-12 2018-01-18 博彦科技股份有限公司 Test method and device
CN109815132A (en) * 2018-12-28 2019-05-28 河南思维轨道交通技术研究院有限公司 A kind of method, storage medium that manual test process is automatically converted to test script

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257925A (en) * 2013-04-28 2013-08-21 株洲南车时代电气股份有限公司 Automatic testing device, system and method for train operation monitoring record software
WO2018010552A1 (en) * 2016-07-12 2018-01-18 博彦科技股份有限公司 Test method and device
CN107463500A (en) * 2017-08-09 2017-12-12 网易(杭州)网络有限公司 Adjustment method, medium, system and the computing device of test script
CN109815132A (en) * 2018-12-28 2019-05-28 河南思维轨道交通技术研究院有限公司 A kind of method, storage medium that manual test process is automatically converted to test script

Also Published As

Publication number Publication date
CN112162916A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
CN112162916B (en) LKJ test system capable of automatically generating test script
CN107562969B (en) Method and device for integrating aero-engine control system software
CN105808432B (en) Rail traffic Traction Drive control unit software automated testing system and method
CN109656820B (en) Intelligent automatic test system based on CBTC
CN103885439A (en) Automated testing system for railway signal computer interlocking system
CN107370637B (en) Vehicle-mounted ECU communication function automatic test system and method
CN104407971A (en) Method for automatically testing embedded software
CN113190454A (en) Real-vehicle test method and system for vehicle-mounted terminal software
CN112036023B (en) Software integrated generation system of generator transformer set protection device
CN111858372A (en) Automatic testing system and method for TSRS system
CN115408228B (en) Automatic testing method, device and system for touch screen equipment
CN113032262A (en) Automatic simulation test method
CN111737154A (en) Vehicle networking automatic test method and device based on UFT
CN101551774B (en) Software automatic test system
JP2006209354A (en) Inspection system for vehicle software
CN111273566A (en) Train control vehicle-mounted automatic test system based on satellite positioning
CN103676659A (en) Diagnostic apparatus with intelligent recording function and recording method thereof
CN114115168A (en) Fault injection test system
CN115629956A (en) Software defect management method and system based on interface automatic test
JP2005189015A (en) Brake test device for railway vehicle
CN113434387A (en) Script-driven-based automatic testing tool and system
CN116185879B (en) Python-based intelligent cabin instrument automatic test method and system
JPH1124545A (en) Plant simulation apparatus
CN117873017A (en) Rail train function automatic test system and test method
Zeng et al. A test method of utility system management computer based on rhapsody design model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant