CN114020608A - Railway CTC system background program regression test implementation method - Google Patents

Railway CTC system background program regression test implementation method Download PDF

Info

Publication number
CN114020608A
CN114020608A CN202111253650.3A CN202111253650A CN114020608A CN 114020608 A CN114020608 A CN 114020608A CN 202111253650 A CN202111253650 A CN 202111253650A CN 114020608 A CN114020608 A CN 114020608A
Authority
CN
China
Prior art keywords
test
log
file
data
background program
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.)
Pending
Application number
CN202111253650.3A
Other languages
Chinese (zh)
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.)
China Academy of Railway Sciences Corp Ltd CARS
Signal and Communication Research Institute of CARS
Beijing Ruichi Guotie Intelligent Transport Systems Engineering Technology Co Ltd
Beijing Huatie Information Technology Co Ltd
Original Assignee
China Academy of Railway Sciences Corp Ltd CARS
Signal and Communication Research Institute of CARS
Beijing Ruichi Guotie Intelligent Transport Systems Engineering Technology Co Ltd
Beijing Huatie Information 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 China Academy of Railway Sciences Corp Ltd CARS, Signal and Communication Research Institute of CARS, Beijing Ruichi Guotie Intelligent Transport Systems Engineering Technology Co Ltd, Beijing Huatie Information Technology Co Ltd filed Critical China Academy of Railway Sciences Corp Ltd CARS
Priority to CN202111253650.3A priority Critical patent/CN114020608A/en
Publication of CN114020608A publication Critical patent/CN114020608A/en
Pending legal-status Critical Current

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/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3676Test management for coverage analysis
    • 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/3692Test management for test results analysis
    • 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/3696Methods or tools to render software testable

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 invention discloses a method for realizing regression testing of a background program of a railway CTC system, which adopts an automatic regression testing mode, on one hand, test cases of the background program to be tested can be distributed on a plurality of computers, and meanwhile, automatic testing can be realized, so that automatic testing can be started before work on the first day, and results can be checked in the next morning, thereby greatly reducing testing manpower and material resources, saving testing time, greatly improving testing efficiency and ensuring that software is released as required; on the other hand, the problem that the program with problems is released to the site through the test because of possible errors and omissions in the manual test is avoided; in addition, the test case can be completely traversed when the background program is changed every time, complete regression testing is carried out on the CTC background program, and the problem of software release caused by incomplete test coverage is avoided.

Description

Railway CTC system background program regression test implementation method
Technical Field
The invention relates to the technical field of railway system testing, in particular to a railway CTC system background program regression testing implementation method.
Background
The CTC system (railway dispatching centralized system) is widely deployed in dispatching centers of various railway offices and stations for dispatching and commanding of train operation, and CTC system software needs to be upgraded and changed according to new requirements, new problems and technical standards of engineering sites. The CTC system consists of a plurality of subsystems, and can be divided into a foreground operation terminal and a background program according to whether manual staring operation is needed or not. In the development and upgrade processes of (CTC system), software testing is an important part. Every time software of each system is changed and upgraded, other functions of the existing program cannot be influenced except for ensuring to complete new requirements or repairing software problems, and new software problems cannot be generated. Therefore, for the test of the CTC system during the upgrade and update, a tester cannot test only the newly added function or the repaired problem, but also tests other existing functions of the software, so as to prevent the function without the problem from generating a new problem due to the error of a developer in the upgrade and update.
The background program of the CTC system has no complete software man-machine interface, is connected with other subsystems through a network and communicates according to a communication protocol, the input of the background program is used for receiving data packets sent by other specific subsystems through a network channel, and the output of the background program is used for sending data packets to other specific subsystems according to the input of other subsystems and the internal logic of the background program. Therefore, a whole set of CTC system test environment containing other subsystems needs to be built for testing the background program, and whether the internal logic of the background program is in accordance with expectations is tested by operating other operation terminal subsystems and verifying the output results on the display interfaces of the other operation terminal subsystems.
Currently, the following two test schemes are mainly adopted:
the scheme I comprises the following main processes:
1) all functions of any CTC system background program can be released after test by a tester after writing test cases, and all functions of each released CTC system background program have corresponding existing test cases.
2) For each software test during the change and upgrade of the background program, a CTC system environment which is related to the background program and comprises a plurality of subsystems is required to be established, and a new test case is written for the related functions of the software change.
3) And performing complete test on the new test case corresponding to the function related to the program change by operating the human-computer interface on other terminal programs and verifying the output result.
4) The research and development personnel who propose the test application by the software change and upgrade confirm that: in the software change and upgrade, besides the new function and the repaired software problem related to the change, the change influence range of the existing function needs to be tested. And (4) selecting the test case needing regression testing from the existing test cases by the tester according to the change influence range provided by the research and development personnel, and constructing a test environment for regression testing.
The first scheme has the defects that: for each test of the CTC system background program, research and development personnel are required to give a change influence range, and some existing test cases are selected according to the change influence range to carry out regression test, so that on one hand, the existing test cases are regressed, and the time and the labor are consumed; on the other hand, some CTC system background programs have complex software structures, complicated variable inheritance, complicated function call and the like, and sometimes, the change influence range given by research and development personnel cannot completely cover the range to be tested, and sometimes, a new problem of program functions outside the change influence range given by the research and development personnel occurs, so that the engineering field equipment fails. The field fault and subsequent responsibility-following processing process of the equipment are complex, and the maintenance cost and the workload of field personnel are increased.
In the second scheme, the first three steps are executed by referring to the first scheme, and then the following steps are executed: the tester further builds a complete set of CTC system test environment, performs complete regression test on all existing test cases of the background program, verifies all scenes in all the existing test cases through human-computer interface operation and verification output results on other terminal programs, and traverses all functions of the program to prevent new problems.
The second scheme has the defects that: the background programs of the CTC system are developed for many years, the logic is relatively complex, the functions are various, the number of test case scenes related to one background program is often more than 1000, and a large amount of computer equipment and a large amount of test time are required for building a whole set of complete CTC system environment to perform complete regression test; fig. 1 illustrates a specific application scenario of a complete CTC system test environment, where each CTC subsystem shown in fig. 1 needs to occupy one computer or virtual machine. A large number of testers are overtime and overtime, the time consumption is huge, the testing task can not be completed on time, and the field software upgrading time is delayed sometimes.
Disclosure of Invention
The invention aims to provide a method for realizing regression testing of a background program of a railway CTC system, which can completely traverse all functions of the background program, does not occupy a large amount of manpower and material resources and can quickly complete a testing task.
The purpose of the invention is realized by the following technical scheme:
a railway CTC system background program regression test implementation method comprises the following steps:
testing the background program of the CTC system to be tested by utilizing each test case, recording a program configuration file, an original data receiving and transmitting log file and a related analysis log file corresponding to the test case by utilizing a log recording module of the background program of the CTC system to be tested, and storing the recorded data into a folder with a specified number to be used as an automatic test log script file;
initializing relevant settings of an automated test tool, comprising: setting the number range of the test cases and a consistency comparison rule; extracting a corresponding test case according to the set test case number range, loading a related automatic test log script file for the current test case, changing the program starting time and configuring according to the program configuration file, inputting the current test case into a CTC system background program to be tested for testing, comparing data recorded by a CTC system background program log recording module to be tested with the related automatic test log script file according to a consistency comparison rule, and judging the test result of the current test case according to the comparison result;
when the current CTC system background program is changed, a new automatic test log script file is newly made for a new function, and an automatic test tool is used for carrying out complete automatic regression test on all existing functions of the current CTC system background program.
According to the technical scheme provided by the invention, an automatic regression testing mode is adopted, so that on one hand, the test cases of the background program to be tested can be distributed on a plurality of computers, and the automatic test can be carried out simultaneously, the automatic test can be started before the next day, the result can be checked in the morning on the second day, the test manpower and material resources are greatly reduced, the test time is saved, the test efficiency is greatly improved, and the software is ensured to be released as required; on the other hand, the problem that the program with problems is released to the site through the test because of possible errors and omissions in the manual test is avoided; in addition, the test case can be completely traversed when the background program is changed every time, complete regression testing is carried out on the CTC background program, and the problem of software release caused by incomplete test coverage is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a schematic diagram of an integrated CTC system test environment as provided in the background of the invention;
fig. 2 is a flowchart of a method for implementing a regression test of a background program of a railway CTC system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The terms that may be used herein are first described as follows:
the terms "comprising," "including," "containing," "having," or other similar terms of meaning should be construed as non-exclusive inclusions. For example: including a feature (e.g., material, component, ingredient, carrier, formulation, material, dimension, part, component, mechanism, device, process, procedure, method, reaction condition, processing condition, parameter, algorithm, signal, data, product, or article of manufacture), is to be construed as including not only the particular feature explicitly listed but also other features not explicitly listed as such which are known in the art.
The implementation method of the background program regression test of the railway CTC system provided by the invention is described in detail below. Details which are not described in detail in the embodiments of the invention belong to the prior art which is known to the person skilled in the art. Those not specifically mentioned in the examples of the present invention were carried out according to the conventional conditions in the art or conditions suggested by the manufacturer. The instruments used in the examples of the present invention are not indicated by manufacturers, and are all conventional products that can be obtained by commercial purchase.
The embodiment of the invention provides a method for realizing regression testing of a background program of a railway CTC system, which mainly comprises the following steps:
manually testing the background program of the CTC system to be tested by using each test case, recording an original data log file and a related analysis log file by using a log recording module of the background program of the CTC system to be tested, and storing the recorded data into a folder with a specified number to serve as an automatic test log script file;
initializing relevant settings of the automated test, including: setting the number range of the test cases and a consistency comparison rule; extracting a corresponding test case according to the set test case number range, loading a related automatic test log script file for the current test case, inputting the current test case into a background program of the CTC system to be tested for testing, comparing data recorded by a log recording module of the background program of the CTC system to be tested with the related automatic test log script file according to a consistency comparison rule, and judging the test result of the current test case according to the comparison result;
and when the current CTC system background program is changed, newly manufacturing a new test script file, and performing complete automatic regression test on all existing functions of the current CTC system background program.
The automatic regression testing scheme provided by the embodiment of the invention can completely traverse all functions of the background program, does not occupy a large amount of manpower and material resources, can quickly complete the testing task, and can solve the following three technical problems:
1) if the test case cannot be completely traversed when the background program is changed, all functions related to the change may not be covered by software testing, new software problems are generated by program change and upgrade, field equipment faults are caused, and time and labor are wasted in fault handling and follow-up responsibility tracing.
2) If the existing test case is completely traversed when the background program is changed, a large amount of manpower, material resources and time are consumed for building a complete CTC test environment and completely traversing test, a test task cannot be completed on time, and the field software upgrading time is delayed sometimes.
3) In the background program test, testers mainly observe test results on other terminal subsystems manually, errors and omissions are likely to occur, and then the program with problems passes the test and is sent to an engineering field, so that the risk of field equipment failure is caused.
In order to more clearly show the technical scheme and the technical effects provided by the present invention, a detailed description is given below of a method for implementing a regression test of a background program of a railway CTC system provided by an embodiment of the present invention with specific embodiments.
Firstly, the functions of receiving logs and sending log records are added.
For the daemon of the CTC system (e.g., autonomous, train tracking server, communication server, etc.), the output is generated based on the communication inputs of the other subsystems and the own logic. And modifying log recording modules of all CTC system background programs to enable the CTC system background programs to have the function of recording original transceiving data log files and related analysis log files.
In the embodiment of the present invention, the original transceiving data log file and the related parsing log file include: a raw received data log file (sdat-rcv log), a raw sent data log file (sdat-snd log), a received data parse log file (base-rcv log), and a sent data parse log file (base-snd log); specifically, the method comprises the following steps:
1) and a log recording module of the CTC system background program records program starting time, records each packet of network original data received from each external subsystem one by one, corresponds to the system time (receiving time) when the network original data are received one by one, and records all the received original data and the time (accurate to millisecond) of the received data to an original received data log file (sdat-rcv log).
2) When the log file of the original received data is recorded, analyzing the data content of the original data received by each packet according to a CTC communication protocol, recording the analyzed data in a received data analysis log file (base-rcv log), and analyzing to obtain the following information: receiving time, information source device, information type and information content.
3) And a log recording module of a background program of the CTC system records each packet of network original data transmitted to each external subsystem, corresponds to the system time during transmission one by one, and records all the original data transmitted to the outside and the time (accurate to millisecond) of transmitting the data to an original transmitting data log file (sdat-snd log).
4) When the log file of the original sending data is recorded, the data content of the original data sent by each packet is analyzed according to the CTC communication protocol, and the analyzed data is recorded in a sending data analysis log file (base-snd log), and the following information is obtained by analysis: sending time, information destination equipment, information type and information content.
And secondly, aiming at the existing test cases, an automatic test log script is manufactured.
Based on the work of the first part, the log recording module of the CTC system background program has the function of recording original receiving and sending data log files and related analysis log files, so that a tester can record automatic test log script files for each existing test case of the CTC system background program in the idle time of a project, the automatic test log script files correspond to the test cases one by one, and each test case has the corresponding automatic test log script file, and the method comprises the following steps:
1) and building a test environment, correctly configuring a program according to a test case to be tested, and starting a CTC system background program to be tested.
2) And for each test case, testing in an existing mode.
For example, the test case is tested by a conventional method of operating on other terminal programs and verifying output results on other terminal programs, and the program is closed after the test is completed.
3) After the test is finished, obtaining an original transceiving data log file (recording program starting time in a file) corresponding to each test case, a related analysis log file and a program configuration file corresponding to the test case, and putting the files into a folder named by corresponding test case numbers to be used as an automatic test log script file.
In the embodiment of the invention, the automatic test log script file of each test case comprises an individual program configuration file corresponding to the test case, and the program configuration information mainly comprises the configuration of program functionality and the configuration of external communication.
As can be seen from the description of the first part, the original transmission/reception data log file and the related analysis log file obtained at this time include four log files, that is, an original reception data log file (sdat-rcv log), an original transmission data log file (sdat-snd log), a reception data analysis log file (base-rcv log), and a transmission data analysis log file (base-snd log).
And (3) the testers record the scripts at idle time of the project, and the automatic test log scripts of each test case are stored in a folder with a specific name (named by the test case number) and used as the automatic test scripts of the CTC system background program for research and development, debugging of automatic test tools and testing by the testers.
And thirdly, automatically testing the functions and the flow of the tool software.
In the embodiment of the invention, research personnel develop automatic test tool software of a CTC system background program under the cooperation of testers to realize automatic test, and the flow of the automatic test is approximate: and for the current test case, loading a related automatic test log script file, inputting the current test case into the background program of the CTC system to be tested for testing, comparing data recorded by the log recording module of the background program of the CTC system to be tested with the related automatic test log script file according to a consistency comparison rule, and judging the test result of the current test case according to the comparison result. As shown in fig. 2, the main functions and workflow of the automated testing tool software are shown, which mainly include:
1) initializing, including: a consistency comparison rule can be set, the rule includes a threshold corresponding to the specific type of information, specifically, a time difference threshold and a content difference threshold, and a test case number range of the test needs to be set.
2) Reading all logs in the automatic test log script file in the folder named by the test case number, loading the related automatic test log script file, and configuring the system time and the IP address according to configuration information (from a program configuration file) in the automatic test log script file.
Specifically, the method comprises the following steps: changing the system time into the program starting time recorded in the automatic test log script file to simulate the time of the current test for carrying out the automatic test, and modifying the IP addresses of all other subsystems connected with the background program and configured in the background program configuration file into the local addresses. Both configurations need to be performed under the authority of a system administrator.
3) And starting (in this case, the automatic testing tool automatically starts the CTC background program) the CTC system background program to be tested, and sending each packet of original received data recorded in the original received data log file in the automatic testing log script file to the CTC system background program to be tested according to the receiving time recorded in the corresponding original received data analysis log file to be used as the input of automatic testing. This phase also needs to be performed under the authority of the system administrator.
4) The CTC system background program to be tested generates corresponding output aiming at original received data, the output comprises transmitted data and a corresponding analysis log file (check-snd log), the analysis log file in the output is extracted, and consistency comparison is carried out on the analysis log file (base-snd log) of the transmitted data corresponding to the automatic test log script file.
5) If all the information in the two analysis log files of the sending data is completely consistent, or the difference of the sending time recorded in the two analysis log files does not exceed the time difference threshold value in the consistency comparison rule, and the difference of the content in the two analysis log files does not exceed the inner tolerance threshold value in the consistency comparison rule, the current test case is determined to pass the test; otherwise, the current test case is considered to fail to automatically test, and needs to be confirmed manually by research personnel.
The above description is about the test function and flow of the automated test tool taking the current test case as an example, and the test is performed on all test cases based on the above principle and then the process is switched to 6).
6) After all test cases to be tested are tested, a test report is formed, and the test report comprises the following steps: the total number of test cases in the test, the total number of test cases passing the test and the total number of test cases failing the test; for the test cases which fail to pass the test, the related data packet entries and specific contents of the base-snd log and the check-snd log which fail the consistency comparison rule are listed for research and development, and the tester can check and analyze the data packet entries and the specific contents.
And fourthly, automatic regression testing.
The method is characterized in that a previously recorded automatic test log script file is called as an existing functional automatic test log script file, when a background program is changed and needs to be upgraded, a tester can perform complete automatic regression test on all existing functions of the background program based on the log recording function of the background program after the tester finishes the test and changes related new functions and records related test scripts (called as a new automatic test log script file for next and later automatic tests), the previously recorded existing functional automatic test script file and a developed automatic test tool, and the steps are as follows:
1) storing a background program and an automatic test tool of the CTC system to be tested into a computer for testing, placing the recorded automatic test case script files (various logs and program configurations) with the existing functions into a specific folder, configuring the number range and the comparison rule of the test case, and determining the time difference threshold and the inner tolerance threshold corresponding to the specific information type.
2) The computer is set to be normally bright, local internet connection is cut off for preventing the automatic calibration time of the system, an automatic test tool is operated by the identity of an administrator, and automatic test is started, namely the work flow of the automatic test tool in the part 3.
3) And the observation system time is changed into the program starting time in the test case, the test tool successfully establishes network connection with the background program to be tested, and after the test process is prompted, the process takes longer time, and the tester can leave to perform other work.
4) And outputting a result after the test is finished, and checking a finally formed brief test report. If all the test results pass, the test is finished, and if part of the test results do not pass, research personnel are contacted to analyze the test results, and the problem reasons are searched.
Through the above description of the embodiments, it is clear to those skilled in the art that the above embodiments can be implemented by software, and can also be implemented by software plus a necessary general hardware platform. With this understanding, the technical solutions of the embodiments can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (5)

1. A railway CTC system background program regression test implementation method is characterized by comprising the following steps:
testing the background program of the CTC system to be tested by utilizing each test case, recording a program configuration file, an original data receiving and transmitting log file and a related analysis log file corresponding to the test case by utilizing a log recording module of the background program of the CTC system to be tested, and storing the recorded data into a folder with a specified number to be used as an automatic test log script file;
initializing relevant settings of an automated test tool, comprising: setting the number range of the test cases and a consistency comparison rule; extracting a corresponding test case according to the set test case number range, loading a related automatic test log script file for the current test case, changing the program starting time and configuring according to the program configuration file, inputting the current test case into a CTC system background program to be tested for testing, comparing data recorded by a CTC system background program log recording module to be tested with the related automatic test log script file according to a consistency comparison rule, and judging the test result of the current test case according to the comparison result;
when the current CTC system background program is changed, a new automatic test log script file is newly made for a new function, and an automatic test tool is used for carrying out complete automatic regression test on all existing functions of the current CTC system background program.
2. The method of claim 1, wherein the raw transaction log file and the associated parsing log file comprise: an original received data log file, an original sent data log file, a received data analysis log file, and a sent data analysis log file; wherein:
a log recording module of a CTC system background program records each packet of network original data received from each external subsystem one by one, corresponds to the system time when the network original data is received one by one and is recorded in an original received data log file; meanwhile, analyzing the data content of the original data received by each packet according to a CTC communication protocol, recording the analyzed data content in a received data analysis log file, and analyzing to obtain the following information: receiving time, information source equipment, information types and information contents;
the log recording module of the CTC system background program records each packet of network original data transmitted to each external subsystem, corresponds to the system time during transmission one by one and is recorded in an original transmission data log file; meanwhile, analyzing the data content of the original data sent by each packet according to a CTC communication protocol, recording the analyzed data content in a sending data analysis log file, and analyzing to obtain the following information: sending time, information destination equipment, information type and information content.
3. The implementation method of the regression test of the background program of the CTC system of the railway according to claim 1 or 2, wherein the automatic test log script files correspond to the test cases one by one, each test case has the corresponding automatic test log script file, and the automatic test log script file creation step includes:
building a test environment, correctly configuring a program according to a test case to be tested, and starting a CTC system background program to be tested;
for each test case, testing in an existing mode;
after the test is finished, obtaining an original transceiving data log file and a related analysis log file corresponding to each test case and a program configuration file corresponding to the test case, and putting the obtained files into a folder named by corresponding test case numbers to be used as an automatic test log script file; wherein, the original receiving and sending data log file records the program starting time.
4. The method for implementing regression testing of background programs of a railway CTC system of claims 1 or 2, wherein for a current test case, loading a related automated test log script file, inputting the current test case into a CTC system background program to be tested for testing, comparing data recorded by a CTC system background program log recording module to be tested with the related automated test log script file according to a consistency comparison rule, and determining a test result of the current test case according to a comparison result comprises:
loading a related automatic test log script file, and configuring the system time and the IP address according to a program configuration file in the automatic test log script file;
starting a background program of the CTC system to be tested, and sending each packet of original received data recorded in an original received data log file in an automatic test log script file to the background program of the CTC system to be tested according to the receiving time recorded in a corresponding original received data analysis log file;
the CTC system background program to be tested generates corresponding output aiming at original received data, the output comprises transmitted data and a corresponding analysis log file, the analysis log file in the output is extracted, and consistency comparison is carried out on the analysis log file corresponding to the transmitted data in an automatic test log script file;
and if all the information in the two analysis log files is completely consistent, or the difference of the sending time recorded in the two analysis log files does not exceed the time difference threshold value in the consistency comparison rule, and the difference of the content in the two analysis log files does not exceed the inner tolerance threshold value in the consistency comparison rule, determining that the current test case passes the test.
5. The implementation method of the regression testing of the background program of the CTC system of claim 1, wherein the step of forming a test report after all test cases are tested comprises: the total number of test cases in the test, the total number of test cases passing the test and the total number of test cases failing the test; and for the test cases failing to pass the test, listing the relevant data packet entries and specific contents failing to pass the consistency comparison rule.
CN202111253650.3A 2021-10-27 2021-10-27 Railway CTC system background program regression test implementation method Pending CN114020608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111253650.3A CN114020608A (en) 2021-10-27 2021-10-27 Railway CTC system background program regression test implementation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111253650.3A CN114020608A (en) 2021-10-27 2021-10-27 Railway CTC system background program regression test implementation method

Publications (1)

Publication Number Publication Date
CN114020608A true CN114020608A (en) 2022-02-08

Family

ID=80057944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111253650.3A Pending CN114020608A (en) 2021-10-27 2021-10-27 Railway CTC system background program regression test implementation method

Country Status (1)

Country Link
CN (1) CN114020608A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739742A (en) * 2018-11-27 2019-05-10 口碑(上海)信息技术有限公司 Business datum checking method, device and equipment
CN109960653A (en) * 2019-02-18 2019-07-02 天津五八到家科技有限公司 Regression testing method, device, equipment and storage medium
CN110908906A (en) * 2019-11-18 2020-03-24 中国民航信息网络股份有限公司 Regression testing method and system
CN112860538A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Method and device for performing interface regression test based on online log

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739742A (en) * 2018-11-27 2019-05-10 口碑(上海)信息技术有限公司 Business datum checking method, device and equipment
CN109960653A (en) * 2019-02-18 2019-07-02 天津五八到家科技有限公司 Regression testing method, device, equipment and storage medium
CN110908906A (en) * 2019-11-18 2020-03-24 中国民航信息网络股份有限公司 Regression testing method and system
CN112860538A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Method and device for performing interface regression test based on online log

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Z. LI等: "Research and application of automated test for background program of railway CTC system", 《2021 CHINA AUTOMATION CONGRESS (CAC)》, 14 March 2022 (2022-03-14), pages 1975 - 1978 *
陈倩佳: "列控中心软件测试技术的研究与应用", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》, no. 06, 15 June 2016 (2016-06-15), pages 033 - 78 *

Similar Documents

Publication Publication Date Title
US11281570B2 (en) Software testing method, system, apparatus, device medium, and computer program product
CN111190812A (en) Automatic test framework based on embedded equipment
CN103365770A (en) Mobile terminal software testing system and software testing method
CN111124919A (en) User interface testing method, device, equipment and storage medium
EP3518441B1 (en) Test troubleshooting system and method
CN110688313B (en) Fault injection method for software testing under VxWorks operating system
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
CN111198811A (en) Page automatic test method and device, electronic equipment and storage medium
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN111462811A (en) Automatic testing method and device, storage medium and electronic equipment
CN107480050B (en) Test method for automatically testing update package
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN115546927A (en) UDS diagnosis automatic test system based on AUTOSAR standard
CN108009086B (en) System automation test method based on case decomposition and function learning
CN112506772B (en) Web automatic test method, device, electronic equipment and storage medium
CN112269697B (en) Equipment storage performance testing method, system and related device
CN114020608A (en) Railway CTC system background program regression test implementation method
CN114661615B (en) FPGA software testing method and device
CN114996039A (en) Cloud native system joint debugging method, system and medium based on third-party system docking
CN112416796B (en) Software upgrading test method and device
CN111813665A (en) Big data platform interface data testing method and system based on python
CN111966589A (en) Bug processing method, device and equipment based on function test
CN113094281B (en) Test method and device for hybrid App
CN110806981A (en) Application program testing method, device, equipment and storage medium
AU2023201696B2 (en) Method and device for determining coverage in HIL testing, and storage medium

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