CN108804301A - A kind of train control system software testing system and method based on E & FR data - Google Patents

A kind of train control system software testing system and method based on E & FR data Download PDF

Info

Publication number
CN108804301A
CN108804301A CN201710288763.4A CN201710288763A CN108804301A CN 108804301 A CN108804301 A CN 108804301A CN 201710288763 A CN201710288763 A CN 201710288763A CN 108804301 A CN108804301 A CN 108804301A
Authority
CN
China
Prior art keywords
data
test
software
control system
train control
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
CN201710288763.4A
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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CRRC Times Electric 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 Zhuzhou CRRC Times Electric Co Ltd filed Critical Zhuzhou CRRC Times Electric Co Ltd
Priority to CN201710288763.4A priority Critical patent/CN108804301A/en
Publication of CN108804301A publication Critical patent/CN108804301A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/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/3692Test management for test results analysis

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of train control system software testing systems and test method based on E & FR data.Test method includes the following steps:S1. software requirement and test environment demand are obtained;S2. it writes test case and accompanies examination software;S3. implementation of test cases;S4. according to test case input parameter on accompanying examination software;S5. input parameter, output parameter are recorded in data recordin module;S6. analysis software test result is used.There is real-time, accuracy height, the advantage that as a result continuity is strong and accuracy is high in test result analysis comparison.

Description

A kind of train control system software testing system based on E & FR data And method
Technical field
Invention software technical field of measurement and test, more particularly, to a kind of train based on E & FR data Control System Software tests system and method.
Background technology
As train control system is in the increasingly higher demands of stability, reliability, real-time, safety etc., Train control system software includes that transmission and the quality requirement of network control system software aspects are also increasingly stringenter, Train Control System software is needed before putting into operation through corresponding software test.
Train control system software testing system generally by tested module and accompanies die trial block to form, and writes and accompanies examination software and drive Dynamic software is separately operable in accompanying die trial block and tested module.As shown in Figure 1, usually carrying out train control system method for testing software It is that software requirement function first to acquisition is analyzed, the design test case in accompanying die trial block, implementation of test cases is checked point Analyse test result.By with accompany what the PC machine that die trial block and tested module be connected carried out data to output and input checking for result. The method generally observed by the method for display and monitored variable, can not preserve data, low precision in real time, while people The time of naked eyes and reflection ability is unable to reach Millisecond and is easy fatigue, and the accuracy in test result is poor.This observation As a result there are real-time differences for method not in time, data do not have continuity, is be easy to cause when testing some control function points Error and the shortcomings that defect is revealed scene, reduces the quality of product.
As shown in Fig. 2, being mounted with that an event logging module ERM passes through MVB mouthfuls and networked control system of the train module on train The communication interconnection of the MVB equipment such as VCM or GWM, it is convenient subsequently to failure and event for the communication data of effective train car control It is analyzed.Event logging module(ERM)It is soft as vehicle trouble messages record, logout, conditional information logging modle Part must can store fault message, and logout is managed, and the information such as storage vehicle operating condition parameter meet various vehicles Application demand.Event logging module(ERM)It can be connected respectively in TCN networks and ECN networks, number is obtained from network It is believed that after breath, it is stored in local in the form of binary file, when needing to check data, PC can be downloaded to by Ethernet (Ground analysis software).
Invention content
The present invention is at least one defect overcome described in the above-mentioned prior art, provides a kind of measurement result and is reliably based on The system of the train control system software test of E & FR data, including tested module, accompany die trial block, for recording Input, output data data recordin module and be mounted with the PC machine of analysis software;Tested module accompanies die trial block, data note Record module is sequentially connected by MVB bus;PC machine by the way of serial ports or Ethernet respectively with accompany die trial block and tested mould Block connects.
The data recordin module is event logging module.
The present invention is ingenious in train control system software testing system to increase event logging module, rationally utilizes and gets over The event of part logging modle passes through event with fault data recorder function by accompanying die trial block to test tested module Logging modle is recorded and is exported to test data, and record of the PC machine to test data logging modle of analysis software is mounted with As a result it is analyzed, substantially increases visuality, the reliability of test result.
Another object of the present invention is to provide one kind test result analysis comparison on have it is real-time, as a result connect Continuous property is strong and the method for the high train control system software test based on E & FR data of accuracy.
In order to solve the above technical problems, technical scheme is as follows,
A kind of method of the train control system software test based on E & FR data is provided, is included the following steps:
S1. software requirement and test environment demand are obtained;
S2. it writes test case and accompanies examination software;
S3. implementation of test cases;
S4. according to test case input parameter on accompanying examination software;
S5. input parameter, output parameter are recorded in data recordin module;
S6. analysis software test result is used.
The present invention changes in the test of train control system software, is seen by the method for display and monitored variable The conventional method examined, but the input parameter accompanied on examination software, output parameter are recorded in data recordin module, then to test As a result it is analyzed, data result has real-time, continuity so that test analysis transparent procedures improves test quality.
Further, step S5 specifically,
S51. the data of input are reached into the information exchange with tested software by test environment, records the test result of output;
S52. the test result parameter of the data of corresponding test input and output is carried out according to the agreement of data recordin module Format conversion;
S53. the data file converted to format downloads to data recordin module;
S54. analytic application software parses the data file stored to data recordin module as desired.
Further, in step S3, the data recordin module is event logging module(ERM).
Further, in step S52, the test result parameter of the data of corresponding test input and output is formed EXCEL file, then again by the Content Transformation in EXCEL file be XML format file.
Further, in step S53 .DAT files that the data file of download is stored as naming with the date.
Further, the data of parsing are exported as to the file of EXCLE formats.
Further, step S6 specifically,
S61. valid data screening is carried out to data;
S62. set target value, compared with effective output data is carried out continuously with desired value.
It is further preferred that in step S62, continuously compared by diagrammatic form.
Compared with prior art, the advantageous effect of technical solution of the present invention is:Have in test result analysis comparison real Shi Xingqiang, accuracy is high, the advantage that as a result continuity is strong and accuracy is high.
Description of the drawings
Fig. 1 is train control system method for testing software flow chart in the prior art;
Fig. 2 is the connection figure of event logging module in the prior art;
Fig. 3 is that the present invention is based on the method flow diagrams of the train control system software test of E & FR data;Fig. 4 is The method flow diagram that usage data record module of the present invention records input, output data;
Fig. 5 is that the present invention is based on the structure charts of the train control system software testing system of E & FR data;
Fig. 6 is the test result figure of train control system method for testing software of the embodiment 1 based on E & FR data Table.
Specific implementation mode
The attached figures are only used for illustrative purposes and cannot be understood as limitating the patent;It is attached in order to more preferably illustrate the present embodiment Scheme certain components to have omission, zoom in or out, does not represent the size of actual product;To those skilled in the art, The omitting of some known structures and their instructions in the attached drawings are understandable.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation " " connects Connect " it shall be understood in a broad sense, for example, it may be being fixedly connected, it may be a detachable connection, or be integrally connected;It can be machine Tool connects, and can also be electrical connection;It can be directly connected, can also be to be indirectly connected with by intermediary, it may be said that two Connection inside element.For the ordinary skill in the art, above-mentioned term can be understood in the present invention with concrete condition Concrete meaning.
The following further describes the technical solution of the present invention with reference to the accompanying drawings and examples.
Embodiment 1
A kind of system of the train control system software test based on E & FR data is present embodiments provided, is such as schemed Shown in 5, including tested module, die trial block is accompanied, event logging module for recording input, output data and is mounted with parsing The PC machine of software;Tested module accompanies die trial block, event logging module to be sequentially connected by MVB bus;PC machine use serial ports or with The mode netted very much is connect with die trial block and tested module is accompanied respectively.
Real-time testing result is recorded in event logging module by tested module by accompanying die trial block to be tested, and is led to It crosses and is mounted with the PC machine of analysis software and is downloaded and parses, test result has the characteristics that reliable, accurate.
Embodiment 2
As shown in Figure 1, existing test method, on accompanying examination software according to test case input data after, to test result It checks the method for being only capable of being observed by the method for display and monitored variable, data, low precision can not be preserved in real time(As shown Show that the speed that device is shown is at maximum up to 0.1s), while human eye and reflection ability time be unable to reach Millisecond and be easy Fatigue, the accuracy in test result are poor.It is this observation result method there are real-time differences not in time, data do not have prolong Continuous property, cannot know analytic process, can not judge the error condition in test process.Hold when testing some control function points The shortcomings that easily causing error and defect revealed scene, reducing the quality of product.
As shown in Figure 3 and Figure 4, a kind of train control system based on E & FR data is present embodiments provided The method of software test, includes the following steps,
S1. software requirement and test environment demand are obtained;
S2. it writes test case and accompanies examination software;
S3. implementation of test cases;
S4. according to test case input data on accompanying examination software;
S5. input parameter, output parameter are recorded in event logging module(ERM modules)In.
Step S5 specifically,
S51. the data of input are reached into the information exchange with tested software by test environment, records the test result of output;
S52. the test result parameter of the data of corresponding test input and output is turned according to the agreement of ERM modules into row format It changes;
S53. the data file that format conversion is crossed is downloaded into ERM modules;
S54. analytic application software parses the data file stored to ERM modules as desired.
S6. analysis software test result is used;
In step s 6,
S61. valid data screening is carried out to data;
S62. set target value, compared with effective inputoutput data is carried out continuously with desired value.
It is compared according to the expected result in design use-case with the actual result that use-case obtains is executed, if the two is identical, It then indicates to pass through, test terminates;Otherwise it is not pass through, then is recycled back to step S3.
Below for testing the low constant speed function in train control system, to describe the specific work(of train control system software The test method of energy.
Design test environment first, design train carries out test train speed when different resistance factors change, variable because Element is selected as train resistance and tractive force;Implementation of test cases, the determination data to be inputted are train resistance and tractive force, are determined Its variable name, types of variables, variable meaning and data source etc.;It will be right in die trial block having designed accompanying for test environment The given corresponding value of input data answered, then the data of input are reached hand over the information of tested software by test environment Mutually, input parameter, output parameter are recorded in ERM modules by the test result for recording output.
In order to make the data information of input and output be recorded in ERM modules, by data information according to ERM modules Agreement carries out format conversion.In the present embodiment, step S52 specifically, by the relevant information of these data, as title, port numbers, Size etc. is organized into an EXCEL file, and the Microsoft Excel, which is then converted into XML file, with tool downloads to ERM modules In.
Step S53 is specifically, carried out the corresponding input data of field in XML format and output data by ERM modules It records and forms a DAT file by date.
As shown in figure 5, PC machine 3 and event logging module 2(ERM modules)It is connected, it, will with software is downloaded in PC machine 3 DAT is downloaded, and analytic application software is parsed.When being parsed to ERM moulds logout file in the block, data are browsed, The type of data, continuous time are selected, querying condition, including data time, each environmental variance, screening removal nothing are set Imitate data.
The file of parsing is exported as into EXCEL formats.As shown in fig. 6, in graphical form by EXCEL, checking test knot Fruit.To result set target value, such as set target velocity as 0.4km/h, error range 10%, i.e., 0.35km/h extremely Between 0.45km/h.Screen the parameter of output(Such as speed, distance), formed such as Fig. 6 institutes using chart systematic function in EXCEL The result shown.The test result remains all valid data in test, can with real-time awareness test process and test error, Test result is clear, clear.
If it is identical as desired value that output valve in error range, is considered as output valve, then test passes through, otherwise not by then Thinking train control system software, there are problems, and multiple regression test is needed to re-execute use-case.
The test method of the present invention has continuity, real-time, accuracy and visual feature in test result.
The same or similar label correspond to the same or similar components;Position relationship described in attached drawing is used to be only used for showing Example property explanation, should not be understood as the limitation to this patent.
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair The restriction of embodiments of the present invention.For those of ordinary skill in the art, may be used also on the basis of the above description To make other variations or changes in different ways.There is no necessity and possibility to exhaust all the enbodiments.It is all this All any modification, equivalent and improvement etc., should be included in the claims in the present invention made by within the spirit and principle of invention Protection domain within.

Claims (9)

1. a kind of train control system software testing system based on E & FR data, which is characterized in that including quilt Survey module, accompany die trial block, for record input, the data recordin module of output data and the PC machine for being mounted with analysis software; Tested module accompanies die trial block, data recordin module to be sequentially connected by MVB bus;PC machine is by the way of serial ports or Ethernet It is connect respectively with die trial block and tested module is accompanied.
2. the train control system software testing system according to claim 1 based on E & FR data, It is characterized in that, the data recordin module is event logging module.
3. a kind of applying the train control system software test based on E & FR data described in claims 1 or 2 The test method of system, which is characterized in that include the following steps,
S1. software requirement and test environment demand are obtained;
S2. it writes test case and accompanies examination software;
S3. implementation of test cases;
S4. according to test case input parameter on accompanying examination software;
S5. input parameter, output parameter are recorded in data recordin module;
S6. analysis software test result is used.
4. the method for the train control system software test according to claim 3 based on E & FR data, It is characterized in that, step S5 specifically,
S51. the data of input are reached into the information exchange with tested software by test environment, records the test result of output;
S52. the test result parameter of the data of corresponding test input and output is carried out according to the agreement of data recordin module Format conversion;
S53. the data file that format conversion is crossed is downloaded into data recordin module;
S54. analytic application software parses the data file stored to data recordin module as desired.
5. the method for the train control system software test according to claim 4 based on E & FR data, It is characterized in that, in step S52, the test result parameter of the data of corresponding test input and output is formed into EXCEL file, Then again by the Content Transformation in EXCEL file be XML format file.
6. the method for the train control system software test according to claim 4 based on E & FR data, It is characterized in that, in step S53, DAT files that the data file of download is stored as naming with the date.
7. the method for the train control system software test according to claim 4 based on E & FR data, It is characterized in that, the file that the data of parsing are exported as to EXCLE formats is analyzed.
8. being surveyed according to train control system software of claim 4 to 7 any one of them based on E & FR data The method of examination, which is characterized in that step S6 specifically,
S61. valid data screening is carried out to data;
S62. set target value, compared with effective output data is carried out continuously with desired value.
9. the method for the train control system software test according to claim 8 based on E & FR data, It is characterized in that, in the step S62, continuously compared by diagrammatic form.
CN201710288763.4A 2017-04-27 2017-04-27 A kind of train control system software testing system and method based on E & FR data Pending CN108804301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710288763.4A CN108804301A (en) 2017-04-27 2017-04-27 A kind of train control system software testing system and method based on E & FR data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710288763.4A CN108804301A (en) 2017-04-27 2017-04-27 A kind of train control system software testing system and method based on E & FR data

Publications (1)

Publication Number Publication Date
CN108804301A true CN108804301A (en) 2018-11-13

Family

ID=64069374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710288763.4A Pending CN108804301A (en) 2017-04-27 2017-04-27 A kind of train control system software testing system and method based on E & FR data

Country Status (1)

Country Link
CN (1) CN108804301A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008129A (en) * 2019-11-22 2020-04-14 清华大学天津高端装备研究院 Test method of automobile event data recording system
CN112306877A (en) * 2020-10-30 2021-02-02 山东山大电力技术股份有限公司 Power system fault operation and maintenance method and system
CN112350839A (en) * 2019-08-07 2021-02-09 中车株洲电力机车研究所有限公司 Event recording method and device for Ethernet, computer equipment and storage medium
CN115134819A (en) * 2022-09-01 2022-09-30 卡斯柯信号(北京)有限公司 Test method and device for train control wireless block system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104697799A (en) * 2015-03-10 2015-06-10 无锡惠科电工高新技术有限公司 Automatic load increase testing system and testing method for engine
CN104765681A (en) * 2015-03-18 2015-07-08 株洲南车时代电气股份有限公司 Automated train drive control software testing system and method
CN104866426A (en) * 2015-05-28 2015-08-26 华北计算技术研究所 Software test integrated control method and system
CN105279090A (en) * 2015-11-17 2016-01-27 中国建设银行股份有限公司 Test script generating method and test script generating device applied in financial field
CN106407108A (en) * 2016-09-06 2017-02-15 株洲中车时代电气股份有限公司 Test method and system for train network event recording software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104697799A (en) * 2015-03-10 2015-06-10 无锡惠科电工高新技术有限公司 Automatic load increase testing system and testing method for engine
CN104765681A (en) * 2015-03-18 2015-07-08 株洲南车时代电气股份有限公司 Automated train drive control software testing system and method
CN104866426A (en) * 2015-05-28 2015-08-26 华北计算技术研究所 Software test integrated control method and system
CN105279090A (en) * 2015-11-17 2016-01-27 中国建设银行股份有限公司 Test script generating method and test script generating device applied in financial field
CN106407108A (en) * 2016-09-06 2017-02-15 株洲中车时代电气股份有限公司 Test method and system for train network event recording software

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350839A (en) * 2019-08-07 2021-02-09 中车株洲电力机车研究所有限公司 Event recording method and device for Ethernet, computer equipment and storage medium
CN112350839B (en) * 2019-08-07 2023-04-07 中车株洲电力机车研究所有限公司 Event recording method and device for Ethernet, computer equipment and storage medium
CN111008129A (en) * 2019-11-22 2020-04-14 清华大学天津高端装备研究院 Test method of automobile event data recording system
CN112306877A (en) * 2020-10-30 2021-02-02 山东山大电力技术股份有限公司 Power system fault operation and maintenance method and system
CN112306877B (en) * 2020-10-30 2024-02-20 山东山大电力技术股份有限公司 Power system fault operation and maintenance method and system
CN115134819A (en) * 2022-09-01 2022-09-30 卡斯柯信号(北京)有限公司 Test method and device for train control wireless block system

Similar Documents

Publication Publication Date Title
CN107229584B (en) I/O management system of avionic simulation test platform
CN108804301A (en) A kind of train control system software testing system and method based on E & FR data
Deb et al. QSI's integrated diagnostics toolset
CN103678093B (en) A kind of automated test frame and method of testing
CN107222362A (en) A kind of vehicle CAN network automatic test platform and its optimization method
CN105573296A (en) Hardware-in-loop-based automation test system for automobile diagnosis, and method thereof
CN102393738A (en) Diagnostic device and test method of automobile electronic control unit (ECU)
CN108108403B (en) Spacer layer based equipment logic configuration visualization platform system and construction method thereof
CN105515911A (en) Gateway automatic test system and method of CAN network
CN101149780B (en) System and method for automatic measurement for radio frequency identification service system
CN108092854A (en) The test method and device of train grade ethernet device based on IEC61375 agreements
CN101902368B (en) WEB performance test method based on simulation of bulk thin client operation and test system thereof
CN103116287A (en) Avionics equipment running environment dynamic simulating device and method
CN102801805A (en) Field data acquisition system and method based on mobile internet technology
CN109857087A (en) A kind of urban rail zone controller system hardware is in ring test system
CN107966648B (en) A kind of embedded failure diagnosis method based on correlation matrix
CN110843705A (en) Vehicle-mounted CAN bus monitoring system
CN114578786A (en) Vehicle test system
CN114461526A (en) System, method and device for testing data consistency and storage medium
CN111737074A (en) Equipment test system and method for urban rail area controller
CN101969233A (en) Testing method and device of power grid video and environment monitoring system
CN111307280A (en) Converter valve base electronic equipment optical power online monitoring system and monitoring method
CN106813702B (en) A kind of test device and system of communications records device
CN206115231U (en) Synthesize reliability test safety monitoring system
CN113204499B (en) CBTC system simulation test method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113