Dependency injection-based semi-automatic android application test method

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

Active Publication Date: 2017-07-14
NANJING UNIV
View PDF4 Cites 6 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
  • Dependency injection-based semi-automatic android application test method
  • Dependency injection-based semi-automatic android application test method
  • Dependency injection-based semi-automatic android application test method

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

The invention provides a dependency injection-based semi-automatic android application test method. According to the method, the advantages of manual test and random test can be combined, through utilizing an Xposed framework, system dependency requests related to application calling are obtained, and in the test process, various dependencies required for the right operation of applications are provided, so that the test coverage is improved and bugs are efficiently detected. The method comprises an Android mobile phone preprocessing process, a target program code plug-in mounting process, a random test process and a dependency injection process. By utilizing the method provided by the invention, the dependency requests in application test process can be automatically detected in a lightweight manner, and resource type dependencies are automatically provided, so that the problem of dependency deficiency in the automatic test process is solved; and a method which combines the advantages, of solving complicated interaction and providing user dependencies, of a manual manner and the characteristic, of discovering unexpected defects, of random test to carry out semi-automatic test is disclosed, so that the automatic test efficiency and quality are improved.

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 Applications(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