CN103312850B - A kind of mobile phone automatized test macro and method of work - Google Patents

A kind of mobile phone automatized test macro and method of work Download PDF

Info

Publication number
CN103312850B
CN103312850B CN201310173587.1A CN201310173587A CN103312850B CN 103312850 B CN103312850 B CN 103312850B CN 201310173587 A CN201310173587 A CN 201310173587A CN 103312850 B CN103312850 B CN 103312850B
Authority
CN
China
Prior art keywords
test
mobile phone
module
instruction
phone terminal
Prior art date
Application number
CN201310173587.1A
Other languages
Chinese (zh)
Other versions
CN103312850A (en
Inventor
潘燕华
苏翔
尹隽
卢超
王宇轩
Original Assignee
江苏科技大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 江苏科技大学 filed Critical 江苏科技大学
Priority to CN201310173587.1A priority Critical patent/CN103312850B/en
Publication of CN103312850A publication Critical patent/CN103312850A/en
Application granted granted Critical
Publication of CN103312850B publication Critical patent/CN103312850B/en

Links

Abstract

The invention provides a kind of mobile phone automatized test macro and method of work, this system comprises some tested mobile phone terminals, a PC and test resource database, tested mobile phone terminal comprises a test agent module, and test agent module communicates mutually in a wired or wireless manner with the control module of PC; PC comprises human-computer interaction module, control module and driver module, human-computer interaction module communicates mutually in a wired or wireless manner with test resource database, and be connected with control module, control module is connected with human-computer interaction module, driver module, and communicates mutually in a wired or wireless manner with the test agent module of tested mobile phone terminal.The present invention in unattended situation, can carry out automatic test to the application program of multiple tested mobile phone, effectively improves testing efficiency and test accuracy rate.

Description

A kind of mobile phone automatized test macro and method of work

Technical field

The invention belongs to the mobile phone test technical field in electronic information technology, be specifically related to a kind of mobile phone automatized test macro and method of work.

Background technology

Along with the development of mobile phone terminal technology, mobile phone products is more and more abundanter, cell-phone function develops to intelligent direction, the requirement of people to the reliability of cell-phone function, stability and fail safe is also more and more higher, so carry out to mobile phone termination function the stability testing to guarantee mobile phone comprehensively and fully, seem particularly important.

Divide three kinds of modes to the functional test of mobile phone terminal at present, be respectively manual test, partial automation test and automatic test.

The first adopts manual test, namely by tester's document according to demand, first writes out test case with natural language, more manual input test use-case data, and then detect by an unaided eye user interface, listens attentively to system prompt sound with ear.Whole test process is slow, needs at substantial manpower, and comprehensive not, and in addition for resource contention test aspect, accuracy can not ensure, even also may lead to errors because of artificial factor.

The second adopts partial automation mode, and as the automation of use-case generative process, i.e. automation generating test use case according to demand, tester performs an action, by use-case Comparative result validation test result according to test case is manual.

Chinese Patent Application No. is 200810007606.2, and publication number is CN101237662, now its content is merged therewith.The invention provides a kind of method and the device that generate automatic test cases of mobile phone, to improve the establishment efficiency of automatic test cases of mobile phone.The method is more flexible compared with the method by recording generating test use case, but is only limitted to the automation to the Test cases technology stage, does not relate to the automation of test process.

The third is automatic test mode, and namely test process does not need artificial participation, improves testing efficiency and accuracy.

Chinese Patent Application No. is 200610147399.1, and publication number is CN1976485A, discloses a kind of mobile phone test system, now its content is merged therewith.This system adopts analogue mobile phone keyboard, complete the action that certain button of mobile phone is pressed or upspring, control switch is manipulated by computer program, a series of button operation can be performed by computer program, computer generation is made to replace manual operations, but this test is only tested for the function relying on cell phone keyboard, and can only test for a mobile phone.

Chinese Patent Application No. is 200810113766.5, and publication number is CN101287266, discloses a kind of mobile phone test system and method, now its content is merged therewith.This system to receive between at least two tested mobile phones by test terminal the instruction that communication carries out testing, and resolves test instruction and obtain test script, controls mobile phone according to test script, and the execution result sequentially validation test returned with tested mobile phone.Although this test macro and method can carry out functional test to multiple mobile phone, but perform owing to test script to be sent to mobile phone, therefore can fight for mobile phone resources and affect test result, and can not the operation behavior of analog subscriber completely by calling that test script performs.

In sum, on above-mentioned test platform, or only can realize part automatic test, or only can test a cell-phone function, or only drive test by script.In addition, along with current cell phone intelligent platform development, function is day by day complicated, and user behavior pattern is complicated all the more, conflicts and also get more and more between modules function.Due to technical reason, above-mentioned test mode all can not be tested based on user operation behavior, calls the objectivity that also cannot ensure automatic test to mobile phone resources.

Summary of the invention

The object of the invention is for the problems referred to above, introduce automatization testing technique, a kind of mobile phone automatized test macro and method of work are provided.

In order to achieve the above object, the technical solution used in the present invention is:

A kind of mobile phone automatized test macro, be made up of some tested mobile phone terminals, PC, a test resource database, tested mobile phone terminal is communicated with PC by the wired or wireless module carried, and PC is communicated with test resource database by wired mode; PC extracts test assignment from resource database, test instruction is sent to tested mobile phone terminal by wired or wireless communication module, tested mobile phone terminal sends the data to PC after utilizing virtual interacting technology automatically to complete test, PC obtains test result by after the test comparison standard comparing in the data received and test resource database, and test process and test result is kept in test resource database.

Described tested mobile phone terminal comprises a test agent module, this module utilizes the wired or wireless communication module of mobile phone to communicate with PC, receive the test instruction from PC, after utilizing virtual interacting technology to carry out automatic test according to instruction to corresponding software in tested mobile phone terminal, return test data to PC;

Described PC comprises a personal-machine interactive module, control module and driver module; Wherein,

Described human-computer interaction module realizes the operation of user to test process, adds tested mobile phone terminal, installs tested mobile phone terminal and drives; Human-computer interaction module connecting test resource database and control module;

Described control module extracts test assignment by human-computer interaction module from test resource database, the wireless of PC or wire communication module is utilized to communicate with the proxy module of tested mobile phone terminal, send test instruction to proxy module, and receive the test data from proxy module; Be connected with test resource database by the wire communication module of PC, the test data received is compared with the test comparison standard of corresponding atomic operation in test resource database, judge the validity of data, utilize human-computer interaction module to be kept in test resource database test process and judged result.

Described driver module is connected with control module, realizes the installation of device drives in test process.

Described test resource database is connected with the human-computer interaction module of PC, On-board test task, test comparison standard, test process and test result.

Described virtual interacting technology refers to learn based on ergonomics and emulation in test process, and use software building one " visual human ", realize the mechanism of artificial hand and simulated eye, human simulation is to the operating process of equipment;

Described atomic operation refers to a series of predefined minimum instruction collection, comprises the large class of action command, recognition instruction, initialization directive, control command and output order five.

The realization of described artificial hand comprises the following steps:

(i) obtain the screen size information of tested mobile phone terminal;

(ii) call atomic operation according to test instruction, extract the control features to be measured in corresponding atomic operation, morphogenesis characters instruction and coordinate parameters;

(iii) judge whether coordinate parameters meets the screen geometry feature of tested mobile phone terminal, if coordinate parameters exceeds tested mobile phone terminal screen ranges, return error flag;

If (iv) coordinate parameters does not exceed tested mobile phone terminal screen ranges, then according to the difference of feature instruction, in click, drag, long by with touch Selection and call in four class actions, and return Success Flag.

The realization of described simulated eye comprises the following steps:

A () searches theactivewindow on tested mobile phone terminal;

B () calls atomic operation according to test instruction, extract the control features to be measured in corresponding atomic operation, morphogenesis characters instruction;

All controls to be measured meeting feature instruction in (c) traversal theactivewindow;

D () obtains the coordinate of control to be measured in theactivewindow;

E () uses virtual hand that control to be measured is moved to visual zone;

If f () control to be measured is text type, then utilize characters matching technology identification control to be measured; If control to be measured is image type, then utilize the OCR ActiveX Techniques identification control to be measured of GOOGLE.

The method of work of a kind of mobile phone automatized test macro of the present invention, comprises the following steps:

(1) user utilizes PC to extract test assignment from test resource database;

(2) utilize PC to add tested mobile phone terminal, tested mobile phone terminal is installed and drives;

(3) test instruction is sent by wireless or cable to tested mobile phone terminal from PC;

(4), after tested mobile phone terminal receives the test instruction from PC, the validity of decision instruction, effectively then adopts virtual interacting technology according to instruction, carries out automatic test, return test data to PC after having tested to corresponding software in mobile phone; Instruction ignore then returns invalid information to PC, jumps to step (6);

(5), after PC receives the test data from proxy module, in the mode of wire communication, the test data received is compared with the test comparison standard of corresponding atomic operation in test resource database, judge the validity of data;

(6) test process and judged result are kept in the test log of test resource database by PC.

Beneficial effect of the present invention is, can in unattended situation by virtual interacting technology, automatic test is carried out to the application program of multiple tested mobile phone, can effectively improve testing reliability and test coverage, reduce the operating pressure of tester, improve testing efficiency, reduce testing cost.

Accompanying drawing explanation

Fig. 1 is the structural representation of a kind of mobile phone automatized test macro of the present invention;

Fig. 2 is the realization flow figure of a kind of mobile phone automatized test job method of the present invention;

Fig. 3 is artificial hand's realization flow figure in the present invention;

Fig. 4 is simulated eye realization flow figure in the present invention.

Specific implementation process

Be described in detail below in conjunction with the technical scheme of accompanying drawing to invention, introduce specific embodiment of the invention process.

As shown in Figure 1, a kind of mobile phone automatized test macro comprises some tested mobile phone terminals, a PC and test resource database, tested mobile phone terminal comprises a test agent module, and test agent module communicates mutually in a wired or wireless manner with the control module of PC; PC comprises human-computer interaction module, control module and driver module, human-computer interaction module communicates mutually in a wired or wireless manner with test resource database, and be connected with control module, control module is connected with human-computer interaction module, driver module, communicates mutually in a wired or wireless manner with the test agent module of tested mobile phone terminal; Test resource database communicates mutually in a wired or wireless manner with the human-computer interaction module of PC.

Virtual interacting technology refers to learn based on ergonomics and emulation in test process, and use software building one " visual human ", realize the mechanism of artificial hand and simulated eye, human simulation is to the operating process of equipment; Atomic operation refers to a series of predefined minimum instruction collection, comprises the large class of action command, recognition instruction, initialization directive, control command and output order five.

As shown in Figure 2, a kind of method of work of mobile phone automatized test macro is, the human-computer interaction module of PC extracts test assignment from resource database, add tested mobile phone terminal, by control module calling driver module, tested mobile phone terminal is installed to drive, test instruction is sent to tested mobile phone terminal by control module; After the test agent module of tested mobile phone terminal receives test instruction, first whether decision instruction is effective, if effectively, send the data to the control module of PC after utilizing virtual interacting technology automatically to complete test, control module utilizes human-computer interaction module, test result is obtained, record test log by after the test comparison standard comparing in the data received and test resource database; If test instruction is invalid, test agent module sends to control module invalid result, record test log; Test log is kept in test resource database by human-computer interaction module.

As shown in Figure 3, the course of work of artificial hand is that test agent module obtains the screen size information of tested mobile phone terminal; Call atomic operation according to test instruction, extract the control features to be measured in corresponding atomic operation, morphogenesis characters instruction and coordinate parameters; Judge whether coordinate parameters meets the screen geometry feature of tested mobile phone terminal, if coordinate parameters exceeds tested mobile phone terminal screen ranges, return error flag; If coordinate parameters does not exceed tested mobile phone terminal screen ranges, then according to the difference of feature instruction, in click, drag, long by with touch Selection and call in four class actions, and return Success Flag.

As shown in Figure 4, the course of work of simulated eye is that test agent module searches theactivewindow on tested mobile phone terminal; Call atomic operation according to test instruction, extract the control features to be measured in corresponding atomic operation, morphogenesis characters instruction; All controls to be measured meeting feature instruction in traversal theactivewindow; Obtain the coordinate of control to be measured in theactivewindow; Use virtual hand that control to be measured is moved to visual zone; If control to be measured is text type, then utilize characters matching technology identification control to be measured; If control to be measured is image type, then utilize the OCR ActiveX Techniques identification control to be measured of GOOGLE.

Claims (3)

1. the method for work of a mobile phone automatized test macro, the method based on system comprise some tested mobile phone terminals and a PC, tested mobile phone terminal is communicated with PC by the wired or wireless module carried, and PC comprises human-computer interaction module, control module and driver module; Characterized by further comprising test resource database, PC is communicated with test resource database by wired mode; Described tested mobile phone terminal comprises a test agent module, and this test agent module receives the test instruction from PC, returns test data to PC according to instruction to corresponding software in tested mobile phone terminal after carrying out automatic test; Described human-computer interaction module connecting test resource database and control module; Described control module connects human-computer interaction module and is connected with driver module, and described test resource database is connected with the human-computer interaction module of PC, for On-board test task, test comparison standard, test process and test result; Described method of work, comprises the following steps:
(1) user utilizes PC to extract test assignment from test resource database;
(2) utilize PC to add tested mobile phone terminal, tested mobile phone terminal is installed and drives;
(3) test instruction is sent by wireless or cable to tested mobile phone terminal from PC;
(4), after tested mobile phone terminal receives the test instruction from PC, adopt virtual interacting technology according to instruction, automatic test is carried out to corresponding software in mobile phone, returns test data after having tested to PC;
(5), after PC receives the test data from proxy module, in the mode of wire communication, the test data received is compared with the test comparison standard of corresponding atomic operation in test resource database, judge the validity of data;
(6) test process and judged result are kept in the test log of test resource database by PC;
It is characterized in that: the virtual interacting technology described in step (4) refers to learn based on ergonomics and emulation in test process, and use software building one " visual human ", realize the mechanism of artificial hand and simulated eye, human simulation is to the operating process of equipment;
Atomic operation described in step (5) refers to a series of predefined minimum instruction collection, comprises the large class of action command, recognition instruction, initialization directive, control command and output order five.
2. the method for work of a kind of mobile phone automatized test macro according to claim 1, is characterized in that the realization of described artificial hand comprises the following steps:
(I) screen size information of tested mobile phone terminal is obtained;
(II) call atomic operation according to test instruction, extract the control features to be measured in corresponding atomic operation, morphogenesis characters instruction and coordinate parameters;
(III) judge whether coordinate parameters meets the screen geometry feature of tested mobile phone terminal, if coordinate parameters exceeds tested mobile phone terminal screen ranges, return error flag;
(IV) if coordinate parameters does not exceed tested mobile phone terminal screen ranges, then according to the difference of feature instruction, in click, drag, long by with touch Selection and call in four class actions, and return Success Flag.
3. the method for work of a kind of mobile phone automatized test macro according to claim 1, is characterized in that the realization of described simulated eye comprises the following steps:
(A) on tested mobile phone terminal, theactivewindow is searched;
(B) call atomic operation according to test instruction, extract the control features to be measured in corresponding atomic operation, morphogenesis characters instruction;
(C) all controls to be measured meeting feature instruction in theactivewindow are traveled through;
(D) use virtual hand that control to be measured is moved to visual zone;
(E) if control to be measured is text type, then characters matching technology identification control to be measured is utilized; If control to be measured is image type, then utilize image matching technology identification control to be measured.
CN201310173587.1A 2013-05-10 2013-05-10 A kind of mobile phone automatized test macro and method of work CN103312850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310173587.1A CN103312850B (en) 2013-05-10 2013-05-10 A kind of mobile phone automatized test macro and method of work

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310173587.1A CN103312850B (en) 2013-05-10 2013-05-10 A kind of mobile phone automatized test macro and method of work

Publications (2)

Publication Number Publication Date
CN103312850A CN103312850A (en) 2013-09-18
CN103312850B true CN103312850B (en) 2016-03-30

Family

ID=49137626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310173587.1A CN103312850B (en) 2013-05-10 2013-05-10 A kind of mobile phone automatized test macro and method of work

Country Status (1)

Country Link
CN (1) CN103312850B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461857B (en) * 2013-09-23 2018-05-18 腾讯科技(深圳)有限公司 The detection method and device of software reliability
TWI510918B (en) * 2014-02-20 2015-12-01 Wistron Corp Method and system for quick testing and detectiing mobile devices
CN103957504B (en) * 2014-04-21 2018-05-04 百度在线网络技术(北京)有限公司 Positioning service appraisal procedure, apparatus and system
CN104978247B (en) * 2014-04-29 2019-08-23 腾讯科技(深圳)有限公司 A kind of application testing method, apparatus and system
CN104166610B (en) * 2014-07-24 2017-02-15 深圳天珑无线科技有限公司 Mobile terminal detection method and detection system
CN104202489B (en) * 2014-09-24 2017-01-25 福建联迪商用设备有限公司 Method for testing phone devices
CN104461897B (en) * 2014-12-18 2017-12-12 网易(杭州)网络有限公司 A kind of method and apparatus of Application testing
CN104765684A (en) * 2015-04-01 2015-07-08 闻泰通讯股份有限公司 Automatic verification method and system for demand implementation
CN104735702A (en) * 2015-04-15 2015-06-24 环旭电子股份有限公司 Wireless network automatic connection test method and system thereof
CN105120483A (en) * 2015-07-08 2015-12-02 惠州Tcl移动通信有限公司 Method and system for automatically testing compatibility between intelligent card and mobile terminal
CN105183599B (en) * 2015-09-08 2018-07-13 上海斐讯数据通信技术有限公司 script recording system and method
CN105389812B (en) * 2015-10-31 2018-09-11 重庆信息通信研究院 Board information terminal function automatic detection method based on computer vision
CN105512029B (en) * 2015-11-27 2018-12-25 北京奇虎科技有限公司 A kind of method, server and system for testing intelligent terminal
CN107454124B (en) * 2016-05-31 2020-11-03 创新先进技术有限公司 Equipment automation method and device
CN107315670A (en) * 2017-06-26 2017-11-03 深圳市靖洲科技有限公司 A kind of intelligent terminal method of testing, apparatus and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1522086A (en) * 2003-02-12 2004-08-18 华冠通讯股份有限公司 Automatic test system and method for handset function
CN101588516A (en) * 2008-05-23 2009-11-25 鸿富锦精密工业(深圳)有限公司 Automation system for testing mobile phone keyboard and testing method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577923A (en) * 2008-05-08 2009-11-11 鸿富锦精密工业(深圳)有限公司 Mobile phone testing system and mobile phone testing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1522086A (en) * 2003-02-12 2004-08-18 华冠通讯股份有限公司 Automatic test system and method for handset function
CN101588516A (en) * 2008-05-23 2009-11-25 鸿富锦精密工业(深圳)有限公司 Automation system for testing mobile phone keyboard and testing method thereof

Also Published As

Publication number Publication date
CN103312850A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
CN103258078B (en) Merge man-machine interaction virtual assembly system and the assembly method of Kinect device and Delmia environment
CN103632581B (en) Electric energy acquisition terminal debugging O&M analog simulation method
CN102184138B (en) Method and system for automatically reproducing and positioning software error
KR101825154B1 (en) Overlapped handwriting input method
CN103019928B (en) A kind of automated testing method and system
CN102880546B (en) Software integration testing method and system based on extensible markup language (XML) database
US7406626B2 (en) Test agent architecture
US20060123358A1 (en) Method and system for generating input grammars for multi-modal dialog systems
CN104717337B (en) A kind of method of batch testing mobile phone application and its equipment used
US8826240B1 (en) Application validation through object level hierarchy analysis
CN105488032A (en) Speech recognition input control method and system
JP2015534688A (en) Application development, compilation, and debugging method and apparatus
CN105493027A (en) User interface for realtime language translation
CN103155428A (en) Apparatus and method for adaptive gesture recognition in portable terminal
CN104572072B (en) A kind of language transfer method and equipment to the program based on MVC pattern
TWI453603B (en) Platform independent information handling system, communication method, and computer program product thereof
CN103995777A (en) Automatic embedded software block box testing system and method
CN102798802B (en) Cable fault locating visual simulation experimental method
CN103744787A (en) Cellphone automated testing method
CN103400576B (en) Based on speech model update method and the device of User action log
CN104881364A (en) Automated testing method and system applied to Android system
JP2012502344A (en) Method system and software for providing an image sensor based human machine interface
CN102456082B (en) Two-dimensional three-dimensional combined satellite general assembly process planning and simulation method
TWI533241B (en) A method, servers and devices achieve artificial intelligence
CN103257925A (en) Automatic testing device, system and method for train operation monitoring record software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160324

Address after: 212003 No. 2, Xuefu Road, Zhenjiang, Jiangsu

Patentee after: Zhenjiang Jinzhou Software Co., Ltd.

Address before: 212003 Zhenjiang City, Jiangsu province dream Creek Road, No. 2

Patentee before: Jiangsu University of Science and Technology