Android application program automatically black box testing method and system

An Android application, black-box testing technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve the problems of low interface coverage, low degree of test automation, complex process, etc. The effect of reusability, improved interface coverage, and increased automation

Active Publication Date: 2017-05-10
SHENZHEN UNIV
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The purpose of the present invention is to provide a method and system for automated black-box testing of Android applications, aiming at solving the problem of Android application methods provided by the prior art, requiring manual writing or manual recording of test scripts, resulting in a low degree of automation in testing , at the same time, it is necessary to construct the Activity transition diagram through static analysis technology, the process is complicated, and the interface coverage rate is not high

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
  • Android application program automatically black box testing method and system
  • Android application program automatically black box testing method and system
  • Android application program automatically black box testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0054] Such as figure 1 As shown, the present invention is achieved in that a method for automated black-box testing of Android applications, the method for automated black-box testing of Android applications comprises the following steps:

[0055] Step S101, identifying all control information and target window information in the target window through the Android application window control identification method based on the ADB command;

[0056] Step S102, using the method for automatically generating test cases with full coverage of Android application windows to automatically generate test cases;

[0057] Step S103, us...

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 discloses an Android application program automatically black box testing method and system. When recognizing all control information and target window information in the target window as well as obtaining the control information, control information document which is obtained through ADB orders needs to be parsed to gain all control information. It is simple in the process to directly obtain window information through ADB orders.When automatically generating test case, all Android application widget can be covered during the process. When automatically generating test script, keywords and test data need to be added in test case document to achieve to automatically generate test script by automatically encapsulating the test frames of Robotium. When test data changes, the test data in test case document need to be changed. The Android application program automatically black box testing method and system improves the automaticity of test, the coverage rate at interface and the reusability of test script without needing source code.

Description

technical field [0001] The invention belongs to the technical field of Android application program testing, and in particular relates to a method and system for automated black-box testing of Android application programs. Background technique [0002] The window (window) is the entire graphical interface displayed on the device screen by the application program, and uniquely identifies the current interface. Factors that cause window changes include switching between different activities, displaying and hiding of different layout controls in the same activity component, and so on. [0003] ADB (Android Debug Bridge), that is, Android Debug Bridge, is a command-line tool in the Android system, which can use ADB to realize the connection between Android mobile phone and PC. [0004] APK (Android Package) is the Android installation package. [0005] With the rapid development of mobile Internet technology, the number of Android application development is also increasing. In...

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
CPCG06F11/3676G06F11/3684
Inventor 蔡树彬明仲周小婷卢亚辉
Owner SHENZHEN UNIV
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