Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of test macro for on-board multimedia device and method, to solve the low problem of testing efficiency of on-board multimedia device in above-mentioned prior art.
For realizing above-mentioned target and other related objectives, the invention provides a kind of test macro for on-board multimedia device, described on-board multimedia device comprises touch-screen; Described test macro comprises: driver module, comprise video acquisition unit, described video acquisition unit shows HMI video flowing used for man-machine interface on on-board multimedia device to be measured described in Real-time Collection, and described HMI video stream packets contains the multiple page views corresponding with the various states difference of described man-machine interface; HMI sample database, for storing each page view and the test touch event associated with described each page view of HMI video flowing of described collection; And storage: the incidence relation between the default results page view that described test touch event forms with the described test touch event of generation; HMI sample collection module, for gathering the current page view the man-machine interface of described on-board multimedia device from described HMI video flowing; Image sequence algorithmic match module, for mating described current page view, to search associated test touch event with each page view of described HMI sample database; Test sample book generation module, for forming test sample book by the test touch event finding; Described driver module, also for carrying out described test sample book so that the test touch event of test sample book is betided to described on-board multimedia device; , also there is the current results page view described test touch event for the man-machine interface that gathers described on-board multimedia device from described HMI video flowing in described HMI sample collection module; Described image sequence algorithmic match module, also for described current results page view is matched with default results page view corresponding to HMI sample database, wherein, the default results page view of described correspondence refers to: the default results page view being associated with the test touch event in the described test sample book that betides on-board multimedia device; If match, judge and test successfully; Otherwise judgement test crash.
Preferably, described test macro, also comprise: Virtual HMI module, in order to carry out the man-machine interface on on-board multimedia device described in simultaneous display according to the HMI video flowing of described collection, the man-machine interface of described simultaneous display is for receiving the simulated touch action that triggers test touch event; Described driver module, also moves for the simulated touch that described Virtual HMI module is received the test touch event triggering and betides described on-board multimedia device; Described HMI sample collection module, also for gather from described HMI video flowing the man-machine interface of described on-board multimedia device occur described in the current results page view that moved the test touch event triggering by simulated touch; Described image sequence algorithmic match module, also for the current results page view that occurs to be moved after the test touch event triggering by simulated touch is matched with default results page view corresponding to HMI sample database, wherein, the default results page view of described correspondence refers to: the default results page view being associated with the test touch event in the described test sample book that betides on-board multimedia device; If match, judge and test successfully; Otherwise judgement test crash.
Preferably, described man-machine interface includes button, and described HMI sample standard database also stores the coordinate information of button position in corresponding man-machine interface.
Preferably, described HMI sample database is to preset the described each page view of picture format storage; Described HMI sample collection module is also for being converted to described default picture format by described current page view and current results page view.
Preferably, the picture format that described default picture format is black and white brightness.
Preferably, described driver module comprises: touch simulation unit, for forming the touch input to described on-board multimedia device according to described simulated touch action; Serial port driving unit, for the controller of simulating described on-board multimedia device so that it is sent to control command; CAN Message Simulation unit, the CAN message producing for simulated automotive.
Preferably, described driver module also comprises: audio collection and output unit, and for gathering the sound signal of described on-board multimedia device output and for to described on-board multimedia device input audio signal.
Preferably, described test macro, also comprises: audio-frequency test module, test for the sound signal that described audio collection and output unit are gathered.
Preferably, described test macro connects described on-board multimedia device to set up signal path by hardware interface adapter, wherein, described test macro is connected in described test macro by USB standard circuit, and described hardware interface adapter passes through Cable connection in described on-board multimedia device.
Preferably, described test macro, also comprises: test report generation module, and for generating test report according to test result.
Preferably, described test macro, also comprises: test report analysis module, and for generating analysis result according to described test report.
For realizing above-mentioned target and other related objectives, the invention provides a kind of method of testing for on-board multimedia device, described on-board multimedia device comprises touch-screen; Described method of testing comprises: described in Real-time Collection, on on-board multimedia device to be measured, man-machine interface shows HMI video flowing used, and described HMI video stream packets contains the multiple page views corresponding with the various states difference of described man-machine interface; Store each page view and the test touch event associated with described each page view in the HMI video flowing of described collection; And storage: the incidence relation between the default results page view that described test touch event forms with the described test touch event of generation; Gather the current page view the man-machine interface of described on-board multimedia device from described HMI video flowing; Described current page view is mated with the each page view in described storage, to search associated test touch event; The test touch event finding is formed to test sample book; Carry out described test sample book so that the test touch event in test sample book is betided to described on-board multimedia device; There is the current results page view described test touch event in the man-machine interface that gathers described on-board multimedia device from described HMI video flowing; Described current results page view is matched with the corresponding default results page view in described storage, wherein, the default results page view of described correspondence refers to: the default results page view being associated with the test touch event in the described test sample book that betides on-board multimedia device; If match, judge and test successfully; Otherwise judgement test crash.
Preferably, described method of testing, also comprises: carry out the man-machine interface on on-board multimedia device described in simultaneous display according to the HMI video flowing of described collection, the man-machine interface of described simultaneous display is for receiving the simulated touch action that triggers test touch event; The simulated touch that described Virtual HMI module is received is moved the test touch event triggering and is betided described on-board multimedia device; The current results page view that moved the test touch event triggering by simulated touch described in the man-machine interface that gathers described on-board multimedia device from described HMI video flowing occurs; The current results page view that occurs to be moved after the test touch event triggering by simulated touch is matched with the corresponding default results page view in described storage, wherein, the default results page view of described correspondence refers to: with described betide on-board multimedia device move by simulated touch the default results page view that the test touch event that triggers is associated; If match, judge and test successfully; Otherwise judgement test crash.
Preferably, described man-machine interface includes button, and described storage also comprises: the coordinate information of storing button position in corresponding man-machine interface.
Preferably, described storage is to preset the mode of picture format to store described each page view; Described method of testing also comprises: described current page view and current results page view are converted to described default picture format.
Preferably, the picture format that described default picture format is black and white brightness.
Preferably, described method of testing, also comprises: gather the sound signal of described on-board multimedia device output and for to described on-board multimedia device input audio signal.
Preferably, described method of testing, also comprises: gathered sound signal is tested.
Preferably, described method of testing, also comprises: generate test report according to test result.
Preferably, described method of testing, also comprises: generate analysis result according to described test report.
As mentioned above, the invention provides a kind of test macro for on-board multimedia device and method, described on-board multimedia device comprises touch-screen; Described method of testing comprises: described in Real-time Collection, on on-board multimedia device to be measured, man-machine interface shows HMI video flowing used, and described HMI video stream packets contains the multiple page views corresponding with the various states difference of described man-machine interface; Store each page view and the test touch event associated with described each page view in the HMI video flowing of described collection; And storage: the incidence relation between the default results page view that described test touch event forms with the described test touch event of generation; Gather the current page view the man-machine interface of described on-board multimedia device from described HMI video flowing; Described current page view is mated with the each page view in described HMI sample database, to search associated test touch event; The test touch event finding is formed to test sample book; Carry out described test sample book so that the test touch event in test sample book is betided to described on-board multimedia device; There is the current results page view described test touch event in the man-machine interface that gathers described on-board multimedia device from described HMI video flowing; Described current results page view is matched with default results page view corresponding in HMI sample database, wherein, the default results page view of described correspondence refers to: the default results page view being associated with the test touch event in the described test sample book that betides on-board multimedia device; If match, judge and test successfully; Otherwise judgement test crash, thereby realize the test of virtual automaticization of on-board multimedia device, efficiency promotes greatly, solve the problem of the robotization to HMI test, solve the problem of test result automatic analysis and record, and there is extremely strong virtual effect and can produce fast diversified test and excitation.
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this instructions.The present invention can also be implemented or be applied by other different embodiment, and the every details in this instructions also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.
As shown in Figure 1, the invention provides a kind of test macro 1 for on-board multimedia device, described on-board multimedia device comprises touch-screen; In the present embodiment, touch-screen (touch screen) is called again " touch screen ", " contact panel ", it is a kind of display device such as induction type LCD or LED that receives the input signals such as contact, in the time having contacted the graphic button on screen, haptic feedback system on screen can drive various hookup mechanisms according to the formula of programming in advance, can be in order to replace mechanical push button panel, and producing lively visual and sound effects by liquid crystal display picture, touch-screen comprises the different trigger theory such as condenser type and resistance-type; Touch-screen is as a kind of up-to-date computer input apparatus, and it is the simplest, convenient, natural a kind of man-machine interaction mode at present, and therefore correlation technique is comparatively common, therefore separately do not repeat.
Described test macro 1 comprises: driver module 11, HMI sample database 12, HMI sample collection module 13, image sequence algorithmic match module 14 and test sample book generation module 15.
Described driver module 11, comprise video acquisition unit 111, described video acquisition unit 111 shows HMI video flowing used for man-machine interface on on-board multimedia device to be measured described in Real-time Collection, and described HMI video stream packets contains the multiple page views corresponding with the various states difference of described man-machine interface.In the present embodiment, described HMI video flowing is for showing book man-machine interface, it is the human-computer interaction interface of figure, just can carry out touch control to described man-machine interface by above-mentioned touch-screen, to trigger different functions, because the demonstration of graphical interfaces is to be put into continuous broadcasting in memory buffer by HMI video to refresh formed, so page view that has comprised the various different conditions of corresponding described man-machine interface in described HMI video flowing, for example starting-up interface, the function interface of multiple function buttons is provided, press the interface in the selection music file path jumping to after " broadcasting music " function button etc., the present invention utilizes virtual mode to test to reach test purpose to the function of those page views, hereinafter can have a detailed description.
Described HMI sample database 12, for storing each page view and the test touch event associated with described each page view of HMI video flowing of described collection; Described HMI sample database 12 also stores: the incidence relation between the default results page view that described test touch event forms with the described test touch event of generation.In the present embodiment, the associated test touch event of described and each page view, for instance, for example man-machine interface includes multiple function buttons, need described multiple function buttons to press the test of triggering, whether there is problem from the page function button that triggers redirect, described test touch event for example comprises and described each function button being tested one by one etc., or test etc. by predefined procedure, these test touch events and described page view are associated with storing, and, each function button all can jump to exclusive separately default results page view after pressing, for example press " broadcasting music " button and jump to " selecting music file path " interface, press " displaying video " button and jump to " selecting video file path " interface, therefore, if will " press " broadcasting music " button " as test touch event, the page view of will " selecting music file path " is as the default result view of " pressing " broadcasting music " button " this test touch event, or the interface of will " selecting video file path " is as the default result view of " pressing " displaying video " button " this test touch event, so set up incidence relation and stored, judge for follow-up whether test successfully uses, certainly,, if comprise function button in man-machine interface, described HMI sample standard database also needs to store the coordinate information of button position in corresponding man-machine interface, thereby coordinates from the coordinate information of different buttons the button of pressing distinguishing tests touch event.
Described HMI sample collection module 13, for gathering the current page view the man-machine interface of described on-board multimedia device from described HMI video flowing; In the present embodiment, because described HMI video flowing is Real-time Collection, therefore be no matter all can carry out the intercepting of page view before test, when test or after test, therefore starting can record in advance current page view before test touch event in described HMI sample collection module 13, for follow-up matching test touch event.
Described image sequence algorithmic match module 14, for mating described current page view, to search associated test touch event with each page view of described HMI sample database 12; In the present embodiment, from the above, if the page view that current man-machine interface shows is for example to comprise multiple function button classes as " broadcasting music " or " displaying video " etc., its associated test touch event just can be " pressing " broadcasting music " button " and " pressing " displaying video " button ", after finding, can carry out follow-up use.
Test sample book generation module 15, for forming test sample book by the test touch event finding; In the present embodiment, described test sample book is the set of multiple test touch events of corresponding described current page view, can form or sequence form carry out, from the above, for example can first carry out " pressing " broadcasting music " button ", then carry out " pressing " displaying video " button " etc.
Described driver module 11, also for carrying out described test sample book so that the test touch event of test sample book is betided to described on-board multimedia device; Preferably, as shown in Figure 2, described driver module 11 also comprises: touch simulation unit 112, for forming the touch input to described on-board multimedia device according to described simulated touch action; Serial port driving unit 113, the controller that is used for simulating described on-board multimedia device is to send control command to it, in the present embodiment, described serial ports can be RS-232-C standard etc., can complete the simulation of the control desk of on-board multimedia device by serial port driving unit 113; CAN Message Simulation unit 114, the CAN message producing for simulated automotive, completes the signal path of driver module 11 to on-board multimedia device to automobile; Wherein, CAN is the abbreviation (hereinafter referred to as CAN) of Controller Area Network, is the serial communication protocol of ISO International standardization.In automobile industry, for to security, comfortableness, convenience, low public hazards, requirement cheaply, various electronic control systems have been developed out.Due to data type that between these systems, signal post uses and the requirement of reliability is not quite similar, situation about being made up of multiple bus is a lot, and the quantity of wire harness also increases thereupon.For adapting to the needs of the quantity of wire harness " reduce ", " by multiple LAN, carrying out the high-speed communication of mass data ", within 1986, German electric business Bosch develops the CAN communication protocol towards automobile.After this, CAN has carried out standardization by ISO11898 and ISO11519, has been the standard agreement of automotive networking in Europe.The high-performance of CAN and reliability are admitted, and are widely used in the aspects such as industrial automation, boats and ships, Medical Devices, commercial unit.Fieldbus is one of focus of nowadays automatic art development, is described as the LAN (Local Area Network) of automatic field.It appear as that dcs realizes between each node in real time, data communication reliably provides strong technical support.
That is to say, by described driver module 11, found test touch event being turned to real execution occurs, betide on described on-board multimedia device, and naturally can there is to carry out interface variation due to this event in described on-board multimedia device, be as abovely for example " to press " broadcasting music " button ", jump to the interface of " selecting music file path ", if do not broken down, this redirect naturally can be successful, and due to the Real-time Collection of above-mentioned HMI video flowing, the default result interface record of " selecting music file path " can be got off, if and redirect does not become, explanation has fault.
, also there is the current results page view described test touch event for the man-machine interface that gathers described on-board multimedia device from described HMI video flowing in described HMI sample collection module 13, in the present embodiment, after having carried out test touch event, for example " press " broadcasting music " button ", if successfully jump to the interface of " selecting music file path ", the interface that the current results page view that intercepted is described " selecting music file path ", generally speaking, the current results page view that HMI sample collection module 13 can gather is, in man-machine interface, next the stable page view triggering after described test touch event occurs, only need to set certain duration, can realize, and can only not collect the transient state view of a page between mutually changing and cannot be truncated to normal page view, the acquisition mode of described HMI sample collection module 13 can be that sectional drawing is preserved into picture form.
Described image sequence algorithmic match module 14, also for described current results page view is matched with HMI sample database 12 corresponding default results page views, wherein, the default results page view of described correspondence refers to: the default results page view being associated with the test touch event in the described test sample book that betides on-board multimedia device; If match, judge and test successfully; Otherwise judgement test crash.In the present embodiment, described image sequence algorithm can be for example POC (image sequence number) algorithm, be mainly used in the playing sequence of identification image by image sequence number (POC), simultaneously also in the time that inter prediction sheet is decoded, the initial pictures sequence number of mark reference picture, can be completed distinguishing of described page view and be mated by this algorithm.
From the above, it is described that the match is successful represents current results page view that the test touch event of described " pressing " broadcasting music " button " obtains and the default results page view in HMI sample database 12 " to select music file path " be identical or match, so just, can be used as and test successfully, if it is not identical or do not mate, can be regarded as test crash, so test touch event of carrying out one by one in described test sample book capable of circulation.
It should be noted that, in order to coordinate this algorithm and in order to save storage space, described HMI sample database 12 is to preset the described each page view of picture format storage; Described HMI sample collection module 13 is also for being converted to described default picture format by described current page view and current results page view; Preferably, described default picture format is the picture format of black and white brightness, only need the picture of black and white brightness can realize above-mentioned algorithmic match, so just can in practical function, reach the object of saving storage space, certainly above-mentioned default picture format is only for exemplifying, those skilled in the art all can be changed according to this, but not are limited with the present embodiment.
Preferably, described driver module 11 can also comprise: audio collection and output unit 115, for gathering the sound signal (Audio) of described on-board multimedia device output and for to described on-board multimedia device input audio signal (being Line in signal), preferably, described test macro 1 also can comprise audio-frequency test module, tests for the sound signal that described audio collection and output unit 115 are gathered, the test of described audio frequency can be with reference to existing mode, certainly, in some cases also cocoa with reference to aforesaid way, for example using described audio frequency also as the part of test event, thereby whether testing audio matches with described default result picture, specifically, for example occur after the test touch event of " pressing " broadcasting music " button ", jump to the interface of " selecting music file path ", if now success should be furnished with as the audio frequency of " a stining " sound, if described audio-frequency test module testing exists, and simultaneously match, can represent successfully, if and absence of audio or delay, can represent test crash.
Preferably, described test macro 1 connects described on-board multimedia device to set up signal path by hardware interface adapter, wherein, described test macro 1 is connected in described test macro 1 by USB standard circuit, described hardware interface adapter passes through Cable connection in described on-board multimedia device, above-mentioned test macro 1 can be mounted on test computer, connects described hardware adapter by test computer USB.
As shown in Figure 3, described test macro 1 also can preferably include:
Virtual HMI module 16, in order to carry out the man-machine interface on on-board multimedia device described in simultaneous display according to the HMI video flowing of described collection, the man-machine interface of described simultaneous display is for receiving the simulated touch action that triggers test touch event; In the present embodiment, described simulated touch action can comprise mouse click, with the mouse clicking operation in the man-machine interface of synchronously simulating, trigger the generation of test touch event in the corresponding man-machine interface on described on-board multimedia device, for example, described synchronous man-machine interface can, at test computer end, can be clicked realization by mouse and " press " broadcasting music " button ", is equivalent to carry out the same effect of test touch event in test sample book in a upper embodiment.
Described driver module 11, also moves for the simulated touch that described Virtual HMI module 16 is received the test touch event triggering and betides described on-board multimedia device; In the present embodiment, the test touch event of described for example mouse clicking trigger being occurred in to described on-board multimedia device supports.
Described HMI sample collection module 13, also for gather from described HMI video flowing the man-machine interface of described on-board multimedia device occur described in the current results page view that moved the test touch event triggering by simulated touch; Described image sequence algorithmic match module 14, also for the current results page view that occurs to be moved after the test touch event triggering by simulated touch is matched with HMI sample database 12 corresponding default results page views, wherein, the default results page view of described correspondence refers to: the default results page view being associated with the test touch event in the described test sample book that betides on-board multimedia device; If match, judge and test successfully; Otherwise judgement test crash.In the present embodiment, this part is similar with a upper embodiment principle, and mouse is clicked and pressed " broadcasting music " button, i.e. corresponding " pressing " broadcasting music " button " the test touch event that triggers, and then betiding described on-board multimedia device, coupling afterwards and a upper embodiment principle are similar.
Preferably, described test macro 1, also comprises: test report generation module, for generating test report according to test result; In the present embodiment, described test result to described by the result of the test of test sample book, the test of moving by simulated touch and/or audio-frequency test, thereby obtain the test report of all test results.
Preferably, described test macro 1, also comprises: test report analysis module, and for generating analysis result according to described test report.In the present embodiment, described test report analysis module can represent test success ratio or mortality etc. by modes such as statistical graphs.
As shown in Figure 4, the invention provides a kind of method of testing for on-board multimedia device, described on-board multimedia device comprises touch-screen, its ins and outs and above-described embodiment are roughly the same, in not afoul situation, all can use in the present embodiment, therefore no longer repeat; Described method of testing comprises:
Step S1: described in Real-time Collection, on on-board multimedia device to be measured, man-machine interface shows HMI video flowing used, described HMI video stream packets contains the multiple page views corresponding with the various states difference of described man-machine interface; In the present embodiment, because described HMI video flowing is Real-time Collection, therefore be no matter all can carry out the intercepting of page view before test, when test or after test, therefore starting can record in advance current page view before test touch event in described HMI sample collection module, for follow-up matching test touch event.
Step S2: store each page view and the test touch event associated with described each page view in the HMI video flowing of described collection, and storage: the incidence relation between the default results page view that described test touch event forms with the described test touch event of generation, in the present embodiment, the associated test touch event of described and each page view, for instance, for example man-machine interface includes multiple function buttons, need described multiple function buttons to press the test of triggering, whether there is problem from the page function button that triggers redirect, described test touch event for example comprises and described each function button being tested one by one etc., or test etc. by predefined procedure, these test touch events and described page view are associated with storing, and, each function button all can jump to exclusive separately default results page view after pressing, for example press " broadcasting music " button and jump to " selecting music file path " interface, press " displaying video " button and jump to " selecting video file path " interface, therefore, if will " press " broadcasting music " button " as test touch event, the page view of will " selecting music file path " is as the default result view of " pressing " broadcasting music " button " this test touch event, or the interface of will " selecting video file path " is as the default result view of " pressing " displaying video " button " this test touch event, so set up incidence relation and stored, judge for follow-up whether test successfully uses, certainly,, if comprise function button in man-machine interface, also need to store the coordinate information of button position in corresponding man-machine interface, thereby coordinate from the coordinate information of different buttons the button of pressing distinguishing tests event.
Step S3: gather the current page view the man-machine interface of described on-board multimedia device from described HMI video flowing; Described current page view is mated with the each page view in described HMI sample database, to search associated test touch event; In the present embodiment, because described HMI video flowing is Real-time Collection, therefore be no matter all can carry out the intercepting of page view before test, when test or after test, therefore be to start can record in advance current page view before test touch event in the collection of described page view, for follow-up matching test touch event.
Step S4: the test touch event finding is formed to test sample book; In the present embodiment, described test sample book is the set of multiple test touch events of corresponding described current page view, can form or sequence form carry out, from the above, for example can first carry out " pressing " broadcasting music " button ", then carry out " pressing " displaying video " button " etc.
Step S5: carry out described test sample book so that the test touch event in test sample book is betided to described on-board multimedia device; In the present embodiment, drive the operation of on-board multimedia device simulated touch by above-mentioned hardware or software module, described on-board multimedia device naturally can be because interface variation occurs to carry out this event, be as abovely for example " to press " broadcasting music " button ", jump to the interface of " selecting music file path ", if do not broken down, this redirect naturally can be successful, and due to the Real-time Collection of above-mentioned HMI video flowing, the default result interface record of " selecting music file path " can be got off, if and redirect does not become, explanation has fault.
Step S6: the current results page view described test touch event occurs the man-machine interface that gathers described on-board multimedia device from described HMI video flowing, in the present embodiment, after having carried out test touch event, for example " press " broadcasting music " button ", if successfully jump to the interface of " selecting music file path ", the interface that the current results page view that intercepted is described " selecting music file path ", generally speaking, the current results page view that HMI sample collection module can gather is, in man-machine interface, next the stable page view triggering after described test touch event occurs, only need to set certain duration, can realize, and can only not collect the transient state view of a page between mutually changing and cannot be truncated to normal page view, the acquisition mode of described page view can be that sectional drawing is preserved into picture form.
Step S7: described current results page view is matched with the corresponding default results page view in described storage, wherein, the default results page view of described correspondence refers to: the default results page view being associated with the test touch event in the described test sample book that betides on-board multimedia device; In the present embodiment, described image sequence algorithm can be for example POC (image sequence number) algorithm, be mainly used in the playing sequence of identification image by image sequence number (POC), simultaneously also in the time that inter prediction sheet is decoded, the initial pictures sequence number of mark reference picture, can be completed distinguishing of described page view and be mated by this algorithm.
From the above, it is described that the match is successful represents current results page view that the test touch event of described " pressing " broadcasting music " button " obtains and the default results page view of described storage " to select music file path " be identical or match, so just, can be used as and test successfully, if it is not identical or do not mate, can be regarded as test crash, so test touch event of carrying out one by one in described test sample book capable of circulation.
It should be noted that, in order to coordinate this algorithm and in order to save storage space, described HMI sample database is to preset the described each page view of picture format storage; Described method can also comprise: described current page view and current results page view are converted to described default picture format; Preferably, described default picture format is the picture format of black and white brightness, only need the picture of black and white brightness can realize above-mentioned algorithmic match, so just can in practical function, reach the object of saving storage space, certainly above-mentioned default picture format is only for exemplifying, those skilled in the art all can be changed according to this, but not are limited with the present embodiment.
Step S8: if match, judge and test successfully;
Step S9: otherwise judge test crash.
From the above, it is described that the match is successful represents current results page view that the test touch event of described " pressing " broadcasting music " button " obtains and the default results page view of described storage " to select music file path " be identical or match, so just, can be used as and test successfully, if it is not identical or do not mate, can be regarded as test crash, so test touch event of carrying out one by one in described test sample book capable of circulation.
Preferably, as shown in Figure 5, described method of testing, also comprises:
Step S10: carry out the man-machine interface on on-board multimedia device described in simultaneous display according to the HMI video flowing of described collection, the man-machine interface of described simultaneous display is for receiving the simulated touch action that triggers test touch event; In the present embodiment, described simulated touch action can comprise mouse click, with the mouse clicking operation in the man-machine interface of synchronously simulating, trigger the generation of test touch event in the corresponding man-machine interface on described on-board multimedia device, for example, described synchronous man-machine interface can, at test computer end, can be clicked realization by mouse and " press " broadcasting music " button ", is equivalent to carry out the same effect of test touch event in test sample book in a upper embodiment.
Step S11: received simulated touch is moved to the test touch event triggering and betide described on-board multimedia device; In the present embodiment, the test touch event of described for example mouse clicking trigger being occurred in to described on-board multimedia device supports.
Step S12: the current results page view that moved the test touch event triggering by simulated touch described in the man-machine interface that gathers described on-board multimedia device from described HMI video flowing occurs;
Step S13: the current results page view that occurs to be moved after the test touch event triggering by simulated touch is matched with the corresponding default results page view in described storage, wherein, the default results page view of described correspondence refers to: with described betide on-board multimedia device move by simulated touch the default results page view that the test touch event that triggers is associated;
If match, jump procedure S9, judges and tests successfully;
Otherwise jump procedure S10, judges test crash.
In the present embodiment, this part is similar with a upper embodiment principle, and mouse is clicked and pressed " broadcasting music " button, i.e. corresponding " pressing " broadcasting music " button " the test touch event that triggers, and then betiding described on-board multimedia device, coupling afterwards and a upper embodiment principle are similar.
Preferably, described method of testing, also comprises: gather the sound signal of described on-board multimedia device output and for to described on-board multimedia device input audio signal.
Preferably, described method of testing, also comprises: gathered sound signal is tested.
Preferably, described method of testing, also comprises: generate test report according to test result; In the present embodiment, described test result to described by the result of the test of test sample book, the test of moving by simulated touch and/or audio-frequency test, thereby obtain the test report of all test results.
Preferably, described method of testing, also comprises: generate analysis result according to described test report.In the present embodiment, described test report analysis module can represent test success ratio or mortality etc. by modes such as statistical graphs
In sum, the invention provides a kind of test macro for on-board multimedia device and method, described on-board multimedia device comprises touch-screen; Described method of testing comprises: described in Real-time Collection, on on-board multimedia device to be measured, man-machine interface shows HMI video flowing used, and described HMI video stream packets contains the multiple page views corresponding with the various states difference of described man-machine interface; Store each page view and the test touch event associated with described each page view in the HMI video flowing of described collection; And storage: the incidence relation between the default results page view that described test touch event forms with the described test touch event of generation; Gather the current page view the man-machine interface of described on-board multimedia device from described HMI video flowing; Described current page view is mated with the each page view in described HMI sample database, to search associated test touch event; The test touch event finding is formed to test sample book; Carry out described test sample book so that the test touch event in test sample book is betided to described on-board multimedia device; There is the current results page view described test touch event in the man-machine interface that gathers described on-board multimedia device from described HMI video flowing; Described current results page view is matched with default results page view corresponding in HMI sample database, wherein, the default results page view of described correspondence refers to: the default results page view being associated with the test touch event in the described test sample book that betides on-board multimedia device; If match, judge and test successfully; Otherwise judgement test crash, thereby realize the test of virtual automaticization of on-board multimedia device, efficiency promotes greatly, solve the problem of the robotization to HMI test, solve the problem of test result automatic analysis and record, and there is extremely strong virtual effect and can produce fast diversified test and excitation.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.