CN104360940A - DSU (Data Service Unit) test method and device - Google Patents

DSU (Data Service Unit) test method and device Download PDF

Info

Publication number
CN104360940A
CN104360940A CN201410602708.4A CN201410602708A CN104360940A CN 104360940 A CN104360940 A CN 104360940A CN 201410602708 A CN201410602708 A CN 201410602708A CN 104360940 A CN104360940 A CN 104360940A
Authority
CN
China
Prior art keywords
test
dsu
tested
described test
command
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
CN201410602708.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.)
Beijing Traffic Control Technology Co Ltd
Original Assignee
Beijing Traffic Control 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 Traffic Control Technology Co Ltd filed Critical Beijing Traffic Control Technology Co Ltd
Priority to CN201410602708.4A priority Critical patent/CN104360940A/en
Publication of CN104360940A publication Critical patent/CN104360940A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a DSU (Data Service Unit) test method and device. The method comprises the following steps: S1, sending a test command to a tested DSU according to a previously set test script so as to enable the tested DSU to execute the test command; S2, obtaining test data generated when the test command is executed by the tested DSU; S3, comparing the test data with expected data in the test script to obtain a test result; S4, generating a test report according to the test result. The test efficiency can be improved through the DSU test method and the DSU test device which are provided by the invention.

Description

The method of testing of a kind of DSU and device
Technical field
The present invention relates to technical field of measurement and test, particularly relate to method of testing and the device of a kind of DSU (Data Storage Unit, data storage cell).
Background technology
Software test is used to promote the process of the qualification correctness of software, integrality, security and quality.Software test operates program under defined terms, with discovery procedure mistake, weighs software quality, and to its process assessed that whether can meet design requirement.Software test is an important link in software life-cycle, and being the final review to software requirement, detailed design and coding, is the important means ensureing software quality.In railway signal system, DSU is the key equipment ensureing railway station train or locomotive shunting safety, very important to traffic safety to the accuracy of the test of DSU.
In prior art, in the actual test process of DSU, engineer's test script, test command in test script is handed down to DSU to be tested, often perform a test command all to need manually to have operated, after obtaining test result, the test result of test result and expection is compared, manually write test report.
Visible by foregoing description, need a large amount of manual operations to the test of DSU in prior art, testing efficiency is lower.
Summary of the invention
The invention provides method of testing and the device of a kind of DSU, can testing efficiency be improved.
On the one hand, the invention provides the method for testing of a kind of DSU, comprising:
S1: send test command according to the test script pre-set to measured data storage unit DSU, perform described test command to make described tested DSU;
S2: obtain the test data that described tested DSU performs the generation of described test command;
S3: the anticipatory data in described test data and described test script is compared, obtains test result;
S4: generate test report according to described test result.
Further, also comprised before described S1: the described test script loading outside input.
Further, described S1 comprises:
Send test command according to described test script to ZC equipment, to make described ZC equipment that described test command is sent to tested DSU, and make described tested DSU perform described test command.
Further, described S2 comprises:
Obtain described tested DSU that described ZC equipment sends and perform the test data that described test command produces.
Further, described S4 comprises:
Described test report is generated according to described test result and the test report template pre-set.
On the other hand, the invention provides the proving installation of a kind of DSU, comprising:
Transmitting element, for sending test command according to the test script pre-set to measured data storage unit DSU, performs described test command to make described tested DSU;
Acquiring unit, performs the test data of described test command generation for obtaining described tested DSU;
Comparing unit, for being compared by the anticipatory data in described test data and described test script, obtains test result;
Generation unit, for generating test report according to described test result.
Further, also comprise: loading unit, for loading the described test script of outside input.
Further, described transmitting element, specifically for sending test command according to described test script to ZC equipment, to make described ZC equipment that described test command is sent to tested DSU, and makes described tested DSU perform described test command.
Further, described acquiring unit, the described tested DSU sent specifically for obtaining described ZC equipment performs the test data that described test command produces.
Further, described generation unit, specifically for generating described test report according to described test result and the test report template pre-set.
By method of testing and the device of a kind of DSU provided by the invention, automatically can test DSU, in the process performing test script, not need artificial participation, and automatically can generate test report, improve testing efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the method for testing of a kind of DSU that the embodiment of the present invention provides;
Fig. 2 is the structural representation of the proving installation of a kind of DSU that the embodiment of the present invention provides.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
Embodiments provide the method for testing of a kind of DSU, see Fig. 1, the method comprises:
S1: send test command according to the test script pre-set to tested DSU, perform described test command to make described tested DSU;
S2: obtain the test data that described tested DSU performs the generation of described test command;
S3: the anticipatory data in described test data and described test script is compared, obtains test result;
S4: generate test report according to described test result.
The method of testing of a kind of DSU provided by above-described embodiment, can be tested DSU automatically, does not need artificial participation, and automatically can generate test report, improve testing efficiency in the process performing test script.
Test script in above-described embodiment can be xml form, has the test command pre-set in test script.
In a kind of possible implementation, also comprised before described S1: the described test script loading outside input.
In the implementation that another kind is possible, existing ZC (Zone Controller, zone controller) equipment can be passed through and come to send test command to tested DSU.Described S1 comprises:
Send test command according to described test script to ZC equipment, to make described ZC equipment that described test command is sent to tested DSU, and make described tested DSU perform described test command.
Can be obtained the test data of tested DSU generation by existing ZC equipment, described S2 comprises:
Obtain described tested DSU that described ZC equipment sends and perform the test data that described test command produces.
Above-mentioned ZC equipment can be ZC emulator, ZC system cabinet.The open corresponding interface of ZC equipment, is used for carrying out data transmission with tested DSU.Tested DSU can to ZC equipment send corresponding information as: temporary speed limitation information, cancel the mark etc. that powers on, also can obtain the temporary speed limitation information of reply and the label information etc. that powers on from ZC equipment simultaneously.
In order to satisfactory test report can be produced, can test report template be pre-set, according to test report template by the data stuffing of correspondence in template.Described S4 comprises:
Described test report is generated according to described test result and the test report template pre-set.
Above-mentioned DSU can be DSU software, DSU system.
The embodiment of the present invention additionally provides the proving installation of a kind of DSU, and see Fig. 2, this device comprises:
Transmitting element 201, for sending test command according to the test script pre-set to tested DSU, performs described test command to make described tested DSU;
Acquiring unit 202, performs the test data of described test command generation for obtaining described tested DSU;
Comparing unit 203, for being compared by the anticipatory data in described test data and described test script, obtains test result;
Generation unit 204, for generating test report according to described test result.
In a kind of possible implementation, said apparatus also comprises not shown loading unit, for loading the described test script of outside input.
In a kind of possible implementation, described transmitting element, specifically for sending test command according to described test script to ZC equipment, to make described ZC equipment that described test command is sent to tested DSU, and makes described tested DSU perform described test command.
Described acquiring unit, the described tested DSU sent specifically for obtaining described ZC equipment performs the test data that described test command produces.
In order to satisfactory test report can be produced, can test report template be pre-set, according to test report template by the data stuffing of correspondence in template.Described generation unit, specifically for generating described test report according to described test result and the test report template pre-set.
Above-mentioned proving installation, ZC equipment, tested DSU can be connected by network.
The content such as information interaction, implementation between each unit in the said equipment, subelement, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
The method of testing of a kind of DSU provided by the present embodiment and device, can make DSU test specification, sequencing, simplification, thus improve testing efficiency, shorten the test duration, and it is inaccurate to reduce the slip up test result brought of manual testing.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a method of testing of DSU, is characterized in that, comprising:
S1: send test command according to the test script pre-set to measured data storage unit DSU, perform described test command to make described tested DSU;
S2: obtain the test data that described tested DSU performs the generation of described test command;
S3: the anticipatory data in described test data and described test script is compared, obtains test result;
S4: generate test report according to described test result.
2. method according to claim 1, is characterized in that, also comprises before described S1: the described test script loading outside input.
3. method according to claim 1, is characterized in that, described S1 comprises:
Send test command according to described test script to zone controller ZC equipment, to make described ZC equipment that described test command is sent to tested DSU, and make described tested DSU perform described test command.
4. method according to claim 3, is characterized in that, described S2 comprises:
Obtain described tested DSU that described ZC equipment sends and perform the test data that described test command produces.
5. method according to claim 1, is characterized in that, described S4 comprises:
Described test report is generated according to described test result and the test report template pre-set.
6. a proving installation of DSU, is characterized in that, comprising:
Transmitting element, for sending test command according to the test script pre-set to measured data storage unit DSU, performs described test command to make described tested DSU;
Acquiring unit, performs the test data of described test command generation for obtaining described tested DSU;
Comparing unit, for being compared by the anticipatory data in described test data and described test script, obtains test result;
Generation unit, for generating test report according to described test result.
7. device according to claim 6, is characterized in that, also comprises: loading unit, for loading the described test script of outside input.
8. device according to claim 6, it is characterized in that, described transmitting element, specifically for sending test command according to described test script to zone controller ZC equipment, to make described ZC equipment that described test command is sent to tested DSU, and described tested DSU is made to perform described test command.
9. device according to claim 8, is characterized in that, described acquiring unit, and the described tested DSU sent specifically for obtaining described ZC equipment performs the test data that described test command produces.
10. device according to claim 6, is characterized in that, described generation unit, specifically for generating described test report according to described test result and the test report template pre-set.
CN201410602708.4A 2014-10-31 2014-10-31 DSU (Data Service Unit) test method and device Pending CN104360940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410602708.4A CN104360940A (en) 2014-10-31 2014-10-31 DSU (Data Service Unit) test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410602708.4A CN104360940A (en) 2014-10-31 2014-10-31 DSU (Data Service Unit) test method and device

Publications (1)

Publication Number Publication Date
CN104360940A true CN104360940A (en) 2015-02-18

Family

ID=52528204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410602708.4A Pending CN104360940A (en) 2014-10-31 2014-10-31 DSU (Data Service Unit) test method and device

Country Status (1)

Country Link
CN (1) CN104360940A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653445A (en) * 2015-12-25 2016-06-08 中电科航空电子有限公司 Implementation method capable of meeting DO-178C test result
CN106201886A (en) * 2016-07-18 2016-12-07 合网络技术(北京)有限公司 The Proxy Method of the checking of a kind of real time data task and device
CN106201887A (en) * 2016-07-18 2016-12-07 合网络技术(北京)有限公司 The verification method of a kind of off-line data task and device
CN106453480A (en) * 2016-08-01 2017-02-22 惠州华阳通用电子有限公司 Module level function test and fault diagnosis method for vehicle information system
CN106515796A (en) * 2016-12-09 2017-03-22 交控科技股份有限公司 Temporary speed limiting method based on a plurality of in-place working stations and DSU (Database Storage Unit)
CN106933713A (en) * 2015-12-30 2017-07-07 北京国睿中数科技股份有限公司 The verification method and checking system of hardware accelerator
CN107797540A (en) * 2016-09-07 2018-03-13 上海汽车集团股份有限公司 TRANS PROGRAM method of testing, device and terminal
CN110798372A (en) * 2019-01-28 2020-02-14 通号城市轨道交通技术有限公司 Data testing method and device
CN111016978A (en) * 2019-12-26 2020-04-17 天津津航计算技术研究所 Method for realizing regional controller equipment test based on GoogleTest test framework
CN111176910A (en) * 2018-11-29 2020-05-19 通号城市轨道交通技术有限公司 System function testing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994015418A1 (en) * 1992-12-23 1994-07-07 Motorola Inc. Communication between tasks within repeaters of a communication system
JP2004118777A (en) * 2002-09-30 2004-04-15 Hitachi Kokusai Electric Inc Test system for incorporated software
CN1959710A (en) * 2005-11-04 2007-05-09 鸿富锦精密工业(深圳)有限公司 Automatic test system and method
CN101183332A (en) * 2007-11-21 2008-05-21 北京中星微电子有限公司 Method and device for automatically generating testing datasets by program content
CN102662846A (en) * 2012-04-24 2012-09-12 广东欧珀移动通信有限公司 Testing method combining automatic tool and testing case
CN103723167A (en) * 2013-12-16 2014-04-16 北京交控科技有限公司 Point-type train speed limit setting method
CN103744781A (en) * 2013-12-27 2014-04-23 北京交控科技有限公司 Test method and test system for interlocking software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994015418A1 (en) * 1992-12-23 1994-07-07 Motorola Inc. Communication between tasks within repeaters of a communication system
JP2004118777A (en) * 2002-09-30 2004-04-15 Hitachi Kokusai Electric Inc Test system for incorporated software
CN1959710A (en) * 2005-11-04 2007-05-09 鸿富锦精密工业(深圳)有限公司 Automatic test system and method
CN101183332A (en) * 2007-11-21 2008-05-21 北京中星微电子有限公司 Method and device for automatically generating testing datasets by program content
CN102662846A (en) * 2012-04-24 2012-09-12 广东欧珀移动通信有限公司 Testing method combining automatic tool and testing case
CN103723167A (en) * 2013-12-16 2014-04-16 北京交控科技有限公司 Point-type train speed limit setting method
CN103744781A (en) * 2013-12-27 2014-04-23 北京交控科技有限公司 Test method and test system for interlocking software

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653445A (en) * 2015-12-25 2016-06-08 中电科航空电子有限公司 Implementation method capable of meeting DO-178C test result
CN105653445B (en) * 2015-12-25 2018-01-16 中电科航空电子有限公司 A kind of implementation method for meeting DO 178C test results
CN106933713A (en) * 2015-12-30 2017-07-07 北京国睿中数科技股份有限公司 The verification method and checking system of hardware accelerator
CN106933713B (en) * 2015-12-30 2020-04-28 北京国睿中数科技股份有限公司 Verification method and verification system of hardware accelerator
CN106201887B (en) * 2016-07-18 2019-04-09 优酷网络技术(北京)有限公司 A kind of verification method and device of off-line data task
CN106201887A (en) * 2016-07-18 2016-12-07 合网络技术(北京)有限公司 The verification method of a kind of off-line data task and device
CN106201886B (en) * 2016-07-18 2019-04-09 优酷网络技术(北京)有限公司 A kind of Proxy Method and device of the verifying of real time data task
CN106201886A (en) * 2016-07-18 2016-12-07 合网络技术(北京)有限公司 The Proxy Method of the checking of a kind of real time data task and device
CN106453480A (en) * 2016-08-01 2017-02-22 惠州华阳通用电子有限公司 Module level function test and fault diagnosis method for vehicle information system
CN107797540A (en) * 2016-09-07 2018-03-13 上海汽车集团股份有限公司 TRANS PROGRAM method of testing, device and terminal
CN106515796A (en) * 2016-12-09 2017-03-22 交控科技股份有限公司 Temporary speed limiting method based on a plurality of in-place working stations and DSU (Database Storage Unit)
CN106515796B (en) * 2016-12-09 2018-06-19 交控科技股份有限公司 It is a kind of based on the mostly temporary speed-limiting method and DSU of work station now
CN111176910A (en) * 2018-11-29 2020-05-19 通号城市轨道交通技术有限公司 System function testing method and device
CN110798372A (en) * 2019-01-28 2020-02-14 通号城市轨道交通技术有限公司 Data testing method and device
CN111016978A (en) * 2019-12-26 2020-04-17 天津津航计算技术研究所 Method for realizing regional controller equipment test based on GoogleTest test framework

Similar Documents

Publication Publication Date Title
CN104360940A (en) DSU (Data Service Unit) test method and device
CN106802862B (en) Automatic test platform for safety key software of train operation control system
CN102354209B (en) Test device and method for train control system
CN108009097B (en) Cloud computing simulation test method and device for rail transit signal system
CN109754663B (en) Method and device for realizing power transformation operation and maintenance operation full-process simulation training evaluation
CN109298648A (en) A kind of train control center emulation Auto-Test System
CN104516798B (en) Wireless one-to-many test system
CN103744781A (en) Test method and test system for interlocking software
CN108983077B (en) Circuit board test system and test method based on JTAG link
CN109656820A (en) Intelligent automation test macro based on CBTC
CN105138455A (en) Testing system and testing method of train control on-board device
JP5628086B2 (en) Display device screen all-point test method and all-point test device
CN109634258A (en) It is a kind of for the bus message method of calibration of hardware-in―the-loop test, apparatus and system
CN109086197A (en) The acceptance testing method and system of urban track traffic CBTC system
CN103905275A (en) Electric power telecontrol equipment testing method based on IEC61850 replacement services
CN108111265B (en) Automatic testing method for consistency of communication protocol
CN110704323A (en) Data automatic testing method and device based on rail transit line data
CN105279196A (en) Test script generation method and apparatus
Xie et al. Safety and reliability estimation of automatic train protection and block system
CN103812730A (en) Multiple cell TTCN (Tree and Tabular Combined Notation) protocol conformance test platform system
CN104361012B (en) A kind of method of testing and device of city track traffic engineering track data
CN103744414A (en) Test method and test device
CN107622013B (en) Distributed system testing method and device
CN115892147A (en) Computer automatic control testing method based on interlocking route and interlocking function angle
CN105490878B (en) NM server performance test methods and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100070 Beijing science and Technology Park of Fengtai District Haiying Road No. 6 hospital of Beijing, the headquarters of the International 2 Building No. 3

Applicant after: TRAFFIC CONTROL TECHNOLOGY Co.,Ltd.

Address before: 100070 Beijing science and Technology Park of Fengtai District Haiying Road No. 6 hospital of Beijing, the headquarters of the International 2 Building No. 3

Applicant before: Beijing Traffic Control Technology Co., Ltd.

COR Change of bibliographic data
CB02 Change of applicant information

Address after: 100070 Beijing science and Technology Park of Fengtai District Seahawks Hospital No. 6 2, No. 3 (Park)

Applicant after: TRAFFIC CONTROL TECHNOLOGY Co.,Ltd.

Address before: 100070 Beijing science and Technology Park of Fengtai District Haiying Road No. 6 hospital of Beijing, the headquarters of the International 2 Building No. 3

Applicant before: TRAFFIC CONTROL TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20150218

RJ01 Rejection of invention patent application after publication