CN104601768A - Android mobile phone automatic testing system and testing method thereof - Google Patents

Android mobile phone automatic testing system and testing method thereof Download PDF

Info

Publication number
CN104601768A
CN104601768A CN201410801911.4A CN201410801911A CN104601768A CN 104601768 A CN104601768 A CN 104601768A CN 201410801911 A CN201410801911 A CN 201410801911A CN 104601768 A CN104601768 A CN 104601768A
Authority
CN
China
Prior art keywords
test
module
interface layer
android phone
mobile phone
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.)
Pending
Application number
CN201410801911.4A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410801911.4A priority Critical patent/CN104601768A/en
Publication of CN104601768A publication Critical patent/CN104601768A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses an Android mobile phone automatic testing system. The Android mobile phone automatic testing system includes an interface layer calling module used for calling the function of a mobile phone interface layer, and a testing module used for testing the function of the mobile phone interface layer through the interface layer calling module and automatically generating a testing report. The invention further discloses an Android mobile phone automatic testing method. The automatic testing method includes the following steps: an Android mobile phone is connected to an assistant device for testing; the interface layer calling module and the testing module are installed on the Android mobile phone through the assistant device for testing; the testing module calls the function of the mobile phone interface layer of the Android mobile phone through the interface layer calling module to test and automatically generates the testing report. The Android mobile phone automatic testing system and the method thereof are not existed with any limit about brand and system version of the mobile phone, so that the tool can satisfy the diversified mobile phone testing.

Description

Android phone automatization test system and method for testing thereof
Technical field
The present invention relates to Mobile phone automatic testing method, particularly a kind of Android phone automatization test system and method for testing thereof.
Background technology
The current automatic test of Android phone is comparatively additional, without compatible stronger automatic test scheme, and each manufacturer all formulates the UI(User Interface user interface of oneself manufacturer) design, interface function all cannot be unified, and cannot form the automatic test scheme of uniform validity.
Existing Android automation uses the method for Monkey random test, cannot establish self-defined content measurement, also export without automatic test report, in dependence test content, without approximate automated testing method.Existing Android automation Monkey technology cannot self-defined testing procedure and content; And automatically cannot generate test report; And prior art according to setting, also cannot cannot realize the test of pressure testing scheme.
Summary of the invention
The object of this invention is to provide a kind of Android phone automated testing method, the version for the system in the brand of mobile phone and mobile phone is hard-core, makes this instrument meet diversified mobile phone test.
In order to realize above object, the present invention is achieved by the following technical solutions:
A kind of Android phone automatization test system, comprises:
Interface layer calling module, described interface layer calling module calling mobile phone interface layer function;
Test module, described test module by interface layer calling module testing mobile phone interface layer function, and generates test report automatically.
Also comprise:
Report output module, test report outputs on outside test accessory by described report output module;
Format conversion module, the format conversion of the test report that test accessory receives by described format conversion module is for reading form.
The described form read is html format.
Described interface layer calling module and test module are installed to Android phone by outside test accessory.
Described interface layer calling module comprises:
One or more trigger event, described test module is tested Android phone automatically according to trigger event;
Stateful Inspection value, the test result of described Stateful Inspection value monitoring trigger event, this Stateful Inspection value and the test result of trigger event are carried out contrasting and are unanimously test and pass through, otherwise, then test and do not pass through.
A kind of Android phone automated testing method, comprises following steps:
Android phone is connected on test accessory;
By test accessory, interface layer calling module and test module are installed in Android phone;
The handset port layer function that test module calls Android phone by interface layer calling module carries out test and automatically generates test report.
The test pack of described test module is containing following sub-step:
Test module triggers one or more trigger event and starts test;
If the Stateful Inspection value that the test result of above-mentioned steps is preset with interface layer calling module contrasts consistent, then test is passed through; Otherwise, then test and do not pass through.
Also comprise following steps: test report outputs on outside test accessory by report output module, format conversion module by the format conversion of test report for can form be read.
The present invention compared with prior art, has the following advantages:
Version for the system in the brand of mobile phone and mobile phone is hard-core, makes this instrument meet diversified mobile phone test.
Accompanying drawing explanation
Fig. 1 is the system block diagram of Android phone automatization test system of the present invention;
Fig. 2 is the method flow diagram of Android phone automated testing method of the present invention.
Embodiment
Below in conjunction with accompanying drawing, by describing a preferably specific embodiment in detail, the present invention is further elaborated.
As shown in Figure 1, a kind of Android phone automatization test system, comprises: interface layer calling module, test module, test report generation module, also comprise further: report output module, format conversion module.
Wherein, interface layer calling module calling mobile phone interface layer function (i.e. Application Programming Interface, api layer), in the present embodiment, interface layer calling module is self-control APK(Android Package), this APK enumerates the various funcalls in Android phone, self-defined establishment can to suit the requirements one or several modules of test function, and in each module, is provided with one or more trigger event and Stateful Inspection value.
Test module is by interface layer calling module test api layer function, in the present embodiment, test module obtains by adopting Junit write method, its calling interface layer calling module, the trigger event n-back test in APK is utilized to test, Stateful Inspection value and the test result of test module are carried out contrasting and are unanimously test and pass through, otherwise, then test and do not pass through, test module according to test result, can generate test report automatically, and test result is then directly kept in Android phone, in the present embodiment, the record format of test result is XML format.
The test report that test report generation module generates outputs on outside test accessory by report output module, in the present embodiment, outside test accessory be customary personal computer, and report output module passes through ADB(Android Debug Bridge) order and copied in computer; The form of the test report that test accessory receives by format conversion module is converted into can reads form from XML format, in the present embodiment, can read form be HTML(namely: HTML) form.
According to above-mentioned Auto-Test System, as shown in Figure 2, the present invention further discloses a kind of Android phone automated testing method, comprises following steps:
Android phone is connected on computer; By computer, interface layer calling module and test module are installed in Android phone; The api layer function that test module calls Android phone by interface layer calling module is tested, test module triggers one or more trigger event and starts test, if if the Stateful Inspection value that test result and interface layer calling module are preset contrasts consistent, then test is passed through; Otherwise, then test and do not pass through; Automatically generate test report according to aforementioned result and be kept in mobile phone.In the present invention, because Android phone automatization test system is also provided with report output module, format conversion module, therefore, also comprise following steps: test report outputs on outside test accessory i.e. computer in the present embodiment by report output module, format conversion module by the format conversion of test report for can form be read.
When tested, first self-control APK is installed, then install and adopt Junit write method and the test module that obtains, test module can call APK and test each module, after each module has been surveyed, logging test results in xml format in the formulation file of mobile phone, the record of XML format exports in computer by ADB order by report output module subsequently, and XML format is changed into the report of html format by format conversion module.
In sum, Android phone automated testing method of the present invention, the version for the system in the brand of mobile phone and mobile phone is hard-core, makes this instrument meet diversified mobile phone test.
Although content of the present invention has done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.After those skilled in the art have read foregoing, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (8)

1. an Android phone automatization test system, is characterized in that, comprises:
Interface layer calling module, described interface layer calling module calling mobile phone interface layer function;
Test module, described test module by interface layer calling module testing mobile phone interface layer function, and generates test report automatically.
2. Android phone automatization test system as claimed in claim 1, is characterized in that, also comprise:
Report output module, test report outputs on outside test accessory by described report output module;
Format conversion module, the format conversion of the test report that test accessory receives by described format conversion module is for reading form.
3. Android phone automatization test system as claimed in claim 2, it is characterized in that, the described form read is html format.
4. Android phone automatization test system as claimed in claim 1, is characterized in that, described interface layer calling module and test module are installed to Android phone by outside test accessory.
5. the Android phone automatization test system as described in claim 1 or 4, is characterized in that, described interface layer calling module comprises:
One or more trigger event, described test module is tested Android phone automatically according to trigger event;
Stateful Inspection value, the test result of described Stateful Inspection value monitoring trigger event, this Stateful Inspection value and the test result of trigger event are carried out contrasting and are unanimously test and pass through, otherwise, then test and do not pass through.
6. an Android phone automated testing method, is characterized in that, comprises following steps:
Android phone is connected on test accessory;
By test accessory, interface layer calling module and test module are installed in Android phone;
The handset port layer function that test module calls Android phone by interface layer calling module carries out test and automatically generates test report.
7. Android phone automated testing method as claimed in claim 6, is characterized in that, the test pack of described test module is containing following sub-step:
Test module triggers one or more trigger event and starts test;
If the Stateful Inspection value that the test result of above-mentioned steps is preset with interface layer calling module contrasts consistent, then test is passed through; Otherwise, then test and do not pass through.
8. Android phone automated testing method as claimed in claim 6, it is characterized in that, also comprise following steps: test report outputs on outside test accessory by report output module, format conversion module by the format conversion of test report for can form be read.
CN201410801911.4A 2014-12-22 2014-12-22 Android mobile phone automatic testing system and testing method thereof Pending CN104601768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410801911.4A CN104601768A (en) 2014-12-22 2014-12-22 Android mobile phone automatic testing system and testing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410801911.4A CN104601768A (en) 2014-12-22 2014-12-22 Android mobile phone automatic testing system and testing method thereof

Publications (1)

Publication Number Publication Date
CN104601768A true CN104601768A (en) 2015-05-06

Family

ID=53127256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410801911.4A Pending CN104601768A (en) 2014-12-22 2014-12-22 Android mobile phone automatic testing system and testing method thereof

Country Status (1)

Country Link
CN (1) CN104601768A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306651A (en) * 2015-10-23 2016-02-03 上海斐讯数据通信技术有限公司 Method and device for solving mobile phone calibration problem of various platforms
CN106528416A (en) * 2016-11-03 2017-03-22 上海斐讯数据通信技术有限公司 android platform-based automation testing method and system
CN106774254A (en) * 2016-12-16 2017-05-31 四川长虹电器股份有限公司 The automatization test system and method for wireless intelligent control module and Mobile solution
CN107231272A (en) * 2017-05-26 2017-10-03 上海斐讯数据通信技术有限公司 Automatic test device and method that a kind of wireless messages are obtained
CN107967215A (en) * 2017-12-09 2018-04-27 惠州市德赛西威汽车电子股份有限公司 A kind of method and apparatus for testing vehicle-mounted multimedia handset interacted system automatically
WO2019000291A1 (en) * 2017-06-26 2019-01-03 深圳市靖洲科技有限公司 Intelligent terminal test method, device, and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466058A (en) * 2002-06-24 2004-01-07 华为技术有限公司 Method for readlizing universal test report
CN101128007A (en) * 2007-09-21 2008-02-20 中兴通讯股份有限公司 Testing method for mobile communication terminal
CN102541740A (en) * 2012-01-04 2012-07-04 广东欧珀移动通信有限公司 Android-based automatic test method for mobile phone notes
JP2013065168A (en) * 2011-09-16 2013-04-11 Kddi Corp Application analyzer and program
CN103577309A (en) * 2012-07-25 2014-02-12 腾讯科技(深圳)有限公司 Automatic test method and device
CN104063324A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for Monkey test

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466058A (en) * 2002-06-24 2004-01-07 华为技术有限公司 Method for readlizing universal test report
CN101128007A (en) * 2007-09-21 2008-02-20 中兴通讯股份有限公司 Testing method for mobile communication terminal
JP2013065168A (en) * 2011-09-16 2013-04-11 Kddi Corp Application analyzer and program
CN102541740A (en) * 2012-01-04 2012-07-04 广东欧珀移动通信有限公司 Android-based automatic test method for mobile phone notes
CN103577309A (en) * 2012-07-25 2014-02-12 腾讯科技(深圳)有限公司 Automatic test method and device
CN104063324A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for Monkey test

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306651A (en) * 2015-10-23 2016-02-03 上海斐讯数据通信技术有限公司 Method and device for solving mobile phone calibration problem of various platforms
CN105306651B (en) * 2015-10-23 2018-01-02 上海斐讯数据通信技术有限公司 A kind of method and apparatus for solving each platform mobile phone calibration problem
CN106528416A (en) * 2016-11-03 2017-03-22 上海斐讯数据通信技术有限公司 android platform-based automation testing method and system
CN106774254A (en) * 2016-12-16 2017-05-31 四川长虹电器股份有限公司 The automatization test system and method for wireless intelligent control module and Mobile solution
CN107231272A (en) * 2017-05-26 2017-10-03 上海斐讯数据通信技术有限公司 Automatic test device and method that a kind of wireless messages are obtained
WO2019000291A1 (en) * 2017-06-26 2019-01-03 深圳市靖洲科技有限公司 Intelligent terminal test method, device, and system
CN107967215A (en) * 2017-12-09 2018-04-27 惠州市德赛西威汽车电子股份有限公司 A kind of method and apparatus for testing vehicle-mounted multimedia handset interacted system automatically

Similar Documents

Publication Publication Date Title
CN104601768A (en) Android mobile phone automatic testing system and testing method thereof
CN105302732B (en) A kind of automatic test approach and device of mobile terminal
CN106970873A (en) Mock method of testings, apparatus and system on line
CN103425574B (en) A kind of method and device of test application program
CN105338110A (en) Remote debugging method, platform and server
CN106649107B (en) Automatic testing method and device for stability of android system
CN105653438B (en) The striding course automated testing method and device of Android device
CN104407980A (en) Mobile application automated testing device and method
CN107239398B (en) Postman-based automatic interface test case generation system and method
CN111930617B (en) Automatic test method and device based on data objectification
CN102479084A (en) Method and device for acquiring log by Android terminal
CN104331662A (en) Method and device for detecting Android malicious application
CN108241560B (en) Memory test method and device and electronic equipment
CN105842559B (en) Test result wiring method, device and test macro and mobile terminal
CN102375103B (en) Electronic product test device and method
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
WO2019075994A1 (en) Method, device and system for mock data at ios end, and storage medium
CN104102581B (en) A kind of method and device for realizing unit testing
CN105187608A (en) Method and device obtaining power consumption of application program in mobile terminal
CN110457743B (en) Chip detection method based on FPGA
CN115577359A (en) Android application privacy permission security detection method, device, equipment and medium
CN102968367A (en) Static detection method on basis of embedded software and system thereof
CN104133967A (en) PCB packaging silk-screen printing setting and pin silk-screen printing positioning inspection method
CN104133764A (en) Response test method and response test device of application program interface
KR20140042326A (en) Electric test system for pcb(printed circuit board) and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150506