CN102789409A - Embedded system automation module test method on basis of data communication monitoring - Google Patents

Embedded system automation module test method on basis of data communication monitoring Download PDF

Info

Publication number
CN102789409A
CN102789409A CN2012102202263A CN201210220226A CN102789409A CN 102789409 A CN102789409 A CN 102789409A CN 2012102202263 A CN2012102202263 A CN 2012102202263A CN 201210220226 A CN201210220226 A CN 201210220226A CN 102789409 A CN102789409 A CN 102789409A
Authority
CN
China
Prior art keywords
test
module
external control
function
control module
Prior art date
Application number
CN2012102202263A
Other languages
Chinese (zh)
Inventor
张裁会
朱世勇
桑晓华
蒋慧群
Original Assignee
惠州市德赛西威汽车电子有限公司
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 惠州市德赛西威汽车电子有限公司 filed Critical 惠州市德赛西威汽车电子有限公司
Priority to CN2012102202263A priority Critical patent/CN102789409A/en
Publication of CN102789409A publication Critical patent/CN102789409A/en

Links

Abstract

The invention discloses an embedded system automation module test method on the basis of the data communication monitoring. The method comprises the following steps of: calling a performance function of each functional module inside a vehicle-mounted automobile sound system by an external control module; and monitoring the communication between sub modules inside the vehicle-mounted automobile sound system and the feedback of various state information by the external control module so as to judge whether the performance functions are correctly implemented. Due to the application of the embedded system automation module test method, not only can the interface test work of each functional module inside the vehicle-mounted automobile sound system be automatically completed, a test result is given and a test report is generated, but also a test engineer can keep mind on the design of the test scheme rather than the repeated manual operation. Moreover, various trace log information in the generated test report is helpful for a development engineer to carry out positioning analysis and solve the problems and is helpful for improving the efficiency of software development.

Description

一种基于数据通讯监测的嵌入式系统自动化模块测试方法 An automated system module embedded test method is based on monitoring data communications

技术领域 FIELD

[0001] 本发明涉及系统的自动测试,具体涉及一种基于数据通讯监测的嵌入式系统自动化模块测试方法。 [0001] The present invention relates to an automatic testing system, particularly relates to automated systems embedded module testing method based on the monitored data communication.

背景技术 Background technique

[0002] 一般目前在汽车电子行业内,车载汽车音响系统的功能定义已经基本成型。 [0002] Generally currently in the automotive electronics industry, function definitions car car audio system has taken shape. 而车载汽车音响系统的测试仍旧主要依靠手动测试完成,重复性的测试占用了大量的资源。 The test car car audio system is still mainly rely on manual testing is complete, and repeatable test takes up a lot of resources.

发明内容 SUMMARY

[0003] 针对现有技术存在的问题,本发明的目的是提供一种基于数据通讯监测的嵌入式系统自动化模块测试方法,该方法通过外部控制模块调用车载汽车音响系统内部各个功能模块的功能函数;并且通过外部控制模块监测车载汽车音响系统内部各个子模块之间的通讯以及各种状态信息的反馈来判断功能函数的实现是否正确。 [0003] for the presence of the prior art, an object of the present invention is to provide a system for automatically testing the embedded module based on the monitored data communication, which calls the function-vehicle car audio system, an internal function of each module through the external control module ; and a feedback and monitor various vehicle communication between the internal state information of each sub-vehicle audio system modules to external control module determines whether the function properly implement the functions.

[0004] 本发明通过如下技术方案实现: [0004] The present invention is achieved by the following technical solutions:

一种基于数据通讯监测的嵌入式系统自动化模块测试方法,包括如下步骤: Test Method for Embedded System automation module based on the monitored data communication, comprising the steps of:

(1)根据各个功能模块的设计文档创建各自的测试案例库; (1) create their own library of test cases according to design documents of each module;

(2)定义一种外部控制模块与汽车音响系统之间的内部通讯协议; (2) define a internal communication protocol between the external control module and the vehicle audio system;

(3)选择测试案例,根据定义的功能模块发送相应的命令,从而在被测设备中调用相应的功能函数; (3) selecting a test case, send a corresponding function defined in accordance with a command module to invoke the corresponding function in the function of the device under test;

(4)被测设备执行相应的函数后,会反馈相应的输入输出数据; (4) performs a corresponding function device under test, feedback will output data corresponding to the input;

(5)外部控制模块监测被测设备反馈回的输入输出数据,与数据库中理论(期望)结果进行对比,得出测试结论,如果结果不一致则记录当前的数据信息并保存到测试报告中。 (5) External control module monitors the device under test is fed back to the input and output data, in the database the theoretical (expected) result of comparison, the test has concluded, if not the result of the current data record and stores the information in the test report.

[0005] 所述一种基于数据通讯监测的嵌入式系统自动化模块测试方法中,根据车载音响系统内部各个功能函数的实际调用形式,利用外部控制模块与车载汽车音响系统之间的一组通讯协议来实现调用车载音响系统内的功能函数。 [0005] The data communication system based on embedded monitoring module automated test method in accordance with the internal form of the actual call car audio system various functions, a group using a communication protocol between the external control module and the vehicle-mounted car audio systems to achieve the performance function call within the car audio system.

[0006] 所述一种基于数据通讯监测的嵌入式系统自动化模块测试方法中,利用外部控制模块实时监测车载音响系统内部各个子模块之间的通讯以及各种数据反馈。 [0006] The embedded system is an automated test module based on monitored data communications, and various data communication between the external control module using the internal real-time monitoring system submodules automotive audio feedback.

[0007] 本发明由于采取以上技术方案,其具有以下优点: [0007] As a result of the present invention, the above technical solution, which has the following advantages:

1、能够自主完成车载汽车音响系统内部各个功能模块的接口测试工作,并给出测试结果生成测试报告; 1, capable of autonomous vehicle interior completion interface testing vehicle audio system of each module, and the test results are given generate test reports;

2、让测试工程师专注于测试案例的设计而不是重复的手动操作; 2, so that test engineers to focus on design rather than a test case of repetitive manual operations;

3、生成的测试报告中的各种跟踪日志(TRACE LOG)信息,有助于开发工程师定位分析解决问题,提高软件开发效率。 3, test report generation in various trace log (TRACE LOG) information to help locate development engineers to analyze and solve problems and improve software development efficiency.

附图说明 BRIEF DESCRIPTION

[0008] 图I是采用本发明的测试流程图。 [0008] Figure I is a flow chart of the present invention using Test. 具体实施方式 Detailed ways

[0009] 下面结合附图和实施例对本发明的进行详细的描述。 Drawings and embodiments of the present invention will be described in detail [0009] below in conjunction.

[0010] 如图I所示,一种基于数据通讯监测的嵌入式系统自动化模块测试方法包括以下步骤: [0010] As shown in FIG. I, a system for automated module based on the embedded data communication test method comprising the steps of monitoring:

(1)根据各个功能模块的设计文档创建各自的测试案例库; (1) create their own library of test cases according to design documents of each module;

(2)定义一种外部控制模块与汽车音响系统之间的内部通讯协议; (2) define a internal communication protocol between the external control module and the vehicle audio system;

(3)选择测试案例,根据定义的功能模块发送相应的命令,从而在被测功能模块中调用相应的功能函数; (4)被测功能模块执行相应的函数后,会反馈相应的输入输出数据; (3) selecting a test case, send a corresponding function defined in accordance with a command module to invoke the corresponding function in the function test function module; (4) performs a corresponding function module under test functions, the corresponding feedback input will output data ;

(5)外部控制模块监测被测功能模块反馈回的输入输出数据,与数据库中理论结果进行对比,得出测试结论,如果结果不一致则记录当前的数据信息并保存到测试报告中。 (5) the control module monitors the external test data input and output function block fed back, the theoretical results with the database comparison, the test has concluded, if not the result of the current data record and stores the information in the test report.

[0011] 实施例 [0011] Example

例如,对汽车音响的机芯模块的测试,设计测试案例库,其中包含出碟(Eject)功能的测试,具体步骤如下: For example, the test car audio movement module, designed to test case base, which contains a test disc (Eject) function, the following steps:

(1)测试设备发送出碟(Eject)命令:0xll ;此时被测设备将调用和执行功能函数:void mmi_cdp_eject_disc(); (1) Test apparatus transmits a disc (Eject) command: 0xll; In this case the device under test to perform the function calls and function: void mmi_cdp_eject_disc ();

(2)监控设备在15ms内接收并记录被测设备返回的第一条状态信息:0x20 0x01 (2) the first monitoring device to receive and record of status information returned by the device under test within 15ms: 0x20 0x01

0x05 ; 0x05;

(3)监控设备在540ms内接收并记录被测设备返回的第二条状态信息:0x20 0x010x01 ;根据通信协议定义,收到第一条信息表明机芯播放状态已停止,当前正在出碟,收到第二条信息表明机芯停止播放,当前出碟已完成; (3) received in the monitoring device and the recording device under test 540ms second state information returned by: 0x20 0x010x01; defined according to a communication protocol, the first received message indicates the state of the movement has stopped playing, the discs are in close the second message indicates movement to stop playing the current disc have been completed;

(4)监控设备根据步骤3的判断,记录出碟(Eject)功能测试结果为通过;如果被测设备返回的状态信息不正确则表明测试结果为失败,记录该测试结果及对应的跟踪日志(Trace log); (4) monitoring apparatus according to the judgment of step 3, the recording disc (Eject) by a functional test result; if the status information returned by the device under test is incorrect test result indicates a failure, recording the test results and the corresponding trace log ( Trace log);

上述实施例是本发明的优选实施方式,除此之外,本发明还可以有其他实现方式。 The above embodiment is a preferred embodiment of the present invention, in addition, the present invention is capable of other implementations. 也就是说,在没有脱离本发明构思的前提下,任何显而易见的替换也应落入本发明的保护范围之内。 That is, in the present invention without departing from the spirit of the premise, any replacement should also be apparent that fall within the scope of the present invention.

Claims (3)

1. 一种基于数据通讯监测的嵌入式系统自动化模块测试方法,包括如下步骤: (1)根据各个功能模块的设计文档创建各自的测试案例库; (2)定义一种外部控制模块与汽车音响系统之间的内部通讯协议; (3)选择测试案例,根据定义的功能模块发送相应的命令,从而在被测功能模块中调用相应的功能函数; (4)被测功能模块执行相应的函数后,会反馈相应的输入输出数据; (5)外部控制模块监测被测设备反馈回的输入输出数据,与数据库中理论结果进行对比,得出测试结论,如果结果不一致则记录当前的数据信息并保存到测试报告中。 1. A method for automated testing modules embedded systems based on monitoring data communications, comprising the steps of: (1) create their own library of test cases according to design documents of each module; (2) the definition of an external control module and car stereo (4) performs a corresponding function module under test function; internal communication protocol between the system; (3) selecting a test case, send a corresponding function defined in accordance with a command module to invoke the corresponding function in the function tested function module will feedback to the corresponding input and output data; (5) external control module monitors the DUT input and output data is fed back, compared with the theoretical results database, the test has concluded, if the results do not match, the current record and store data to the test report.
2.根据权利要求书I所述的一种基于数据通讯监测的嵌入式系统自动化模块测试方法,其特征是根据车载音响系统内部各个功能函数的实际调用形式,利用外部控制模块与车载汽车音响系统之间的一组通讯协议来实现调用车载音响系统内的功能函数。 2. According to one of the claims I automated method for embedded system test based on the monitored data communication module, wherein the internal form of the actual vehicle audio system to call the respective functions, a module with external control vehicle car audio systems a set of communication protocol between the calling function to implement functions within the car audio system.
3.根据权利要求书I所述一种基于数据通讯监测的嵌入式系统自动化模块测试方法,其特征利用外部控制模块实时监测车载音响系统内部各个子模块之间的通讯以及各种数据反馈。 According to the claims I An automated test module based on the embedded system monitoring data communications, characterized by the use of various data communications between the internal and external control module car audio systems, real-time monitoring submodules feedback.
CN2012102202263A 2012-06-29 2012-06-29 Embedded system automation module test method on basis of data communication monitoring CN102789409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102202263A CN102789409A (en) 2012-06-29 2012-06-29 Embedded system automation module test method on basis of data communication monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102202263A CN102789409A (en) 2012-06-29 2012-06-29 Embedded system automation module test method on basis of data communication monitoring

Publications (1)

Publication Number Publication Date
CN102789409A true CN102789409A (en) 2012-11-21

Family

ID=47154816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102202263A CN102789409A (en) 2012-06-29 2012-06-29 Embedded system automation module test method on basis of data communication monitoring

Country Status (1)

Country Link
CN (1) CN102789409A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015097587A1 (en) * 2013-12-23 2015-07-02 International Business Machines Corporation Creating trace data from recent software output and activity
CN105339901A (en) * 2013-04-20 2016-02-17 肯赛里克斯公司 Tracer list for automatically controlling tracer behavior
US9767006B2 (en) 2013-02-12 2017-09-19 Microsoft Technology Licensing, Llc Deploying trace objectives using cost analyses
US9772927B2 (en) 2013-11-13 2017-09-26 Microsoft Technology Licensing, Llc User interface for selecting tracing origins for aggregating classes of trace data
US9804949B2 (en) 2013-02-12 2017-10-31 Microsoft Technology Licensing, Llc Periodicity optimization in an automated tracing system
US9864672B2 (en) 2013-09-04 2018-01-09 Microsoft Technology Licensing, Llc Module specific tracing in a shared module environment
US10178031B2 (en) 2013-01-25 2019-01-08 Microsoft Technology Licensing, Llc Tracing with a workload distributor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162146A (en) * 2007-02-01 2008-04-16 厦门雅迅网络股份有限公司 Method for searching interest points according to the first letter of phonation in networking vehicle mounted guidance apparatus
CN101764641A (en) * 2009-12-22 2010-06-30 上海磁浮交通发展有限公司;上海磁浮交通工程技术研究中心 Train and ground wireless communication synchronous evaluating system and method
CN102004489A (en) * 2010-10-15 2011-04-06 北京交通大学 Test system and method of data-driven vehicle-mounted operation control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162146A (en) * 2007-02-01 2008-04-16 厦门雅迅网络股份有限公司 Method for searching interest points according to the first letter of phonation in networking vehicle mounted guidance apparatus
CN101764641A (en) * 2009-12-22 2010-06-30 上海磁浮交通发展有限公司;上海磁浮交通工程技术研究中心 Train and ground wireless communication synchronous evaluating system and method
CN102004489A (en) * 2010-10-15 2011-04-06 北京交通大学 Test system and method of data-driven vehicle-mounted operation control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
章慧,张勇: "CTCS3级列控系统车载设备测试方法研究", 《铁路计算机应用》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10178031B2 (en) 2013-01-25 2019-01-08 Microsoft Technology Licensing, Llc Tracing with a workload distributor
US9804949B2 (en) 2013-02-12 2017-10-31 Microsoft Technology Licensing, Llc Periodicity optimization in an automated tracing system
US9767006B2 (en) 2013-02-12 2017-09-19 Microsoft Technology Licensing, Llc Deploying trace objectives using cost analyses
CN105339901A (en) * 2013-04-20 2016-02-17 肯赛里克斯公司 Tracer list for automatically controlling tracer behavior
US9864672B2 (en) 2013-09-04 2018-01-09 Microsoft Technology Licensing, Llc Module specific tracing in a shared module environment
US9772927B2 (en) 2013-11-13 2017-09-26 Microsoft Technology Licensing, Llc User interface for selecting tracing origins for aggregating classes of trace data
WO2015097587A1 (en) * 2013-12-23 2015-07-02 International Business Machines Corporation Creating trace data from recent software output and activity
US10049027B2 (en) 2013-12-23 2018-08-14 International Business Machines Corporation Creating trace data from recent software output and activity
US10095604B2 (en) 2013-12-23 2018-10-09 International Business Machines Corporation Creating trace data from recent software output and activity
US10331544B2 (en) 2013-12-23 2019-06-25 International Business Machines Corporation Creating trace data from recent software output and activity

Similar Documents

Publication Publication Date Title
CN102004489B (en) Test system and method of data-driven vehicle-mounted operation control system
CN101175284B (en) Function testing method of portable electronic apparatus
CN101727389A (en) Automatic test system and method of distributed integrated service
CN101430557B (en) Multi-protocol data transducer used for vehicle fault diagnosis and its diagnosis processing method
CN101246439B (en) Automatized test method and system based on task scheduling
CN100473084C (en) Testing system and method for mobile telephones
CN101227350B (en) System for parallel executing automatization test based on priority level scheduling and method thereof
CN1851665A (en) Method for completing product automation test utilizing test kit
CN1719925A (en) Method and apparatus for automatically testing CDMA cell phone software
CN102323499A (en) Method for automatically testing relay protection equipment
WO2007065321A1 (en) A protocol conformance test device and a test method thereof
CN101145859B (en) Phone board testing system and method
CN101478449A (en) Protocol automatic test method and system thereof
US20090199096A1 (en) Automated gui test recording/playback
CN102799511A (en) Android-based automatic test method and system
CN100493226C (en) Test system of the mobile terminal power consumption
CN101241467A (en) Automatized white box test system and method facing to WEB application
CN1796941B (en) Car borne communication and navigation equipment for realization of detecting cars mobilely and remotely detection
CN102393738A (en) Diagnostic device and test method of automobile electronic control unit (ECU)
CN102917095A (en) Method and device for testing terminal based on Android
CN101789889B (en) Method and system for automatic testing communication equipment
EP2160908B1 (en) Method for testing a mobile radio device
CN102438055A (en) Mobile phone automated testing method based on bluetooth communication
CN102831894B (en) Command processing method, command processing device and command processing system
CN102857857B (en) Loudspeaker box channel matching method of multi-channel wireless audio system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)