CN107562038A - A kind of Vehicle Controller Auto-Test System - Google Patents

A kind of Vehicle Controller Auto-Test System Download PDF

Info

Publication number
CN107562038A
CN107562038A CN201710774451.4A CN201710774451A CN107562038A CN 107562038 A CN107562038 A CN 107562038A CN 201710774451 A CN201710774451 A CN 201710774451A CN 107562038 A CN107562038 A CN 107562038A
Authority
CN
China
Prior art keywords
test
data
host computer
module
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710774451.4A
Other languages
Chinese (zh)
Other versions
CN107562038B (en
Inventor
耿卫杰
李海霞
马天龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
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 FAW Group Corp filed Critical FAW Group Corp
Priority to CN201710774451.4A priority Critical patent/CN107562038B/en
Publication of CN107562038A publication Critical patent/CN107562038A/en
Application granted granted Critical
Publication of CN107562038B publication Critical patent/CN107562038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a kind of Vehicle Controller Auto-Test System, the slave computer being connected including host computer and with host computer, emulator and power supply unit, PC control power supply unit is that emulator and slave computer are powered, and control instruction and data to be tested are sent to slave computer by emulator, control instruction includes instruction slave computer and treats the instruction that test data tested and sent corresponding test data according to specified requirement, slave computer is treated test data based on the control instruction that host computer is sent and tested, and obtained test data is sent to host computer by emulator, host computer receives and validation test data, and based on test result corresponding to checking generation.System provided by the invention handles test data, the transmission of the Code Design of test case, test data is separately carried out, it can adapt to different testing requirements, so that Test Sample Design code has good portability and durability, different project demands can adapt to.

Description

A kind of Vehicle Controller Auto-Test System
Technical field
The invention belongs to automatic test field, and in particular to a kind of Vehicle Controller Auto-Test System.
Background technology
With Vehicle Controller function increasingly complex, the function of the basic software of Vehicle Controller is also on the increase, right In the demand of regression test, also very huge and new functional requirement requirement is rapid meets to require, so, Vehicle Controller base The test job amount increase of plinth, and testing time requirement is shortened as far as possible, it is therefore desirable to current Vehicle Controller test Code is tested in system must possess portable, reusability and scalability.And the characteristics of Vehicle Controller basic software, It is i.e. complicated, including testing component and test approaches it is various, and the needs of object to be measured constantly change in the project. In this case system architecture is required to allow for adapting to continually changing testing requirement as early as possible.Vehicle Controller basic software The time cycle of test is short, and disclosure satisfy that the demand of a large amount of regression tests.In this case, the pass that must primarily solve Key problem is newly-increased Test Sample Design problem, a large amount of test data process problems etc..
And the method for testing of current Vehicle Controller is substantially all using hardware-in―the-loop test (HIL:Hardware in Loop method), is technology maturation the characteristics of this method of testing, hardware and software platform, using the theory of closed loop, it is possible to achieve from Dynamicization is tested, and reduces the artificially interference to system, and the control strategy test for Vehicle Controller achieves good effect Fruit.In addition, current basic software architectural framework is from former single-point structural development to current answering based on AUTOSAR The architectural framework of miscellaneous layer-stepping, it is characterized in that external interface is more, and the demand under development according to project, constantly expand Exhibition, the change of hardware interface is frequent, while constantly has new component to be introduced into controller system, especially commercial car full-vehicle control Management system of the device as whole onboard system, its external interface is more, and the function of realization is more complicated, in initial stage of development, it is difficult to All determine external demand.
Therefore, it is impossible to meet the testing requirement of basic software for existing vehicle-mounted controller testing system.
The content of the invention
The example technical problems to be solved of the present invention are to provide a kind of Vehicle Controller Auto-Test System, and it can expire The testing requirement of sufficient Vehicle Controller basic software, there is good expanded function, effectively realize regression test.
The technical solution adopted by the present invention is:
Embodiments of the invention provide a kind of Vehicle Controller Auto-Test System, including host computer and with it is described upper Machine connection slave computer, emulator and power supply unit, power supply unit described in the PC control be the emulator and The slave computer power supply, and control instruction and data to be tested, the control are sent to the slave computer by the emulator System instruction includes the instruction slave computer and is tested and sent corresponding survey to the data to be tested according to specified requirement The instruction of data is tried, the slave computer is tested the data to be tested based on the control instruction that the host computer is sent, And obtained test data is sent to the host computer by the emulator, the host computer receives and verifies the survey Data are tried, and based on test result corresponding to the checking generation;Wherein, it is provided with the host computer and is in communication with each other connection Test data input/output module, host computer Test Sample Design module, host computer hardware interface extraction module, the test number It is used to receive the document related to testing according to input/output module and the document to being received is analyzed and processed to generate test Required data and the data generated are stored in data storage cell during execution, and given birth to based on the test result Into corresponding test report;The host computer Test Sample Design module is used to choose from the test data input/output module Data to be tested simultaneously test logical sum control instruction accordingly for selected design data to be tested, to realize that test case is held The input of required test data during row;The host computer hardware interface extraction module is used for the host computer Test Sample Design The data to be tested that module is sent and the control instruction comprising the test logic corresponding to the data to be tested are sent to described Emulator;The lower computer hardware interface extraction module for being in communication with each other connection is provided with the slave computer and slave computer test is used Example design module, the lower computer hardware interface extraction module are used to receive data to be tested and the bag that the emulator is sent Control instruction containing the test logic corresponding to the data to be tested, and the test data of reception and control instruction are sent to The slave computer Test Sample Design module, the slave computer Test Sample Design module are treated based on the control instruction to described Test data carries out test operation, and corresponding response test data are sent by the lower computer hardware interface extraction module To the emulator.
Alternatively, the test data input data module include test suite selecting unit, test cases selection unit, Test data processing unit, test data memory cell and test result output unit;The test suite selecting unit is used for Based on the testing requirement analysis tables and test case library of system input, test suite data are extracted, generate data to be tested, And by testing data storage into the test data memory cell;It is the system that the test cases selection unit, which is used for, The testing requirement analysis table and test case library of input, test case data is extracted, generates data to be tested, and by number to be measured According to storage into the test data memory cell;The test data unit is used to extract required during test case execution Testing data, based on the technical documentation related to test, the data to be tested are extracted, generation test data inputs table, and By in test data memory cell described in data Cun Chudao to be tested;The test result output unit is used for complete in test execution Cheng Hou, based on the test result output data in test data memory cell, generate test report.
Alternatively, the host computer Test Sample Design module includes host computer test suite driver element, host computer is surveyed Try out example driver element, host computer test data driver element, host computer test result output unit, the host computer test group Part driver element is used to obtain test suite from the test data memory cell of the test data input/output module Select the data in table, generation one-level selection driving table;The host computer test case driver element is used for from the host computer The data in test cases selection table, generation two are obtained in the test data memory cell of test data input/output module Level selection driving table;The host computer test data driver element is used for from the host computer test data input/output module The data in test data input table, generation three-level selection driving table are obtained in the test data memory cell;It is described upper Machine test result output unit is used for after the completion of test case is performed, and caused test result data is output to the test number In test result output table according to the test data memory cell of input/output module;The one-level drives table and described two The process that level driving table control host computer test case performs, for the driving table for selecting host computer test case, described three Method, step and process of the level driving table for controlling slave computer test execution, including embodiment handle data, embodiment are to be measured Try data, slave computer module to be tested chooses data.
Alternatively, the host computer hardware interface extraction module is used for the input number of host computer Test Sample Design module According to passing to the slave computer, and encapsulate the otherness of different test objects while reduce negative in equipment transmitting procedure Carry;The host computer hardware interface extraction module include external equipment extraction unit, host computer nominal data extraction unit and under Position power traction pin extraction unit, wherein, the external equipment extraction unit, for receiving the number of host computer Test Sample Design module According to controlling the external equipment in test system, so that test signal is loaded on the slave computer, realize external equipment details It is invisible for host computer Test Sample Design module;The slave computer pin extraction unit, for by manipulating communication emulation Node, to communication bus input test signal, and test data is extracted from communication bus, and set by I/O terminal control It is standby, extract test data to I/O terminal input test signal and from I/O terminal;The host computer nominal data extraction unit, use In by the test suite driver element data of the Test Sample Design unit module, test case driver element data, test Data drive unit data transfer is given to slave computer, and by the response test data transfer of the slave computer test case module Host computer Test Sample Design module.
Alternatively, the lower computer hardware interface extraction module includes slave computer nominal data extraction unit and the next power traction Pin extraction unit, the slave computer Test Sample Design module include test module driver element, test data driver element and Test result output unit;The slave computer nominal data extraction unit, for the bottom to be tested for sending the host computer Machine module chooses the test module driver element that data are sent to the slave computer, the embodiment handle that the host computer is sent Data and embodiment data to be tested are sent to the test data driver element of the slave computer, and by the test of the slave computer As a result response test data are sent to the host computer caused by output unit;The slave computer pin extraction unit is used for institute Slave computer Test Sample Design module is stated to pass to the control data of slave computer output pin described in the slave computer and control Slave computer output signal data, and the data of reception are sent to the slave computer Test Sample Design module, complete to hard The test of part I/O terminal;The test module driver element of the slave computer, for the slave computer module to be tested choosing based on acquisition Access evidence, chooses slave computer module to be measured;The test data driver element, for receiving the embodiment handle data of host computer With embodiment data to be tested, object to be tested is selected using the embodiment handle data of host computer, it is then that embodiment is to be measured Examination data, which act on, implements test on object to be tested.
Alternatively, the emulator includes communication bus unit, demarcation bus unit, I/O terminal unit, direct fault location Unit, the demarcation bus unit and the communication bus unit, the method emulated using node in bus, to the slave computer Data to be tested are sent, the I/O terminal unit is used to realize the data transfer between the host computer and the slave computer, institute Direct fault location unit is stated to be used to carry out direct fault location operation to the input and output pin of slave computer.
Compared with prior art, test data is handled, tested by Vehicle Controller Auto-Test System provided by the invention The transmission of the Code Design, test data of use-case is separately carried out, and can adapt to different testing requirements so that Test Sample Design Code has good portability and durability, can adapt to different project demands.
Brief description of the drawings
Fig. 1 is the structured flowchart of the Vehicle Controller Auto-Test System of the present invention;
Fig. 2 is the software module figure of the host computer of the present invention;
Fig. 3 is the software module figure of the slave computer of the present invention;
Fig. 4 is the detailed block diagram of the Vehicle Controller Auto-Test System of the present invention.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool Body embodiment is described in detail.
Fig. 1 is the structured flowchart of the Vehicle Controller Auto-Test System of the present invention;Fig. 2 is the soft of the host computer of the present invention Part module map;Fig. 3 is the software module figure of the slave computer of the present invention;Fig. 4 is the Vehicle Controller Auto-Test System of the present invention Detailed block diagram.
As shown in figure 1, Vehicle Controller Auto-Test System provided in an embodiment of the present invention, including host computer 1 and with Power supply unit 2, emulator 3 and the slave computer 4 of the host computer connection, the host computer 1 control the power supply unit 2 as institute State emulator 3 and the slave computer 4 is powered, and control instruction is sent to the slave computer 4 by the emulator 3 and treated Test data, the control instruction include indicating the slave computer according to specified requirement the data to be tested are tested with And the instruction of corresponding test data is sent, the control instruction that the slave computer 4 is sent based on the host computer 1 is to described to be measured Examination data are tested, and obtained test data is sent into the host computer 1 by the emulator 3, described upper Machine 1 receives and verifies the test data, and based on test result corresponding to the checking generation.In the present invention, host computer 1 Can be PC, power supply unit 2 can be that programmable power supply, emulator 3 can be to be made up of existing simulation card, slave computer 4 It can be Vehicle Controller, the energy supply control module of control program control power supply is provided with host computer 1, is controlled for control program Power supply provides power supply, such as 24V voltages for emulator and slave computer.
Specifically, as shown in Figure 2 and Figure 4, be provided with the host computer 1 be in communication with each other connection test data input it is defeated Go out module 101, host computer Test Sample Design module 102, host computer hardware interface extraction module 103.The test data is defeated Enter output module 101 to be used to receive the document related to testing and the document to being received is analyzed and processed and held to generate test The data that are needed during row and it is stored in test data memory cell, and corresponding test is generated based on the test result Report;The host computer Test Sample Design module 102 is used to deposit from the test data of the test data input/output module Data to be tested are chosen in storage unit, and logical sum control command is tested accordingly for selected design data to be tested, it is real The input of required test data when existing test case performs;The host computer hardware interface extraction module 103 is used for will be described The data to be tested of position machine Test Sample Design module transmission and the control for including the test logic corresponding to the data to be tested Instruction processed is sent to the emulator 3.In the present invention, test data memory cell can be data pool, but be not limited to This, as long as any software and hardware with store function.
Further, the test data input data module 101 includes test suite selecting unit, test cases selection Unit, test data processing unit, test data memory cell and test result output unit.Wherein, the test suite choosing Select unit and be used for testing requirement analysis table and test case library based on system input, extract test suite data, generation Data to be tested, i.e. component select table, and by testing data storage into the test data memory cell;The test is used Example selecting unit is used for testing requirement analysis table and test case library for system input, extracts test case data, raw Into data to be tested, i.e. test cases selection table, and by testing data storage into the test data memory cell;It is described Test data processing unit is used to extract testing data required when test case performs, based on the skill related to test data Art document, including the technical documentation such as platform software release document, testing requirement analysis table and codes and standards, extract number to be tested According to, generation test data input table, and by test data memory cell described in data Cun Chudao to be tested;The test knot Fruit output unit is used for after the completion of test execution, based on the test result output data in test data memory cell, that is, surveys Test result exports table, generates test report.
The test suite selecting unit, the test cases selection unit, the test data processing unit are loose lotus roots The relation of conjunction., can be according to existing especially in the case of testing requirement document incompleteness in the case of testing requirement is indefinite Technical documentation, set about carrying out the processing of wherein any component units of test data input/output module.The test suite choosing The work that unit, the test cases selection unit, the test data processing unit complete data input to be tested jointly is selected, It is indispensable relation, therefore, it is necessary to after three units are fully completed, Data Preparation to be tested enters ready State.
Further, host computer Test Sample Design module 102 includes host computer test suite driver element, host computer is surveyed Try out example driver element, host computer test data driver element, host computer test result output unit.The host computer test group Part driver element is used to obtain test suite from the test data memory cell of the test data input/output module Select the data in table, generation one-level selection driving table, i.e. test suite selection driving table;The host computer test case driving Unit is used to obtain test case from the test data memory cell of the host computer test data input/output module Select the data in table, generation two level selection driving table, i.e. test cases selection driving table;The host computer test data driving Unit is used to obtain test data from the test data memory cell of the host computer test data input/output module The data inputted in table, generation three-level selection driving table, i.e. test data driving table and test result comparison sheet;The host computer Test result output unit, after the completion of test case is performed, caused test result data is output to the test number In test result output table according to the test data memory cell of input/output module.
The test data driving table of the host computer test data driver element includes the whole for instantiating test case Data, i.e. embodiment handle data, embodiment data to be tested, slave computer to be tested (being also referred to as DUT below) module choose number According to;The test result comparison sheet of the host computer test data driver element is used for the true value for depositing test case implementing result Table.The effect of the host computer test data driver element includes:1) data are chosen using DUT module to be tested, is used for test Example selection slave computer object to be tested;2) test case is instantiated using embodiment handle data, and determines to test The number of use-case embodiment;3) test case embodiment data to be tested, the order that control test case embodiment performs are used And step, and whole test case embodiments required data in the process of implementation are provided.The embodiment handle data Data are chosen with the DUT module to be tested, in the presence of test case embodiment, by the hardware interface extraction module Nominal data extraction unit passes to the nominal data extraction unit of lower computer hardware interface extraction module, so as to pass to bottom The test suite driver element and test module driver element of machine Test Sample Design module, implement object lock to be tested;Institute State embodiment data to be tested, including three parts, i.e. peripheral equipment control data, DUT pin control data, emulator control Data processed.Wherein, peripheral equipment control data are by the external equipment extraction unit of the host computer hardware interface extraction module, External equipment such as power-supply device and Fault Insertion Equipment are operated, so as to load the purpose of data message to DUT;Emulator controls Data are by calling the DUT pin extraction unit of the host computer hardware interface extraction module, IO of the control emulator to DUT Pin loads signal data, so as to load data message to DUT;DUT pin control data is by calling host computer hardware interface The nominal data extraction unit of extraction module, DUT pin control data is passed into DUT.
In the present invention, the process that one-level driving table and secondary drive table control host computer test case perform, is to be used for The driving table of host computer test case is selected, and three-level driving table is used for the method, step and mistake for controlling slave computer test execution Journey.In measuring executing process, by the way of the driving of this three-level, the test suite driving table is one-level driving table, is adopted With the method for being successively read data in test suite selection driving table, the overall direction of control test execution and rhythm, so as to select Different test suites is taken, performs test;The test case driving table is secondary drive table, and its effect is in control assembly The direction and rhythm that test case performs, using the mode of First Input First Output, the test case in component is chosen, is held successively OK;The test data driving table is three-level driving table, and its main function is to be instantiated test case, and drives survey The embodiment of example on probation performs, and controls the test logical sum included in test case embodiment to test the execution side instructed It is under the jurisdiction of test data driver element to rhythm, test result comparison sheet, is the supplement of test data driving table, test case Embodiment perform after the completion of, obtain response test data, the embodiment of test case calls test result comparison sheet, and defeated Go out test result data.
The host computer test result output unit, after the completion of test case is performed, caused test result number In test result output table according to the test data memory cell for being output to the test data input/output module.
The effect of the host computer hardware interface extraction module 103 is by the input number of host computer Test Sample Design module According to passing to DUT, and encapsulate the otherness of different test objects while reduce the load in equipment transmitting procedure.On described Position machine hardware interface extraction module includes external equipment extraction unit, host computer nominal data extraction unit and DUT pin extraction Unit.The host computer nominal data extraction unit, for cooperateing with the nominal data of lower computer hardware interface extraction module to extract Unit, data are transmitted by demarcating total road, completed logical between host computer Test Sample Design layer and slave computer test case layer News, the transmission of control data, test data, response test data between host computer and slave computer, are all carried by nominal data Unit is taken to complete.The host computer nominal data extraction unit, the test suite of the Test Sample Design module is driven single Metadata, test case driver element data, test data driver element data transfer are to slave computer, and by the slave computer The response test data transfer of test case module gives host computer Test Sample Design module.The host computer nominal data extraction Unit, the function of realization including but not limited to track nominal data change, obtain the time shaft related to test data, numerical value Deng test parameter;It is characterized in that requirement of real-time is high, system load is big, and demarcation variables number is few, using nominal data at times The methods of using is transmitted using use and nominal data bag more is multiplexed with byte, the number of reduction demarcation variable, reduction is demarcated logical The network load of news.The DUT pin extraction unit, simulation node is communicated by manipulating, to communication bus input test signal, And test data is extracted from communication bus;By I/O terminal control device, to I/O terminal input test signal and from IO Terminal extracts test data.The external equipment extraction unit, receive the data of host computer Test Sample Design layer, control test External equipment in system, such as power supply, Fault Insertion Equipment, so as to which test signal is loaded on DUT, realize external equipment Details is invisible for host computer Test Sample Design layer.
As shown in Figure 3 and Figure 4, the slave computer 4 includes the next Test Sample Design module 401 and lower computer hardware and connect Mouth extraction module 402.The lower computer hardware interface extraction module 402 is used to receive the number to be tested that the emulator is sent According to the control instruction that includes the test logic corresponding to the data to be tested, and by the test data and control instruction of reception The slave computer Test Sample Design module is sent to, the slave computer Test Sample Design module 401 is based on the control and referred to Order carries out test operation to the data to be tested, and corresponding response test data are carried by the lower computer hardware interface Modulus block is sent to the emulator.
Wherein, the lower computer hardware interface extraction module 402 is extracted by the hardware interface of hardware module and host computer Data are transmitted between module, are realized by the data transfer between nominal data extraction unit;The lower computer hardware interface Extraction module is completed to inject DUT I/O data by DUT pin extraction unit.The slave computer nominal data extraction unit, The DUT module to be tested that host computer is delivered to slave computer chooses data, is passed up to slave computer Test Sample Design module Test module driver element;The embodiment handle data that host computer is delivered to slave computer are related to embodiment data to be tested Data are uploaded to the test data driver element of slave computer Test Sample Design module;By slave computer Test Sample Design module Response test data caused by test result output unit, pass to host computer.The slave computer DUT pin extraction unit, will Slave computer Test Sample Design layer passes to DUT to the control data of DUT output pins, controls its output signal data;By DUT The data transfer received on input pin gives slave computer Test Sample Design module, completes to test hardware I/O terminal.
The slave computer Test Sample Design module 401, driven by the test data of host computer Test Sample Design layer single Member control, completes the execution of testing example.The slave computer Test Sample Design module is by test module driver element, test Data drive unit and test result output unit composition.The test module driver element, obtain the DUT to be tested of host computer Module chooses data, chooses DUT module to be measured;The test data driver element, receive the embodiment handle data of host computer With embodiment data to be tested, object to be tested is selected using the embodiment handle data of host computer, it is then that embodiment is to be measured Examination data, which act on, implements test on object to be tested.Object to be tested loads host computer embodiment data to be tested, is surveyed Examination performs.Object to be tested is that output brings out terminal, then data to be tested is loaded on output data interface, connect by hardware Mouth extraction module, control DUT output expected datas;Object to be tested is input terminal, then is received from hardware interface extraction module The input data of respective terminal;Data to be tested are then directly loaded into corresponding DUT by object to be tested if DUT variables On variable, and the implementation status of variable is loaded on scalar quantity;The test result output unit, it is by data to be tested The result obtained after measurand is loaded into, is loaded directly into, on demarcation variable, and transmitting by nominal data extraction unit To the Test Sample Design module of host computer, the passback of test response data is completed.
In the present invention, emulator 3, i.e. hardware and Hardware drive module are the hardware supporting parts of the test system Point, as shown in figure 4, the emulator of the present invention may include communication bus unit, demarcation bus unit, I/O terminal unit, failure Injection unit.The demarcation bus unit and the communication bus unit, the method emulated using node in bus, to vehicle-mounted control Device processed sends data to be tested, and DUT bus to be tested can be made up of one or more vehicle mounted communication bus, is implementing to test When use-case loads, it is desirable to which indifference is tested between realizing different buses to be tested, and this just needs board to select, and disclosure satisfy that tool There is multiple communication link, the present invention uses Vector VT6204, can meet the needs of four road communication buses, realize data Transmission in bus, i.e., send data to the data on communication bus and Vehicle Controller reception bus from Vehicle Controller; The I/O terminal unit, because the I/O terminal species of Vehicle Controller is more, including analog quantity terminal, digital quantity terminal and frequency Measure terminal, substantial amounts, up to nearly 300, therefore the present invention realizes the control of terminal input data and defeated using VT boards Go out the collection of data, the module such as including VT2004, VT2516, VT2820.The direct fault location unit, for Vehicle Controller Input and output pin carries out direct fault location operation, realizes and is set during DUT failure input using relay as direct fault location emulation Standby, the direct fault location for realizing I/O pin using VT2820 general-purpose relay plates in the present invention operates.
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications It should be regarded as protection scope of the present invention.

Claims (6)

1. a kind of Vehicle Controller Auto-Test System, it is characterised in that be connected including host computer and with the host computer Slave computer, emulator and power supply unit, power supply unit described in the PC control are the emulator and the bottom Machine is powered, and sends control instruction and data to be tested, the control instruction bag to the slave computer by the emulator Include the instruction slave computer and tested and sent corresponding test data to the data to be tested according to specified requirement Instruction, the slave computer is tested the data to be tested based on the control instruction that the host computer is sent, and will be obtained Test data the host computer is sent to by the emulator, the host computer receives and verifies the test data, And based on test result corresponding to the checking generation;
Wherein, the test data input/output module for being in communication with each other connection, host computer test case are provided with the host computer Module, host computer hardware interface extraction module are designed, the test data input/output module is related to testing for receiving Document and the document to being received are analyzed and processed data required during generating test execution and the data that will be generated It is stored in data storage cell, and corresponding test report is generated based on the test result;The host computer test is used Example design module is used for from test data input/output module selection data to be tested and is selected data to be tested The corresponding test logical sum control instruction of design, the input of required test data during realizing that test case performs;It is described upper Machine hardware interface extraction module is used for the data to be tested for sending the host computer Test Sample Design module and comprising described The control instruction of test logic corresponding to data to be tested is sent to the emulator;
The lower computer hardware interface extraction module for being in communication with each other connection is provided with the slave computer and slave computer test case is set Module is counted, the lower computer hardware interface extraction module is used to receive the data to be tested of the emulator transmission and comprising institute State the control instruction of the test logic corresponding to data to be tested, and the test data of reception and control instruction be sent to described Slave computer Test Sample Design module, the slave computer Test Sample Design module are based on the control instruction to described to be tested Data carry out test operation, and corresponding response test data are sent into institute by the lower computer hardware interface extraction module State emulator.
2. system according to claim 1, it is characterised in that the test data input data module includes test suite Selecting unit, test cases selection unit, test data processing unit, test data memory cell and test result output are single Member;
The test suite selecting unit is used for testing requirement analysis table and test case library based on system input, extraction Test suite data, data to be tested are generated, and by testing data storage into the test data memory cell;
The test cases selection unit is used for testing requirement analysis table and test case library for system input, and extraction is surveyed Use-case data is tried, generates data to be tested, and by testing data storage into the test data memory cell;
The test data unit is used to extract testing data required when test case performs, based on the skill related to test Art document, the data to be tested, generation test data input table are extracted, and number will be tested described in data Cun Chudao to be tested According in memory cell;
The test result output unit is used for after the completion of test execution, based on the test result in test data memory cell Output data, generate test report.
3. system according to claim 2, it is characterised in that the host computer Test Sample Design module includes host computer Test suite driver element, host computer test case driver element, host computer test data driver element, host computer test result Output unit,
The host computer test suite driver element is used to deposit from the test data of the test data input/output module The data in test suite selection table, generation one-level selection driving table are obtained in storage unit;The host computer test case driving Unit is used to obtain test case from the test data memory cell of the host computer test data input/output module Select the data in table, generation two level selection driving table;The host computer test data driver element is used for from the host computer The data in test data input table, generation three are obtained in the test data memory cell of test data input/output module Level selection driving table;The host computer test result output unit is used for after the completion of test case is performed, caused test knot Fruit data output is into the test result output table of the test data memory cell of the test data input/output module;
The process that one-level driving table and secondary drive table control host computer test case perform, to be upper for selecting The driving table of machine test case, the three-level driving table are used for the method, step and process for controlling slave computer test execution, including Embodiment handle data, embodiment data to be tested, slave computer module to be tested choose data.
4. system according to claim 3, it is characterised in that the host computer hardware interface extraction module is used for will be upper The input data of machine Test Sample Design module, passes to the slave computer, and encapsulates the otherness, same of different test objects When reduce equipment transmitting procedure in load;
The host computer hardware interface extraction module include external equipment extraction unit, host computer nominal data extraction unit and under Position power traction pin extraction unit, wherein, the external equipment extraction unit, for receiving the number of host computer Test Sample Design module According to controlling the external equipment in test system, so that test signal is loaded on the slave computer, realize external equipment details It is invisible for host computer Test Sample Design module;The slave computer pin extraction unit, for by manipulating communication emulation Node, to communication bus input test signal, and test data is extracted from communication bus, and set by I/O terminal control It is standby, extract test data to I/O terminal input test signal and from I/O terminal;The host computer nominal data extraction unit, use In by the test suite driver element data of the Test Sample Design unit module, test case driver element data, test Data drive unit data transfer is given to slave computer, and by the response test data transfer of the slave computer test case module Host computer Test Sample Design module.
5. system according to claim 3, it is characterised in that the lower computer hardware interface extraction module includes slave computer Nominal data extraction unit and slave computer pin extraction unit, the slave computer Test Sample Design module are driven including test module Moving cell, test data driver element and test result output unit;
The slave computer nominal data extraction unit, the slave computer module to be tested for the host computer to be sent choose data The test module driver element of the slave computer is sent to, embodiment handle data and embodiment that the host computer is sent are treated Test data is sent to the test data driver element of the slave computer, and the test result output unit of the slave computer is produced Raw response test data are sent to the host computer;
The slave computer pin extraction unit is used for the slave computer Test Sample Design module to slave computer output pin Control data passes to the slave computer and controls the slave computer output signal data, and the data of reception are sent into institute Slave computer Test Sample Design module is stated, completes the test to hardware I/O terminal;
The test module driver element of the slave computer, data are chosen for the slave computer module to be tested based on acquisition, are chosen Slave computer module to be measured;The test data driver element, embodiment handle data and embodiment for receiving host computer are treated Test data, object to be tested is selected using the embodiment handle data of host computer, then acts on embodiment data to be tested In implementation test on object to be tested.
6. system according to claim 1, it is characterised in that the emulator includes communication bus unit, demarcation always Line unit, I/O terminal unit, direct fault location unit, the demarcation bus unit and the communication bus unit, using in bus The method of node emulation, data to be tested are sent to the slave computer, the I/O terminal unit be used to realizing the host computer and Data transfer between the slave computer, the direct fault location unit are used to carry out failure note to the input and output pin of slave computer Enter operation.
CN201710774451.4A 2017-08-31 2017-08-31 Automatic test system for vehicle-mounted controller Active CN107562038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710774451.4A CN107562038B (en) 2017-08-31 2017-08-31 Automatic test system for vehicle-mounted controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710774451.4A CN107562038B (en) 2017-08-31 2017-08-31 Automatic test system for vehicle-mounted controller

Publications (2)

Publication Number Publication Date
CN107562038A true CN107562038A (en) 2018-01-09
CN107562038B CN107562038B (en) 2020-10-27

Family

ID=60978712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710774451.4A Active CN107562038B (en) 2017-08-31 2017-08-31 Automatic test system for vehicle-mounted controller

Country Status (1)

Country Link
CN (1) CN107562038B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109712701A (en) * 2018-12-10 2019-05-03 上海联影医疗科技有限公司 Slave computer simulator and master system test method
CN110309069A (en) * 2019-06-24 2019-10-08 中国航空无线电电子研究所 Test case dynamically load and control tool
CN110618910A (en) * 2019-08-27 2019-12-27 中国第一汽车股份有限公司 Test system and method
CN110704315A (en) * 2019-09-26 2020-01-17 天津津航计算技术研究所 Fault injection device for embedded software test
CN110794813A (en) * 2019-11-18 2020-02-14 上海顺试汽车科技有限公司 In-loop real-time linkage testing method and system for electromechanical parts
CN111381578A (en) * 2018-12-29 2020-07-07 长城汽车股份有限公司 Vehicle control unit operation method and system and electronic control unit
CN111782524A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Application testing method and device, storage medium and electronic device
CN112255548A (en) * 2019-09-30 2021-01-22 蜂巢能源科技有限公司 Battery management system test method and system
CN112362360A (en) * 2020-11-10 2021-02-12 广州小鹏汽车科技有限公司 Vehicle component testing method, device and system, test board card and storage medium
CN113077735A (en) * 2020-01-06 2021-07-06 广州汽车集团股份有限公司 Method, device and system for testing vehicle-mounted display equipment
CN113569586A (en) * 2021-07-19 2021-10-29 北京易路行技术有限公司 Vehicle-mounted unit testing system and method
CN115883412A (en) * 2022-11-30 2023-03-31 一汽奔腾轿车有限公司 Switch VLAN test method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005044236A1 (en) * 2005-09-16 2007-03-29 Volkswagen Ag Diagnostic device for motor vehicle, has time-control and protocol control units for testing time-critical parameters and protocol parameters of vehicle communication system, where device communicates with vehicle by diagnostic interface
JP3963092B2 (en) * 2001-10-18 2007-08-22 トヨタ自動車株式会社 Vehicle system test apparatus and method
CN201199322Y (en) * 2008-04-24 2009-02-25 上海沪工汽车电器有限公司 Detection device for vehicle body central control module
CN105446312A (en) * 2015-04-01 2016-03-30 上海汽车集团股份有限公司 Car body electric control system testing platform based on hardware-in-the-loop
CN106647690A (en) * 2016-10-31 2017-05-10 中国第汽车股份有限公司 Network communication signal automatic testing system for body control module
CN206258730U (en) * 2016-11-21 2017-06-16 南京越博动力系统股份有限公司 A kind of electric motor car entire car controller hardware-in―the-loop test system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3963092B2 (en) * 2001-10-18 2007-08-22 トヨタ自動車株式会社 Vehicle system test apparatus and method
DE102005044236A1 (en) * 2005-09-16 2007-03-29 Volkswagen Ag Diagnostic device for motor vehicle, has time-control and protocol control units for testing time-critical parameters and protocol parameters of vehicle communication system, where device communicates with vehicle by diagnostic interface
CN201199322Y (en) * 2008-04-24 2009-02-25 上海沪工汽车电器有限公司 Detection device for vehicle body central control module
CN105446312A (en) * 2015-04-01 2016-03-30 上海汽车集团股份有限公司 Car body electric control system testing platform based on hardware-in-the-loop
CN106647690A (en) * 2016-10-31 2017-05-10 中国第汽车股份有限公司 Network communication signal automatic testing system for body control module
CN206258730U (en) * 2016-11-21 2017-06-16 南京越博动力系统股份有限公司 A kind of electric motor car entire car controller hardware-in―the-loop test system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109712701A (en) * 2018-12-10 2019-05-03 上海联影医疗科技有限公司 Slave computer simulator and master system test method
CN111381578A (en) * 2018-12-29 2020-07-07 长城汽车股份有限公司 Vehicle control unit operation method and system and electronic control unit
CN110309069A (en) * 2019-06-24 2019-10-08 中国航空无线电电子研究所 Test case dynamically load and control tool
CN110618910A (en) * 2019-08-27 2019-12-27 中国第一汽车股份有限公司 Test system and method
CN110704315B (en) * 2019-09-26 2022-10-25 天津津航计算技术研究所 Fault injection device for embedded software test
CN110704315A (en) * 2019-09-26 2020-01-17 天津津航计算技术研究所 Fault injection device for embedded software test
CN112255548B (en) * 2019-09-30 2023-06-13 蜂巢能源科技有限公司 Battery management system test method and system thereof
CN112255548A (en) * 2019-09-30 2021-01-22 蜂巢能源科技有限公司 Battery management system test method and system
CN110794813A (en) * 2019-11-18 2020-02-14 上海顺试汽车科技有限公司 In-loop real-time linkage testing method and system for electromechanical parts
CN110794813B (en) * 2019-11-18 2022-06-07 上海顺试汽车科技有限公司 In-loop real-time linkage testing method and system for electromechanical parts
CN113077735A (en) * 2020-01-06 2021-07-06 广州汽车集团股份有限公司 Method, device and system for testing vehicle-mounted display equipment
CN113077735B (en) * 2020-01-06 2023-11-17 广州汽车集团股份有限公司 Test method, device and system of vehicle-mounted display equipment
CN111782524A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Application testing method and device, storage medium and electronic device
CN112362360A (en) * 2020-11-10 2021-02-12 广州小鹏汽车科技有限公司 Vehicle component testing method, device and system, test board card and storage medium
CN113569586A (en) * 2021-07-19 2021-10-29 北京易路行技术有限公司 Vehicle-mounted unit testing system and method
CN115883412A (en) * 2022-11-30 2023-03-31 一汽奔腾轿车有限公司 Switch VLAN test method and system

Also Published As

Publication number Publication date
CN107562038B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN107562038A (en) A kind of Vehicle Controller Auto-Test System
CN107562635A (en) Embedded software test accessory system
CN104331282B (en) A kind of radio products restructural comprehensive exploitation test system
CN100530015C (en) Satellite automated test frame system
CN109039824A (en) A kind of car-mounted terminal wireless telecommunication protocol automation test macro and method
CN206400286U (en) A kind of test system based on hardware in loop equipment
CN201780506U (en) Test equipment for testing electronic controller
CN106546839A (en) Attitude control engine ground checkout equipment debugs test system and method automatically
CN107544018A (en) A kind of more site semaphores detections and fail-ure criterion system and method
CN105808432A (en) Software automated testing system and method for rail traffic drive control unit/ tractive control unit (DCU/TCU)
Hegny et al. IEC 61499 based simulation framework for model-driven production systems development
CN105933173A (en) Electric power system intelligent device automatic testing system
CN112532299B (en) Satellite test automatic execution system based on module splicing
CN105700512A (en) A test system for testing a vehicle control system and a method thereof
CN101170785B (en) Device and method for TCL to test base station software
CN110502430B (en) Flexible HIL test center and test method for vehicle electronic control unit
CN103913728B (en) A kind of method of testing based on portable radar comprehensive tester
CN105739481B (en) The test method of industrial control software, apparatus and system
CN112416804A (en) Real-time simulation test system and method
CN110611312B (en) On-line simulation system and method for panoramic data of substation bay level
CN104657262A (en) High-real-time automatic testing system and testing method
CN107727351A (en) A kind of automatic battery test system based on robot
Parkhomenko et al. Virtual tools and collaborative working environment in embedded system design
CN203069749U (en) Radio frequency identification devices (RFID) reader chip process testing system
CN107170218A (en) A kind of remote assistance method debugged for fire protection alarm system and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant