CN104794032A - Method for automatically testing hardware module of intelligent displayer - Google Patents
Method for automatically testing hardware module of intelligent displayer Download PDFInfo
- Publication number
- CN104794032A CN104794032A CN201510195790.8A CN201510195790A CN104794032A CN 104794032 A CN104794032 A CN 104794032A CN 201510195790 A CN201510195790 A CN 201510195790A CN 104794032 A CN104794032 A CN 104794032A
- Authority
- CN
- China
- Prior art keywords
- test
- file
- testing
- hardware module
- intelligent display
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a method for automatically testing a hardware module of an intelligent displayer. The method comprises the steps of 1, encoding test items in a Linux environment; 2, forming a series of test items which can be called in a user-defined sequence after encoding, and generating corresponding test events; 3, compiling codes in a Linux compiling environment to form an executable file; 4, placing the executable file in an SD card during testing, and placing other relevant files; 5, detecting whether a logo file entering the test mode exists during starting; 6, analyzing a .rc file of the test mode, and initializing operation of test codes; 7, analyzing a .init file in the SD card to determine test sequence and obtain hardware module information; 8, conducting fully-automatic testing on all the test items based on machine vision, and acquiring test results for quality report statistics. According to the method, operation is easy, automatic testing of all the test items is achieved, and manual tracking and tracking are not needed during item testing.
Description
Technical field
The present invention relates to a kind of method realizing intelligent display hardware module automatic test.
Background technology
Traditional intelligent display method of testing can't reach robotization completely, wherein APP method of testing needs installation testing APK in systems in which, also need after having tested to carry out system Reset, expend over head time, automatic test can not be realized to touch-screen etc. simultaneously; There is the part needing artificial tracking and manual operation too in all the other automatic tests.These weak points make traditional method of testing can not reach robotization completely, and cost is higher.
Summary of the invention
The object of the invention is to the deficiency overcoming existing method of testing, provide a kind of method realizing intelligent display hardware module automatic test, the method is easy to realize, and each test event is carried out robotization, do not need manual operation during test, efficiency is high, saves human resources.
For achieving the above object, technical scheme of the present invention is: a kind of method realizing intelligent display hardware module automatic test, comprises the steps,
Step S1: under Linux environment, carries out code for each project to be tested and writes;
Step S2: a series of test event that can customize sequence call of rear formation write by code, and produces corresponding test event, this test event comprises the test of testing touch screen, audio-frequency test, ethernet test and bluetooth;
Step S3: compiled by Linux translation and compiling environment by the code write, forms single executable file, for carrying out automatic test to the hardware testing initialization of intelligent display and each test event;
Step S4: during project testing, the executable file that step S3 produces is put in SD card, in SD card, put into associated documents, these associated documents comprise logo file, the .int file of test pattern simultaneously;
Step S5: detect whether there is the logo file entering test pattern during system boot, if exist, then performs step S6, enters test pattern; If do not exist, then do not enter test pattern;
Step S6: the .rc file of resolving test pattern, carries out initialization to the operation of the executable file that step S3 generates;
In step S7: parsing SD card .int file is to determine the testing sequence of test event, and obtains hardware module information;
Step S8: coordinate machine vision in test process, realizes testing the full automation of all test events, and collecting test result.
In embodiments of the present invention, described test event comprises the test of touch-screen, USB interface, audio playing module, recording module, ethernet module, bluetooth module, Wifi module, SD card, EMMC module and camera to intelligent display.
In embodiments of the present invention, described executable file is linux kernel executable file, and comprises all test events.
In embodiments of the present invention, described associated documents also comprise audio file and picture file.
In embodiments of the present invention, described .rc file is the initialization files of Android, and the .rc file of test pattern carries out copy modification rename by the init.rc file of Android to obtain.
In embodiments of the present invention, described .int file comprises the information of test event testing sequence and hardware module to be measured, can realize the increase of test event, deleting and the setting of information to hardware module to be measured by revising this .int file.
Compared to prior art, the present invention has following beneficial effect: the inventive method is by compiling code at Android kernel, generate the executable file of integrated test event, and carry out full-automation test in conjunction with machine vision to needing the part of manual operation, reach without the need to manually-operated off line formula detection mode in test process, and after test completes, integration statistics is carried out to test result.The method implements whole-course automation, saves a large amount of human and material resources.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the inventive method.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is specifically described.
As shown in Figure 1, a kind of method realizing intelligent display hardware module automatic test of the present invention, comprises the steps,
Step 1, in Linux environment, volume code is carried out to test event (this test event comprises the test of touch-screen to intelligent display, USB interface, audio frequency broadcasting, recording, Ethernet, bluetooth, Wifi, SD card, EMMC, the first-class hardware module of shooting);
Form a series of test event that can customize sequence call after step 2, volume code, and produce corresponding test event, such as testing touch screen, audio-frequency test, ethernet test, bluetooth test etc.;
Step 3, the code write to be compiled by Linux translation and compiling environment, form single executable file, comprise all test events, for carrying out the hardware testing initialization etc. of automatic test or intelligent display to each test event, this executable file is linux kernel executable file;
Be put in SD card by executable file when step 4, test, and putting into other associated documents, these other associated documents comprise test pattern logo file, and .init file (comprises the information of testing sequence, hardware module to be measured in this .init file.Increase by amendment .init file or delete test event, and the setting of the hardware information of intelligent display), audio file and the picture etc. used by other;
Detect whether there is the logo file entering test pattern when step 5, start;
The .rc file of step 6, parsing test pattern, carries out initialization to the operation of the executable file that step 3 generates;
.init file determination testing sequence in step 7, parsing SD card, and obtain hardware module information;
Coordinate machine vision when step 8, test, full automation test is carried out to all test events, and collecting test result carries out quality report statistics.
Use in testing touch screen, Camera Test and in recording test and the collection to test result information is included in conjunction with machine vision described in appeal step 8.Wherein: in testing touch screen, CCD camera collection is carried in the picture on screen and presets touch track information, calculates the touch track of Simulated hand, and to Simulated hand location, makes it move along desired guiding trajectory; In Camera Test, automatization judgement is carried out to the photo after taking pictures and whether takes pictures successfully; In recording test, the hum that the sound sent itself to get rid of intelligent display exists after recording, thus affect test result, by using camera, information during test is identified, when entering recording test, external audio is adopted to play as source of sound.In real time screen message being gathered when testing simultaneously, when there is unpredictability mistake, staff can be notified in time.
Specific embodiment 1:
Touch-screen detects and comprises two parts: the touch-screen initialization run at intelligent display and touch data collecting part and the Simulated hand control section that runs on PC.
First under Linux environment, the code of the touch-screen initialization run at intelligent display and touch data collecting part is compiled, the function of this partial code comprises restriction touch scope, makes touch scope consistent with the touch scope that the picture loaded when testing in SD card limits; Read touch-screen when there being touch event to occur and drive the coordinate figure returned, the touch scope of this coordinate figure and restriction compared and judge the continuity of coordinate figure, namely what if exceed, limited range or two coordinate figure distances returned continuously exceeded certain limit is judged as failure.After writing, this code is positioned in the source code bag of the android system that intelligent display runs, Android.mk file in amendment source code bag, that source code comprises this test code, utility command carries out compiling (compiler directive is different according to situation difference), generates linux kernel executable file corresponding with this system.
The function that the Simulated hand control section code packages of the upper operation of PC contains is as follows: by being carried in the touching test picture on screen during camera collection testing touch screen, this picture defines the scope of touch; According to the image data of camera collection, calculate the scope of touch; Position the position of Simulated hand, control imitation hand carries out continuous print touch to touch-screen within the scope of touch.
During test, linux kernel executable file and other associated documents are put in SD card, when entering system, first Android can run init, adds the function opening test pattern logo file in SD card in init, if open failure, do not enter test pattern, otherwise open successfully then; When entering test pattern, resolve the .rc file that test pattern is corresponding, realize the initialization behavior that android system is tested; Open the .init file in SD card, and resolve, the form in .init is Test items=Enable=1/Disable=0, and such as allow testing touch screen to be Input_En=1, resolution is set to Resolution_W=1920
Resolution_H=1080; Automatic test is carried out according to the function of test code after initialization completes.Test terminates to gather test result information afterwards.
Specific embodiment 2:
The test of Ethernet depends on DHCP(DynamicHost and arranges agreement), the major function of code is also realize DHCP, obtains IP distribution, be judged as successfully if had.
First under Linux environment, ethernet test code is write, the major function of code realizes DHCP, after writing, this code is positioned in the source code bag of the android system that intelligent display runs, Android.mk file in amendment source code bag, that source code comprises this test code, utility command carries out compiling (compiler directive is different according to situation difference), generates linux kernel executable file corresponding with this system.
During test, linux kernel executable file and other associated documents are put in SD card, when entering system, first Android can run init, adds the function opening test pattern logo file in SD card in init, if open failure, do not enter test pattern, otherwise open successfully then; When entering test pattern, resolve the .rc file that test pattern is corresponding, realize the initialization behavior that android system is tested; Open the .init file in SD card, and resolve, .init the form in is Test items=Enable=1/Disable=0, and such as carrying out ethernet test is Ethernet_En=1, carries out automatic test after initialization completes according to the function of test code.Test terminates to gather test result information afterwards.
Be more than preferred embodiment of the present invention, all changes done according to technical solution of the present invention, when the function produced does not exceed the scope of technical solution of the present invention, all belong to protection scope of the present invention.
Claims (6)
1. realize a method for intelligent display hardware module automatic test, it is characterized in that: comprise the steps,
Step S1: under Linux environment, carries out code for each project to be tested and writes;
Step S2: a series of test event that can customize sequence call of rear formation write by code, and produces corresponding test event, this test event comprises the test of testing touch screen, audio-frequency test, ethernet test and bluetooth;
Step S3: compiled by Linux translation and compiling environment by the code write, forms single executable file, for carrying out automatic test to the hardware testing initialization of intelligent display and each test event;
Step S4: during project testing, the executable file that step S3 produces is put in SD card, in SD card, put into associated documents, these associated documents comprise logo file, the .int file of test pattern simultaneously;
Step S5: detect whether there is the logo file entering test pattern during system boot, if exist, then performs step S6, enters test pattern; If do not exist, then do not enter test pattern;
Step S6: the .rc file of resolving test pattern, carries out initialization to the operation of the executable file that step S3 generates;
In step S7: parsing SD card .int file is to determine the testing sequence of test event, and obtains hardware module information;
Step S8: coordinate machine vision in test process, realizes testing the full automation of all test events, and collecting test result.
2. a kind of method realizing intelligent display hardware module automatic test according to claim 1, is characterized in that: described test event comprises the test of touch-screen, USB interface, audio playing module, recording module, ethernet module, bluetooth module, Wifi module, SD card, EMMC module and camera to intelligent display.
3. a kind of method realizing intelligent display hardware module automatic test according to claim 1, is characterized in that: described executable file is linux kernel executable file, and comprises all test events.
4. a kind of method realizing intelligent display hardware module automatic test according to claim 1, is characterized in that: described associated documents also comprise audio file and picture file.
5. a kind of method realizing intelligent display hardware module automatic test according to claim 1, is characterized in that:
Described .rc file is the initialization files of Android, and the .rc file of test pattern carries out copy modification rename by the init.rc file of Android to obtain.
6. a kind of method realizing intelligent display hardware module automatic test according to claim 1, it is characterized in that: described .int file comprises the information of test event testing sequence and hardware module to be measured, the increase of test event can be realized by revising this .int file, delete and the setting of information to hardware module to be measured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510195790.8A CN104794032B (en) | 2015-04-23 | 2015-04-23 | A method of realizing intelligent display hardware module automatic test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510195790.8A CN104794032B (en) | 2015-04-23 | 2015-04-23 | A method of realizing intelligent display hardware module automatic test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104794032A true CN104794032A (en) | 2015-07-22 |
CN104794032B CN104794032B (en) | 2018-09-18 |
Family
ID=53558842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510195790.8A Active CN104794032B (en) | 2015-04-23 | 2015-04-23 | A method of realizing intelligent display hardware module automatic test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104794032B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105868102A (en) * | 2016-03-22 | 2016-08-17 | 中国科学院软件研究所 | Computer vision based mobile terminal application testing system and method |
CN105898290A (en) * | 2015-08-07 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Method and device for controlling intelligent device to enter factory test mode |
CN106649006A (en) * | 2016-09-30 | 2017-05-10 | 广州视源电子科技股份有限公司 | Method and system for automatic test of board start |
CN106681761A (en) * | 2016-12-13 | 2017-05-17 | 深圳市恒扬数据股份有限公司 | Interactive upgrade method and system |
CN107203444A (en) * | 2016-03-16 | 2017-09-26 | 中国航天科工集团第四研究院指挥自动化技术研发与应用中心 | A kind of control of intelligent terminal method of testing and device based on Uboot |
CN109362017A (en) * | 2018-10-18 | 2019-02-19 | 科大讯飞股份有限公司 | The test method and test macro of intelligent terminal |
CN110275807A (en) * | 2019-06-21 | 2019-09-24 | 上海创功通讯技术有限公司 | Detection method, system, equipment and the storage medium of smart machine |
CN110618908A (en) * | 2019-09-09 | 2019-12-27 | 中山市天启智能科技有限公司 | Method for quickly verifying screen and machine display interface |
CN117194134A (en) * | 2023-11-08 | 2023-12-08 | 武汉凌久微电子有限公司 | Display output automatic test method and system based on domestic operating system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102141960A (en) * | 2011-03-18 | 2011-08-03 | 广东欧珀移动通信有限公司 | Automatic test method based on Android |
CN102724343A (en) * | 2012-05-31 | 2012-10-10 | 青岛海信移动通信技术股份有限公司 | Mobile phone hardware module test method and test device |
CN102904996A (en) * | 2012-10-16 | 2013-01-30 | 深圳创维数字技术股份有限公司 | Method, device and system for testing performance of mobile phone touch screen |
US20150100830A1 (en) * | 2013-10-04 | 2015-04-09 | Unisys Corporation | Method and system for selecting and executing test scripts |
-
2015
- 2015-04-23 CN CN201510195790.8A patent/CN104794032B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102141960A (en) * | 2011-03-18 | 2011-08-03 | 广东欧珀移动通信有限公司 | Automatic test method based on Android |
CN102724343A (en) * | 2012-05-31 | 2012-10-10 | 青岛海信移动通信技术股份有限公司 | Mobile phone hardware module test method and test device |
CN102904996A (en) * | 2012-10-16 | 2013-01-30 | 深圳创维数字技术股份有限公司 | Method, device and system for testing performance of mobile phone touch screen |
US20150100830A1 (en) * | 2013-10-04 | 2015-04-09 | Unisys Corporation | Method and system for selecting and executing test scripts |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105898290A (en) * | 2015-08-07 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Method and device for controlling intelligent device to enter factory test mode |
CN107203444A (en) * | 2016-03-16 | 2017-09-26 | 中国航天科工集团第四研究院指挥自动化技术研发与应用中心 | A kind of control of intelligent terminal method of testing and device based on Uboot |
CN105868102B (en) * | 2016-03-22 | 2018-06-26 | 中国科学院软件研究所 | A kind of mobile terminal application test systems and method based on computer vision |
CN105868102A (en) * | 2016-03-22 | 2016-08-17 | 中国科学院软件研究所 | Computer vision based mobile terminal application testing system and method |
CN106649006A (en) * | 2016-09-30 | 2017-05-10 | 广州视源电子科技股份有限公司 | Method and system for automatic test of board start |
CN106681761B (en) * | 2016-12-13 | 2020-12-01 | 深圳市恒扬数据股份有限公司 | Interactive upgrading method and system |
CN106681761A (en) * | 2016-12-13 | 2017-05-17 | 深圳市恒扬数据股份有限公司 | Interactive upgrade method and system |
CN109362017A (en) * | 2018-10-18 | 2019-02-19 | 科大讯飞股份有限公司 | The test method and test macro of intelligent terminal |
CN109362017B (en) * | 2018-10-18 | 2021-08-17 | 科大讯飞股份有限公司 | Test method and test system of intelligent terminal |
CN110275807A (en) * | 2019-06-21 | 2019-09-24 | 上海创功通讯技术有限公司 | Detection method, system, equipment and the storage medium of smart machine |
CN110618908A (en) * | 2019-09-09 | 2019-12-27 | 中山市天启智能科技有限公司 | Method for quickly verifying screen and machine display interface |
CN110618908B (en) * | 2019-09-09 | 2023-03-03 | 中山市天启智能科技有限公司 | Method for quickly verifying screen and machine display interface |
CN117194134A (en) * | 2023-11-08 | 2023-12-08 | 武汉凌久微电子有限公司 | Display output automatic test method and system based on domestic operating system |
CN117194134B (en) * | 2023-11-08 | 2024-01-30 | 武汉凌久微电子有限公司 | Display output automatic test method and system based on domestic operating system |
Also Published As
Publication number | Publication date |
---|---|
CN104794032B (en) | 2018-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104794032A (en) | Method for automatically testing hardware module of intelligent displayer | |
US20110169778A1 (en) | Interactive projection system | |
CN102904996B (en) | The method and device of a kind of handset touch panel performance test, system | |
CN103577322B (en) | A kind of hit testing method and apparatus | |
CN109960642B (en) | Automatic test method and device | |
CN108536491B (en) | Processing method and system for reversely controlling android mobile terminal by vehicle-mounted equipment | |
CN104541232B (en) | Multi-modal touch-screen emulator | |
CN109034397A (en) | Model training method, device, computer equipment and storage medium | |
Kato et al. | DejaVu: integrated support for developing interactive camera-based programs | |
Miles | Start here! learn the kinect api | |
CN103365779A (en) | Software test method and system | |
CN103985137A (en) | Moving object tracking method and system applied to human-computer interaction | |
CN103795931A (en) | Information processing method and electronic equipment | |
CN106021101B (en) | The method and device that mobile terminal is tested | |
CN103377119A (en) | Automatic nonstandard control testing method and device | |
CN102999419B (en) | A kind of Android test incident record back method and device | |
CN104142739B (en) | Laser point tracking system and method based on optical mouse sensing array | |
CN103455403A (en) | Testing method and device | |
CN102929688B (en) | The simulator of a kind of simulated touch screen realizes method and this simulator | |
US10372576B2 (en) | Simulation reproduction apparatus, simulation reproduction method, and computer readable medium | |
CN104156308B (en) | Mobile application testing method on basis of playback of execution trace of users | |
CN105094952B (en) | A kind of method and apparatus of analog subscriber operation | |
CN105550114A (en) | Automated testing method and apparatus and mobile terminal | |
CN110046277A (en) | More video merging mask methods and device | |
CN105653441A (en) | Method and system for UI traversal testing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |