A semi-automatic testing method for Android applications based on dependency injection

A dependency injection, semi-automatic technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as the difficulty of applying automatic test tools and the impossibility of testing main functions, so as to improve test coverage, The effect of efficiently detecting bugs and reducing equipment consumption

Active Publication Date: 2019-07-09
NANJING UNIV
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Android applications need a lot of external dependencies to run correctly. For example, the music player needs music files to play, and the email client needs the user to provide an available email account to access its main functions. If these dependencies are not provided, it is difficult for automatic testing tools to pass the generated events to reach application states that real users can easily reach, making it nearly impossible to test the main functionality of these applications

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
  • A semi-automatic testing method for Android applications based on dependency injection
  • A semi-automatic testing method for Android applications based on dependency injection
  • A semi-automatic testing method for Android applications based on dependency injection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The technical solutions of the present invention will be described in detail below with reference to the accompanying drawings, but the protection scope of the present invention is not limited to the embodiments.

[0044] The present invention provides a semi-automatic test method for Android based on dependency injection, which enables an application to automatically detect related dependencies and provide resources during the period of testing, so that a test program can better explore application functions and improve test efficiency.

[0045] In the Android testing technology, because the tested application is not provided with the resources it relies on, some states that users can easily enter cannot be covered during the automated testing process.

[0046] The Xposed framework is a framework service that can affect the running of the program without modifying the Android installation package (APK). The basic principle is to affect the running of the program by modi...

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

A dependency-injection Android application semi-automatization test method, wherein same can acquire, in combination with the advantages of a manual test and a random test, an application call-related system dependency request by using an Xposed frame, provide various dependencies required for the proper running of an application during testing, and improve a test coverage rate; and can efficiently detect bugs. The method comprises: an Android phone preprocessing process, a target program code insertion process, a random test process, and a dependency injection process. By using the method, a dependency request, during an application testing process, can be automatically detected in a lightweight manner, and a resource-type dependency is automatically provided to solve the problem of a missing dependency during an automatic testing process. Moreover, proposed is a method for performing semi-automatization testing, wherein complex interactions can be solved in combination with a manual method, and the features of unexpected defects can be discovered by providing user-dependent advantages and a random test, thus improving the efficiency and quality of an automatization test.

Description

technical field [0001] The invention relates to the field of mobile application testing, in particular to a semi-automatic testing method for Android applications based on dependency injection. Background technique [0002] With the popularity of smartphones, mobile apps have gradually become a part of our daily life. Due to the fragmentation of the Android system and devices, many apps cannot be fully tested at present. We can see a lot from the negative reviews in the Android market. The application is defective. At present, mobile testing technology is mainly divided into manual testing and automatic testing. It is generally believed that manual testing is time-consuming, labor-intensive and error-prone, but humans are intelligent and can generate valuable test cases and improve test results. Due to its open source characteristics and huge market share, Android has attracted a group of researchers to study and develop many automated testing tools, among which Monkey is a...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3668
Inventor 曹春余萍孟成林
Owner NANJING 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