Automatic testing method of Android device software

An automatic testing and software technology, applied in the field of Android device software automatic testing and smart phones, can solve problems such as failure to do automatic testing, failure to do automatic testing, and unfavorable Android device security, so as to improve the efficiency of automatic testing and reduce development. and the effect of human capital investment

Inactive Publication Date: 2012-12-26
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF6 Cites 44 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, if the above problems are not done well, automated testing will not be done well, and it will also lead to serious risks and defects in the product.
Maybe you can say that testing is done manually! This can indeed solve the problem of automated testing, but traditional manual testing has narrow coverage, long cycles, and high labor costs, which are unacceptable to manufacturers.
[0003] The second is to use a computer (pc) to connect to the Android terminal, which is realized by installing the Android driver (ADB) tool that comes with Android on the pc or connecting and configuring the peripheral device through the universal serial bus (USB). Socket communication parameters are displayed on the interface through the standard small window toolbox (swt) / jface tool, and at the bottom layer, the information of the device under test is obtained through the shell command to generate the corresponding test script , although this can solve the above problems, it cannot be separated from the computer, and it cannot be automated anytime and anywhere. The convenience and practicality of the tool are very poor. For example, the patent application number is: 201110446674.0
[0004] The third is to obtain the information of the tested program of the device by opening the highest management authority of the device and the shell command that can only be used when the highest use authority of the device is obtained to generate the corresponding test script. This method is closely connected with the bottom layer of the Android system, which is not conducive to The security of Android devices is easy to become a tool / technology for hackers, such as the security issue of the patent with the application number: 201010616361.0 is worrying
[0005] Therefore, in the current testing technology, it is not enough to do a good job in the automated testing of the Android system, and it needs to be improved urgently.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic testing method of Android device software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] At first, explain the foundation and key of the present invention:

[0031] (1) Basic idea

[0032] During the recording process, when the program under test starts, a transparent View is created and placed on the program under test. When an event occurs, the monitoring method implemented by the View will record the coordinates of the element touched by the program under test or the key value of the device and generate a test script and save it on the memory card of the mobile phone. During playback, the cross-process playback test is realized according to the corresponding script parsing algorithm combined with Instrumentation (an automated test framework for the Android platform).

[0033] (2) Custom View layer

[0034] The custom transparent View inherits from android.view.View, and monitors device action events by overriding its key events onKeyDown(), onKeyUp(), onKeyLong() and touch event onTouchEvent(). At the same time, this step also encapsulates the Target ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to an automatic testing method of Android device software, and the automatic testing method comprises steps of automatic recording, replaying and verification of scripts, wherein the recording comprises following steps of (101) starting a tested program, and creating a layer of transparent View layer covering the tested program, wherein the transparent View layer is a subclass of android view View; (102) operating a screen or keys according to a test requirement; in the operation process, the transparent View layer captures and records a corresponding touch control / keystroke event, and an operation instruction is transmitted to the tested program through an analog touch control / keystroke event; and the tested program executing the operation instruction. The automatic testing method is based on an Android system and unnecessary for utilizing a shell order and a high-performance personal computer (pc), so that the test safety, reliability, universality and easiness in implementation can be enhanced.

Description

technical field [0001] The invention relates to software black-box testing technology, in particular to an Android (Android) device software automatic testing method, especially applied to smart phones. Background technique [0002] Existing, Android system software automation test tool is roughly divided into three kinds, one is that test developer pre-designs test tool for a certain test path of a certain program (such as the current popular Juit (java unit test) and Robotium (an Android-based black-box automated testing framework), which is then used for automated testing. This has the advantage of saving the workload of the tester, but greatly increasing the workload of the test developer. First, a program exists If there are multiple test paths, test developers must design test tools according to different test paths. Otherwise, the comprehensiveness of program testing will not be achieved. Therefore, if the above problems cannot be done well, automated testing will not...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 曾元清
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products