CN112162916A - 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
CN112162916A
CN112162916A CN202010900527.5A CN202010900527A CN112162916A CN 112162916 A CN112162916 A CN 112162916A CN 202010900527 A CN202010900527 A CN 202010900527A CN 112162916 A CN112162916 A CN 112162916A
Authority
CN
China
Prior art keywords
test
lkj
script
software
test script
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.)
Granted
Application number
CN202010900527.5A
Other languages
Chinese (zh)
Other versions
CN112162916B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

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 and acquiring signals generated by the LKJ host, and the upper computer software comprises: script compiling 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 an LKJ complete machine test tool through a serial port, and the LKJ complete machine test tool drives an LKJ simulation locomotive to operate according to the script content 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, record DMI key operation of the LKJ and convert the DMI key operation into the test scripts, and convert LKJ recorder files into the test scripts. 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, wherein a test script of the system can be automatically generated.
Background
The train operation monitoring device (LKJ) plays an extremely important role in the aspect of guaranteeing the train operation safety, and in order to guarantee the quality of an LKJ host, the host software must be subjected to strict system test after being modified and upgraded every time.
At present, traditional manual testing modes are mostly adopted for verifying and confirming LKJ software functions, some systems for automatically testing the LKJ software functions are mostly realized by adopting manual programming modes, requirements on script making personnel are high, meanwhile, the system also needs to be very familiar with host services, logic is kept clear and correct during writing, otherwise, scripts are unreasonably written, and testing cannot be correctly executed directly.
During LKJ operation, the recorder board records a large amount of LKJ data. These data include critical information such as traffic, driver operation, locomotive speed, speed limit, position, locomotive signals, and all other input information, output information, etc. to the LKJ. On one hand, during laboratory testing, on-site traffic testing is generally manually simulated, and the real running condition of the train cannot be completely restored; on the other hand, if problems are encountered in the field, they need to be reproduced in the laboratory. Therefore, how to convert the data of the on-site recorder and then carry out automatic intersection test on the LKJ train operation monitoring device is the problem which needs to be solved at present, and meanwhile, the problem that manual writing of test scripts is troublesome is solved, so that the test efficiency is improved, and the test cost is reduced.
Disclosure of Invention
The invention provides a testing system of an LKJ train operation monitoring device, which can be used for manually and automatically testing the train operation monitoring device.
The invention provides an LKJ test system capable of automatically generating a test script, which comprises an LKJ complete machine test tool and upper computer software, wherein the LKJ complete machine test tool is used for outputting a signal required by an LKJ host and acquiring the signal generated by the LKJ host, a board card in the tool is provided with a processor MCU and is provided with corresponding MCU software,
the upper computer software comprises: script compiling software, LKJ test platform software and server software;
the script compiling software is used for compiling the test script, and the software not only supports a tester to manually compile the test script, but also supports a mode of automatically generating the test script;
the method for automatically generating the test script comprises the following steps: recording the manual test step and converting the manual test step into a test script, recording the DMI key and converting the DMI key into the test script, and converting the LKJ recorder file into the test script;
the LKJ test platform software can load a test script, analyzes the content of the test script, sends the analyzed test script to an LKJ complete machine test tool through a serial port, and drives an LKJ simulation locomotive to run according to the script content 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 the LKJ and convert the DMI 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 script compiling and testing efficiency 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 to generate test scripts
FIG. 3 is a schematic diagram of an architecture for converting a recorder file into a test script and performing automatic testing
FIG. 4 is a flowchart of 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 the person 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, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present solution, which falls within the scope of protection of the present solution.
The LKJ test system comprises: LKJ complete machine testing tool and upper computer software. The LKJ complete machine testing tool is used for outputting signals such as speed, pressure and switching value required by an LKJ host machine and collecting signals such as an actual speed limit and mileage generated by the LKJ host machine, and a plurality of board cards in the tool are provided with a processor MCU and are provided with corresponding MCU software. The upper computer software includes: script compiling software, LKJ test platform software and server software.
The script compiling software is used for compiling the test script, and the software not only supports a tester to manually compile the test script, but also supports a mode of automatically generating the test script.
The method for automatically generating the test script mainly comprises the following steps: recording the manual test step and converting into a test script, recording the DMI key and converting into a test script, and converting the LKJ recorder file into a test script.
The mode of recording the manual test step and converting the manual test step into the test script refers to the operation step of automatically recording the test personnel in the manual test through the LKJ test platform software, and after the operation is completed, the script compiling software automatically generates the test script. The method can help testers to quickly compile and debug the script, and the time for debugging the script is shortened.
The mode of recording DMI keys and converting the DMI keys into the test scripts is mainly characterized in that script compiling software records all key operations of a tester on DMI of LKJ through an LKJ automatic test tool and converts the key operations into the test scripts, and the time for compiling the scripts can be shortened.
The mode of converting the recorder file into the test script is that the script making software reads and analyzes the content of the LKJ recorder file to convert the content in the recorder file into the test script. When the script is executed on the LKJ test system, the LKJ can be driven to truly simulate the running condition of the locomotive on the intersection. This mode can help the fast recurring problem that takes place of tester to can realize carrying out the simulation test the same with on-the-spot operation traffic route environment to LKJ in the laboratory, very big manpower and materials have been saved, also can avoid because of the artificial test error that causes.
The LKJ test platform software can load a test script, analyzes the content of the test script, sends the analyzed test script to an LKJ complete machine test tool through a serial port, and drives an LKJ (train operation monitoring device) to simulate locomotive operation according to the script content by the LKJ complete machine test tool to perform automatic test.
The LKJ test platform software can monitor all communication information of the LKJ host and the DMI. When the software executes the test script, required parameter information can be acquired from the LKJ at corresponding time according to the content in the script, the comparison and judgment are carried out on the parameter information and an expected result set in the test script, and the judgment result and relevant detailed information of the LKJ host are displayed.
The LKJ test platform software can judge whether relevant information of an LKJ host computer meets the expectation of a tester or not according to an expected result set in a test script, can automatically monitor abnormal states of various parameters of the LKJ in the running process, and can timely inform the tester and display the current abnormal information on a software interface for the tester to refer to when parameter information changes which are not reflected in the expected result of the test script or unexpected parameter changes occur, such as 'emergency braking' and the like which happen unexpectedly in the test process, so that relevant problems can be rapidly processed.
The LKJ test platform software can display the running condition and the expected result judgment condition of the current script in real time in the automatic test process so that a tester can know the test condition in real time, and can store the test result and the detailed information in the automatic test process into the server software after the test script is executed, so that the follow-up tester can conveniently inquire the test result and the detailed test 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 the database so as to be stored persistently.
The server software adopts a WebService technology and a B/S framework, and can realize the access by inputting a fixed website (IP address) through any browser and the screening of the execution detailed information and the test result of the query test script. And the test result is exported to be a formal PDF file for viewing or storing.
Referring to fig. 1, an LKJ test system of the present invention includes: LKJ complete machine testing tool and upper computer software. The upper computer software comprises: script compiling software, LKJ test platform software and server software. The scripting software is used for generating a test script. The LKJ test platform software is used for reading the test script, sending the test script to an 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 connected with the LKJ host through respective back plate aerial plug, and is used for outputting various signals required by the LKJ host and collecting signals generated by the LKJ host. The LKJ host machine is communicated with the end I DMI and the end II DMI through the CAN, and the CAN communication is monitored by the LKJ complete machine testing tool. The LKJ complete machine testing tool can also operate the DMI at the I end and the DMI at the II end.
The LKJ complete machine testing tool is realized by adopting a standard 3U case structure and connecting various plugboards to a backboard board card in a mode, wherein the plugboards comprise 13 board cards including a communication board, a simulation output board, a simulation input board, a control board, a key simulation board I, a key simulation board II and a parallel port locomotive signal board, and the TIU signal board, the brake output board, the brake acquisition board, the power board I and the power board II are used.
The communication board is a bridge for communicating the LKJ complete machine testing tool with the LKJ testing platform software, is connected with a computer through a serial port, communicates with other board cards in the tool through a CAN interface, and simultaneously monitors communication between the DMI at the I end and the DMI at the II end and the LKJ host through the CAN.
The simulation board realizes the function of serial locomotive signal communication with the LKJ host through the CAN interface.
The analog output board is used for providing analog quantity signals of pressure, primary side voltage, traction current, diesel speed, a mechanical induction coil and the like required by the LKJ host. Wherein the pressure signal, the primary voltage and the traction current are generated by the MCU and the DAC; the diesel speed and the mechanical induction coil signal are realized through a DDS and a high-precision instrument amplifier. Optionally, the analog output signal may also be directly provided by a data acquisition card of a PCI interface.
The analog input board is used for acquiring signals of an actual speed, a speed limit, a mileage and a speed sensor power supply and a pressure sensor power supply of the LKJ host, and the signals enter the MCU after passing through the ADC. Optionally, the acquired input signal may also directly enter the data acquisition 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 DMI key function of the I end. The LKJ complete machine testing tool collects row and column information of DMI keys through parallel ports, codes the DMI keys on a key simulation board I, and transmits the DMI keys to LKJ testing platform software through serial ports, so that the entry of the DMI keys is completed.
And the key simulation board II is used for simulating the DMI key function at the II end.
And the parallel port locomotive signal plate is used for providing 16 paths of variable 50V switching value signals required by the LKJ host. An internal 24VDC fixed power supply is used as an input source, firstly, the voltage is boosted, a PWM signal with variable duty ratio is generated by a program, the PWM signal is converted into a variable direct current voltage as a feedback signal, and therefore the variable 25 VDC-60 VDC voltage is output by program control, and then the variable 25 VDC-60 VDC voltage is divided into 16 paths of output by a 16-path switching circuit controlled by the program.
The TIU signal board is used to provide the 14-way variable 110V switching value signal required by the LKJ host. The implementation mode is similar to that of a parallel port locomotive signal board.
The brake output board is used for providing 6 paths of fixed 110V switching value signals required by the LKJ host, the voltage is boosted to 110VDC by an internal 24VDC fixed power supply, and then the voltage is divided into 6 paths to be output through a 6-path switching circuit controlled by a program.
The power panel I is used for converting 24VDC into a 5VDC and positive and negative 15VDC low-voltage power supply capable of normally working for the LKJ complete machine testing tool.
The power panel II is used for converting 110VDC into 24VDC power and a power switch circuit for providing 110VDC for the LKJ host.
A plurality of board cards in the LKJ complete machine test tool are provided with a processor MCU and corresponding MCU software. When the test script is executed, 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 the LKJ test platform software to be executed. However, since the command is sent from the LKJ test platform software to the LKJ complete machine test tool, and then the command is executed, a certain time delay is needed in a series of processes, and the real-time performance of the system is affected by the time delay, so that the executed command is not executed on time.
In order to solve the real-time problem, 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 carries out sorting according to the script command ID, caches corresponding commands, and executes the commands at regular time. The main implementation mode is as follows:
the LKJ test system takes the timestamp of a communication board in the LKJ complete machine test tool as a time reference, and periodically corrects the other board cards and LKJ test platform software of the LKJ complete machine test tool to obtain a calibrated timestamp.
All test scripts carry command execution times. The time is relative time, the execution time of the first command of the script is 0, and the execution times of the rest commands take the first command as a reference.
After the automatic test is started, the LKJ test platform software adds the execution time of all the commands, the calibrated timestamps and the configured fixed delay values to obtain the absolute execution time of all the 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.
And after the LKJ complete machine testing tool receives the command of starting the automatic test, actively requesting a script from LKJ testing platform software. And the LKJ test platform software sends a test script according to the protocol.
And the MCU software of each board card in the tool is sorted according to the test script command ID, and corresponding commands are cached.
Because the execution time of the script command is increased by a fixed delay value, the command is not executed during the time that the LKJ test platform software sends the command to the LKJ complete machine test tool, and the command is executed only when the absolute execution time is reached, so that all commands can be executed on time.
The script compiling 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 middle file conversion module, a DMI key recording module and an LKJ recorder file conversion module.
The test script management module can manage the test script, and the test script can realize a test case and a test sequence.
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 perform simulation operation on the generated script so as to check whether the generated script has a logic error problem.
Example one
The test script editing module can edit the test script. When the test script is edited, the generation and the updating of the automatic test command can be carried out through a line model module and a graphical parameter setting module which are displayed in a main interface of script compiling software, and the operations of adding, deleting, copying, pasting and the like can be carried out on the command. The line model module is used for loading a line data file by software, reading relevant information such as stations, signal machines, turnouts and the like in the file, establishing a model of the whole intersection on a software interface according to train information and displaying the current position of the train. The graphical parameter setting module can establish an automatic test command model at a corresponding position by dragging the models of different parameter setting modules, and the automatic test command model comprises all parameters required by 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 trigger time of the automatic test command according to the requirement of a user; enabling setting and displaying an annotation for each command; management of generated automatic test commands, i.e. move up, move down or delete commands, copy and paste commands, and de-paste, is supported.
The test script editing module establishes a line model, adopts a graphical mode to edit the test script, and facilitates the compiling of the test script. However, the test script still needs to be manually compiled, so that a tester needs to edit the test script in an off-line state according to a test case or a test sequence, and needs to debug 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 testers to set relevant parameters through a manual test module of LKJ test platform software to drive the LKJ to perform manual test.
The LKJ test platform software also supports the operation of recording testers in the manual test of the software interface, and generates an intermediate file. The intermediate file is converted into the 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 obtain the feedback of the LKJ in time when compiling the script, so that the logic and the robustness of the test script are improved, and the efficiency of script compiling is improved. In order to write the test script quickly, the logic of a tester in writing the script is increased. Because the testing personnel can timely receive the feedback information of the DMI when operating, and adjust the testing steps according to the feedback information, the opportunity of parameter setting of each module can be selected more flexibly, so that the recorded testing script has strong logicality, the correctness of script execution can be ensured almost without debugging again, and the time for script debugging after script compiling is finished is greatly reduced. And the trigger time of each step in the computer position and the test script in the script compiling is saved.
The LKJ test platform software of the invention can record the operation of a tester in manual test,
the method comprises setting related parameters of a speed module, namely setting 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 and standby wheel diameter value and the like.
The method comprises the setting of locomotive signal related parameters, namely system type, serial port locomotive signal related parameters, parallel port locomotive signal related parameters, induction coil related parameters, alternating current counting related parameters, plane shunting and other related parameters.
The method comprises the steps of setting TIU related parameters, namely a reference voltage value, setting of working conditions and handle related parameters, setting of a single-point soil gear and a double-point soil gear, and setting of parameters such as manual vigilance and periodic vigilance.
The method comprises setting of analog quantity related parameters, namely pipe pressure, brake pressure, cylinder equalizing pressure parameters and the like, diesel speed signal related parameters, primary side voltage, current and other parameters.
Including controlling the operation of the power switch of the train operation monitoring device, i.e., including the operation of a single-switch power supply or a multiple-switch power supply.
After the operation is completed, the LKJ test platform software can record the content and time of operation of each operation step and the comments about the 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 summary information aiming at the whole operation process.
The conversion intermediate file 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 adds summary-related information to the script.
Fig. 2 is a schematic diagram of the operation of recording the manual test steps and converting the manual test steps to generate the test script according to this embodiment.
And the LKJ test platform software records the parameter values of each operated module when a tester performs manual test, records the time when the parameters are changed, and generates an intermediate file when the recording is finished. The conversion intermediate file module of the scripting software converts the intermediate file into a test script.
Specifically, when recording is started, the software internally prepares for recording: and resetting the time stamp to wait for the operation of a tester.
When a tester manually tests related parameters of the LKJ test platform software interface operation, the software can record the operation content and the operation time of the tester and add corresponding comments.
After the operation of the tester is finished, the software can call corresponding modules in the software to convert the operation of the tester into an intermediate file.
When the script generation software converts the intermediate file, the script generation software can generate a corresponding test command in the test script according to the operation content of each step recorded in the intermediate file, and automatically calculate the trigger time of the test command according to the recorded operation time. And adds a corresponding comment for each test command.
After the scripting software converts all the operation steps recorded in the intermediate file into test commands, the commands can be combined into a test script, and abstract information aiming at the whole script is added.
EXAMPLE III
The script compiling software of the testing system not only supports the conversion of the intermediate file generated by the LKJ testing platform software into the testing script, but also can automatically record all key operations of testing personnel on the DMI of the LKJ through the recording DMI key module of the software, and generate the testing script.
Different from the mode of recording the operation steps of the testers and finally converting the operation steps into the test scripts, the DMI key module can record all key operations of the testers on the DMI of the LKJ and convert the key operations into the test scripts. 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 opportunity during recording. Therefore, the test script for operating the DMI key 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 DMI key module records DMI key contents, and after the recording is finished, the DMI key contents are automatically converted into testing scripts. The serial port information comprises key values of keys, pressing time and pressing duration of the keys.
Example four
The LKJ recorder file conversion module can automatically convert recorder files generated by an LKJ host train monitoring device into test scripts and automatically test the test scripts.
In order to more quickly reproduce problems occurring on site and simulate real locomotive running environment in a laboratory to carry out road-crossing test on LKJ, a conversion LKJ recorder file module of script making software of the system can realize that recorder files in a large number of road bureau site train running are converted into test scripts, when the scripts are executed on an automatic test platform, all input quantities and operations required by the train running on the whole road-crossing can be really simulated, and the running state of the train running on the road-crossing is restored, so that the field problems can be quickly reproduced, and the simulation test of the LKJ, which is the same as the field running road-crossing environment, can be carried out in the laboratory.
The LKJ recorder file conversion module can read all data frames in a recorder file, analyze relevant parameters in each frame and convert the parameters into corresponding automatic test commands. And combines all automatic test commands into a test script.
The converted automatic test commands include speed signal commands, cab signal commands, TIU signal related commands, analog signal related commands, power switch commands, and all commands to operate the DMI keys.
When the recorder file is converted, the LKJ recorder file conversion 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 an annotation aiming at the command for each converted automatic test command according to the type of each data frame in 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 a command related to setting an initial environment in which the train operates to the script. Thereby better simulating the field operation environment.
When the recorder file is converted into the test script, the LKJ recorder file conversion module can compress the operation time of the converted test script by eliminating useless stopping time under the condition of not influencing the operation 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 recorder file is converted into the test script, the LKJ recorder file conversion module can be set according to a user-defined mode, and a section of recorder file is intercepted to be converted. Therefore, testers can select the contents of the recorder files to be converted more flexibly, select a specific section for testing, and remove the operation condition of the section irrelevant to the testing. The testing time is greatly shortened, and the testing efficiency is improved.
Because the environment of a laboratory and the environment of field operation may be different, when the recorder file is converted, the LKJ recorder file conversion module supports the free setting of parameters related to the train operation environment, and therefore the operation of the locomotive is better simulated.
The convert LKJ recorder file module supports the free choice of a certain type of data frame in the recorder file that needs conversion or does not need conversion when converting the recorder file. Thereby removing 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 automatic testing.
The conversion recorder file module in the scripting software converts the recorder file into the test script after loading the initial recorder file and the related line data file.
And the LKJ test platform software analyzes and outputs the test script to an LKJ complete machine test tool after loading the test script, and the LKJ complete machine test tool drives the LKJ to operate.
When the test script runs, the display condition of the DMI of the LKJ can be recorded in a screen recording mode; or after the LKJ operation is finished, a newly generated recorder file is obtained, the content of the original recorder file is compared through recorder data comparison and analysis software, and the related problems are tested according to the comparison result. The judgment modes of the two test results are determined by a tester according to actual conditions.
FIG. 4 is a flow chart of a transformation recorder file test script. Wherein,
during conversion, the LKJ recorder file conversion module loads and analyzes parameter information of stations, signal machines and the like in the line data file so as to calculate the trigger time of the command.
And then loading the recorder file, firstly analyzing the file header of the recorder when analyzing the recorder file, determining initial information of the train in operation according to the content in the file header, and automatically generating an automatic test command.
And after reading the next frame data in the recorder file, analyzing the data content of the read data frame, and converting the data content into a corresponding automatic test command.
After reading all the data frames, 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 disclosed by the invention has the following technical advantages:
1) the testing of the LKJ host type train operation monitoring device can be automatically completed.
2) The script is compiled in a way of establishing a line model through imaging, so that the script is conveniently, quickly and logically clear.
3) The manual testing steps can be recorded and converted into testing scripts, so that the debugging time is shortened, and the script compiling efficiency is improved.
4) The method can record the DMI key operation of the LKJ and convert the DMI key operation into the test script, and improve the script compiling efficiency.
5) The LKJ recorder file can be converted into a test script, the running state of a train is restored, and problems occurring on the site can be rapidly reproduced.
6) Through converting existing LKJ recorder file into test script, drive LKJ operation, the operational aspect of simulation locomotive on corresponding traffic route that can be real to carry out the traffic route test in the laboratory.
7) The expected result and the abnormal operation information can be automatically judged, and the test result can be inquired and downloaded through any browser.
The above 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 and the like made within the spirit and principle of the new scheme shall be included in the protection scope of the new scheme.

Claims (10)

1. An LKJ test system capable of automatically generating a 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 and collecting signals generated by the LKJ host, board cards in the tool are provided with a processor MCU and are respectively provided with corresponding MCU software,
the upper computer software comprises: script compiling software, LKJ test platform software and server software;
the script compiling software is used for compiling the test script, and the software not only supports a tester to manually compile the test script, but also supports a mode of automatically generating the test script;
the method for automatically generating the test script comprises the following steps: recording the manual test step and converting the manual test step into a test script, recording the DMI key and converting the DMI key into the test script, and converting the LKJ recorder file into the test script;
the LKJ test platform software can load a test script, analyzes the content of the test script, sends the analyzed test script to an LKJ complete machine test tool through a serial port, and drives an LKJ simulation locomotive to run according to the script content to perform automatic test.
2. An LKJ test system according to claim 1, wherein the manner of recording manual test steps and converting into test scripts refers to automatically recording operation steps of a tester during manual testing by LKJ test platform software, and after the operation is completed, automatically generating test scripts by script programming software.
3. The LKJ test system of claim 1, wherein the manner in which the DMI buttons are recorded and converted into the test script means that the script generation software records all button operations of the DMI of the LKJ by a tester through an LKJ automatic test fixture and converts the key operations into the test script.
4. An LKJ test system according to claim 1, wherein the manner in which the transformation recorder file is a test script means that scripting software transforms the contents of the recorder file into the test script by reading and parsing out the contents of the LKJ recorder file; when the test script is executed on the LKJ test system, the LKJ can be driven to truly simulate the running condition of the locomotive on the intersection.
5. The LKJ test system of claim 1, wherein to solve the real-time problem, 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 the script command ID, caches the corresponding commands, and executes the commands at regular time.
6. The LKJ test system of claim 5, wherein the LKJ test system uses a timestamp of a communication board in an LKJ complete machine test tool as a time reference, and periodically calibrates other board cards and LKJ test platform software of the LKJ complete machine test tool to obtain a calibrated timestamp;
after starting automatic testing, adding the execution time of all commands, the calibrated timestamps and the configured fixed delay values by the LKJ test platform software to obtain the 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 tool, the command is not executed, and the command is executed only when the command is executed absolutely.
7. An LKJ test system according to claim 1, wherein the server software is capable of receiving and storing test results and test details uploaded by the LKJ test platform software and storing the test results and test details in a database, and the server software is capable of inputting a fixed website via any browser to access and screen the execution details and test results of the query test script.
8. The LKJ test system of claim 1, wherein the LKJ test platform software is capable of monitoring all communication information between an LKJ host and a DMI; when the LKJ test platform software executes the test script, required parameter information can be acquired from the LKJ at corresponding time according to the content in the script, the parameter information is compared and judged with an expected result set in the test script, and a judgment result and relevant detailed information of an LKJ host are displayed.
9. The LKJ testing system of claim 8, wherein the LKJ testing platform software is capable of determining whether information related to the LKJ host meets expectations of a tester according to expected results set in the test script, and is also capable of automatically monitoring abnormal states of various parameters of the LKJ during operation, and when parameter information changes that are not reflected in the expected results of the test script or unexpected parameter changes occur, the LKJ testing platform software can timely notify the tester and display current abnormal information on a software interface.
10. An LKJ testing system according to claim 1, wherein the LKJ testing system supports not only automatic testing by executing a test script and driving LKJ, but also manual testing by a tester by setting relevant parameters through a manual testing module of the LKJ testing 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 true CN112162916A (en) 2021-01-01
CN112162916B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679650A (en) * 2020-06-08 2020-09-18 中车洛阳机车有限公司 Simple method for testing performance of LKJ2000 type train operation monitoring and recording device
CN112722016A (en) * 2021-01-14 2021-04-30 卡斯柯信号有限公司 Automatic test system and method for rail transit train automatic control system
CN114139473A (en) * 2021-12-03 2022-03-04 中车青岛四方机车车辆股份有限公司 Logic circuit testing method, related assembly and vehicle
CN115328104A (en) * 2022-10-13 2022-11-11 湖南中车时代通信信号有限公司 Automatic testing device and method for train operation monitoring system
WO2024126442A1 (en) * 2022-12-12 2024-06-20 Gts Deutschland Gmbh Method for automatically creating a test script

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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679650A (en) * 2020-06-08 2020-09-18 中车洛阳机车有限公司 Simple method for testing performance of LKJ2000 type train operation monitoring and recording device
CN112722016A (en) * 2021-01-14 2021-04-30 卡斯柯信号有限公司 Automatic test system and method for rail transit train automatic control system
CN112722016B (en) * 2021-01-14 2022-08-30 卡斯柯信号有限公司 Automatic test system and method for rail transit train automatic control system
CN114139473A (en) * 2021-12-03 2022-03-04 中车青岛四方机车车辆股份有限公司 Logic circuit testing method, related assembly and vehicle
CN115328104A (en) * 2022-10-13 2022-11-11 湖南中车时代通信信号有限公司 Automatic testing device and method for train operation monitoring system
WO2024126442A1 (en) * 2022-12-12 2024-06-20 Gts Deutschland Gmbh Method for automatically creating a test script

Also Published As

Publication number Publication date
CN112162916B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN112162916B (en) LKJ test system capable of automatically generating test script
CN105738792A (en) PCBA test device and test method
CN100401265C (en) Keyword-driven automatic testing system and method
CN103744781B (en) A kind of method of testing of interlocking software and test macro
CN109656820B (en) Intelligent automatic test system based on CBTC
CN111124877B (en) Train display software testing method, device and system
CN107370637B (en) Vehicle-mounted ECU communication function automatic test system and method
CN101509948A (en) Automobile electronic test system and test method thereof
CN104391190A (en) Remote diagnosis system for measuring instrument and diagnosis method thereof
CN105808432A (en) Software automated testing system and method for rail traffic drive control unit/ tractive control unit (DCU/TCU)
CN112036023B (en) Software integrated generation system of generator transformer set protection device
CN101551774B (en) Software automatic test system
CN116362198A (en) Method, system, storage medium and computing device for improving chip verification efficiency
CN114661615B (en) FPGA software testing method and device
CN103676659A (en) Diagnostic apparatus with intelligent recording function and recording method thereof
CN112416715B (en) Computer interlocking performance test system based on operation scene
CN117873017A (en) Rail train function automatic test system and test method
CN114115168A (en) Fault injection test system
JPH0721058A (en) Program test system
CN115185258A (en) HIL simulation test system and method suitable for vehicle control unit
CN116119019A (en) Flight parameter acquisition recording equipment test system and test method
CN114578786A (en) Vehicle test system
Zeng et al. A test method of utility system management computer based on rhapsody design model
JP2004069545A (en) Semiconductor testing device and method
CN118708485A (en) OIB single board test system, method and related equipment

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