[go: up one dir, main page]

CN109522223A - A kind of automatic test approach and system of vehicle-mounted Android multimedia host - Google Patents

A kind of automatic test approach and system of vehicle-mounted Android multimedia host Download PDF

Info

Publication number
CN109522223A
CN109522223A CN201811261178.6A CN201811261178A CN109522223A CN 109522223 A CN109522223 A CN 109522223A CN 201811261178 A CN201811261178 A CN 201811261178A CN 109522223 A CN109522223 A CN 109522223A
Authority
CN
China
Prior art keywords
vehicle
multimedia host
mounted android
test
android multimedia
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
CN201811261178.6A
Other languages
Chinese (zh)
Other versions
CN109522223B (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.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201811261178.6A priority Critical patent/CN109522223B/en
Publication of CN109522223A publication Critical patent/CN109522223A/en
Application granted granted Critical
Publication of CN109522223B publication Critical patent/CN109522223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of automatic test approach of vehicle-mounted Android multimedia host, the picture that the gesture motion and the vehicle-mounted Android multimedia host when the method includes recording tester's operation are presented;Gesture motion based on recording generates script file;The script file is executed, restores the gesture motion applied to the vehicle-mounted Android multimedia host;It can determine whether to malfunction according to whether the picture for monitoring the vehicle-mounted Android multimedia host presentation when script file executes is identical as the picture of recording, test vehicle-mounted Android multimedia host automatically to realize;The present invention also provides a kind of systems for realizing the above method;According to the technical solution of the present invention, it can be realized the pressure test to vehicle-mounted Android multimedia host, reduce requirement and workload to the program development level of tester, simplify the operation of tester, and then reduce testing time and cost.

Description

A kind of automatic test approach and system of vehicle-mounted Android multimedia host
Technical field
The present invention relates to the test method of vehicle mounted multimedia host and device fields, more particularly to a kind of vehicle-mounted The automatic test approach and system of Android multimedia host.
Background technique
At present in the R&D process of vehicle mounted multimedia host, it is indispensable for carrying out pressure test to vehicle mounted multimedia host The ring saved;For carrying the vehicle mounted multimedia host of android system, display module can have the function of HMI, therefore to it The pressure test of touch function is also necessary.
In existing Android testing field, there are many such as Uiautomator, Android Studio etc Automatic testing software, but in different Android projects, APK (Android Package, i.e. the Android peace that uses Dress packet) and APP (Application, i.e. application program) be different mostly, it is therefore desirable to tester grasp to a certain degree Program development level could use this kind of test software carry out specific aim test, undoubtedly improve testing time and cost.
Summary of the invention
In order to overcome above-mentioned defect existing in the prior art, the technical problem to be solved in the present invention is to provide a kind of vehicle-mounted The automatic test approach and system of Android multimedia host realize disposable exploitation, reduce the program development to tester Horizontal requirement simplifies the operation of tester.
In order to reach above-mentioned technical effect, the invention adopts the following technical scheme:
First aspect: the present invention provides a kind of automatic test approach of vehicle-mounted Android multimedia host, comprising:
S1: the picture that gesture motion and the vehicle-mounted Android multimedia host when recording tester's operation are presented;
S2: the gesture motion based on recording generates script file;
S3: executing the script file, restores the gesture motion applied to the vehicle-mounted Android multimedia host;
S4: the picture that the vehicle-mounted Android multimedia host is presented when the script file executes is monitored;
The picture presented when the picture presented when if monitoring to execute the script file and recording is inconsistent, is reported It is wrong;
S5: the script file end of run then terminates to test.
Further, in step sl, the gesture motion recorded when tester operates includes record tester The finger coordinate of finger and duration of pressing when clicking on the screen or is mobile;It further include the behaviour of record switch screen Make.
Further, in step S1 or S4, gesture motion when tester operates is recorded using test host;Benefit The picture that the vehicle-mounted Android multimedia host is presented is captured or monitored with photographic device.
It further, in step s3, further include repeating the preset quantity time reduction gesture motion to be applied to the vehicle Carry Android multimedia host.
Further, in step s 4, presented if monitoring to execute after the former gesture motion of the script file executes Picture and the movement of the same gesture at time point corresponding when recording execute after the picture that presents it is inconsistent, then report an error.
Further, described to report an error including the video and image file for saving current Trace file, reporting an error; Include the position to report an error and current time point in the Trace file.
Second aspect: the present invention also provides a kind of Auto-Test System of vehicle-mounted Android multimedia host, the surveys Test system is for executing test method provided by first aspect, including test host and photographic device;The photographic device is logical Data line is crossed to connect with the test host.
Further, the test host is computer or other intelligent terminals with operating system;The camera shooting dress It is set to high-definition camera.
The automatic test approach and system of a kind of vehicle-mounted Android multimedia host provided by the present invention are led in test Machine and vehicle-mounted Android multimedia host to be measured are established after connection, record gesture motion when tester's operation and The picture that the vehicle-mounted Android multimedia host is presented, and script file is automatically generated, the script file that reruns is to vehicle-mounted Android multimedia host carries out pressure test.
Method and system provided by the invention is suitable for all Android projects, and test process step is simple, without into Line program exploitation operation;Realize disposable exploitation, it is permanent to use, reduce requirement and work to the program development level of tester It measures, simplifies the operation of tester;Thereby reduce testing time and cost.
Detailed description of the invention
Connection schematic diagram when Fig. 1 is the test system and test of embodiment;
Fig. 2 is the test flow chart of embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, right with reference to the accompanying drawings and embodiments The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, the test macro includes 2 two parts of computer 1 and high-definition camera;Method provided in this embodiment It is tested with system for the host for carrying android system, therefore host to be measured 3 carries the display mould for having HMI function Block.
As shown in Figure 1, 2, it when starting test, executes step S11: computer 1 and host to be measured 3 is established by data line Connection;Tester selects to execute step S12 after starting test on computer 1: tester is on the screen of host 3 to be measured Carry out needing operation to be tested, computer 1 records the action gesture and sequence of tester at this time, camera 2 record to Survey the picture that the screen of host 3 is shown.In the present embodiment, the action gesture of tester include click, long-pressing, sliding and Screen is switched, further includes the time interval between each movement.
After the completion of gesture motion and display picture record, execute step S13: gesture motion of the computer 1 based on recording is raw At script file.Then execute step S14: tester sets testing time, then perform script file.Script file reduction The gesture motion of recording operates host 3 to be measured.Then execute step S15: computer 1 is monitored to be measured using camera 2 Picture on the screen of host 1;If monitoring the picture presented after any gesture motion executes and time point corresponding when recording The picture that same gesture movement is presented after executing is inconsistent, then reports an error.Specifically, reporting an error to save currently Trace file, the video to report an error and image file;Wherein include the position to report an error and the time point to report an error in Trace file.
Reporting an error terminates or terminates to test if not reporting an error.
In this way, method and system provided in this embodiment is suitable for all Android projects, realize to vehicle-mounted The pressure test of Android multimedia host, and test process step is simple, no longer needs to carry out program development operation;Realize one Secondary property exploitation, reduces the requirement and workload to the program development level of tester, simplifies the operation of tester;And then it drops Low testing time and cost.
The above is a preferred embodiment of the present invention, it is noted that other include this vehicle-mounted Android multimedia master The automatic test approach and system of machine are not departing from the principle of the present invention for those skilled in the art Under the premise of, several improvements and modifications can also be made, these modifications and embellishments are also considered to be within the scope of the present invention.

Claims (8)

1. a kind of automatic test approach of vehicle-mounted Android multimedia host characterized by comprising
S1: the picture that gesture motion and the vehicle-mounted Android multimedia host when recording tester's operation are presented;
S2: the gesture motion based on recording generates script file;
S3: executing the script file, restores the gesture motion applied to the vehicle-mounted Android multimedia host;
S4: the picture that the vehicle-mounted Android multimedia host is presented when the script file executes is monitored;
The picture presented when the picture presented when if monitoring to execute the script file and recording is inconsistent, reports an error;
S5: the script file execution terminates, then terminates to test.
2. a kind of automatic test approach of vehicle-mounted Android multimedia host according to claim 1, which is characterized in that In step sl, the gesture motion recorded when tester operates includes that the finger of record tester is clicked on the screen Or the coordinate of finger and the duration of pressing when mobile;It further include the operation of record switch screen.
3. a kind of automatic test approach of vehicle-mounted Android multimedia host according to claim 2, which is characterized in that In step S1 or S4, gesture motion when tester operates is recorded using test host;It is captured or is supervised using photographic device Survey the picture that the vehicle-mounted Android multimedia host is presented.
4. a kind of automatic test approach of vehicle-mounted Android multimedia host according to claim 1, which is characterized in that It in step s3, further include repeating the preset quantity time reduction gesture motion to be applied to the vehicle-mounted Android multimedia master Machine.
5. a kind of automatic test approach of vehicle-mounted Android multimedia host according to claim 1, which is characterized in that In step s 4, if monitoring corresponding when executing the picture presented after the former gesture motion of the script file executes with recording The picture that the same gesture movement at time point is presented after executing is inconsistent, then reports an error.
6. a kind of automatic test approach of vehicle-mounted Android multimedia host according to claim 5, which is characterized in that It is described to report an error including the video and image file for saving current Trace file, reporting an error;Include in the Trace file The position to report an error and current time point.
7. a kind of Auto-Test System of vehicle-mounted Android multimedia host, which is characterized in that the test macro for realizing Test method provided by any one of claim 1-6, including test host and photographic device;The photographic device passes through number It is connect according to line with the test host.
8. a kind of Auto-Test System of vehicle-mounted Android multimedia host according to claim 7, which is characterized in that The test host is computer or other intelligent terminals with operating system;The photographic device is high-definition camera.
CN201811261178.6A 2018-10-26 2018-10-26 Automatic test method and system for vehicle-mounted Android multimedia host Active CN109522223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811261178.6A CN109522223B (en) 2018-10-26 2018-10-26 Automatic test method and system for vehicle-mounted Android multimedia host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811261178.6A CN109522223B (en) 2018-10-26 2018-10-26 Automatic test method and system for vehicle-mounted Android multimedia host

Publications (2)

Publication Number Publication Date
CN109522223A true CN109522223A (en) 2019-03-26
CN109522223B CN109522223B (en) 2022-06-03

Family

ID=65774116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811261178.6A Active CN109522223B (en) 2018-10-26 2018-10-26 Automatic test method and system for vehicle-mounted Android multimedia host

Country Status (1)

Country Link
CN (1) CN109522223B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502437A (en) * 2019-07-31 2019-11-26 惠州市德赛西威汽车电子股份有限公司 A testing system and method for a vehicle bluetooth application program
CN114625663A (en) * 2022-03-24 2022-06-14 北京字节跳动网络技术有限公司 A test method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160004759A1 (en) * 2014-07-03 2016-01-07 Adarsh Ramakrishnan Platform for Managing and Visualizing Data on a Computer
CN106648397A (en) * 2015-11-02 2017-05-10 网易(杭州)网络有限公司 Game operation recording and processing method and system for mobile terminal
CN106843150A (en) * 2017-02-28 2017-06-13 清华大学 A kind of industry spot simulation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160004759A1 (en) * 2014-07-03 2016-01-07 Adarsh Ramakrishnan Platform for Managing and Visualizing Data on a Computer
CN106648397A (en) * 2015-11-02 2017-05-10 网易(杭州)网络有限公司 Game operation recording and processing method and system for mobile terminal
CN106843150A (en) * 2017-02-28 2017-06-13 清华大学 A kind of industry spot simulation method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502437A (en) * 2019-07-31 2019-11-26 惠州市德赛西威汽车电子股份有限公司 A testing system and method for a vehicle bluetooth application program
CN110502437B (en) * 2019-07-31 2023-07-28 惠州市德赛西威汽车电子股份有限公司 Test system and method for vehicle-mounted Bluetooth application program
CN114625663A (en) * 2022-03-24 2022-06-14 北京字节跳动网络技术有限公司 A test method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109522223B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
US10853232B2 (en) Adaptive system for mobile device testing
US10565451B2 (en) Augmented video analytics for testing internet of things (IoT) devices
CN101493790B (en) Record playback system and record back method
CN102880535B (en) A kind of wireless automatic proving installation for mobile device and method
US8793578B2 (en) Automating execution of arbitrary graphical interface applications
CN109408338B (en) Method, device, equipment and system for grabbing trace of NVME (network video management entity) hard disk
US8823383B2 (en) System and method for electrostatic discharge testing of devices under test
CN110032482A (en) Sheet sand covered device and method
TWI566090B (en) Debugging firmware / software to produce tracking systems and methods, recording media and computer program products
KR20140095882A (en) Test system for evaluating mobile device and driving method thereof
CN104123221A (en) Response time test method and device
CN103365779A (en) Software test method and system
CN104063305A (en) Pressure testing method, device and system for intelligent terminal software
CN103293399A (en) Electrical Equipment Fault Analysis Method and System
CN102279787B (en) Method and device for testing average fault-free time
CN105120483B (en) Automatic testing method and system for compatibility of smart card and mobile terminal
CN105893223A (en) Abnormity display method and abnormity display device
CN110515821A (en) Based on the event-handling method, electronic equipment and computer storage medium buried a little
CN104794032A (en) Method for automatically testing hardware module of intelligent displayer
CN104899140A (en) Test method for mobile terminal assembly
CN104915297A (en) APP electricity consumption automatic test method for android device
CN109522223A (en) A kind of automatic test approach and system of vehicle-mounted Android multimedia host
CN105630664B (en) Reverse debugging method and device and debugger
CN104239174A (en) BMC (baseboard management controller) remote debugging system and method
CN110311806B (en) Mobile application program interface response delay diagnosis method, system and terminal

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