Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Preference setting-oriented Android application testing method

A test method and test target technology, which is applied in software test/debugging, error detection/correction, instruments, etc., can solve the problem of huge test cost and achieve the effect of reducing test cost and improving effect

Active Publication Date: 2019-09-06
NANJING UNIV
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the end, the test cost brought by this combination is extremely huge

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
  • Preference setting-oriented Android application testing method
  • Preference setting-oriented Android application testing method
  • Preference setting-oriented Android application testing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0041] Such asfigure 1 As shown, it is a schematic flow chart of the preference setting-oriented Android application testing method of this embodiment, and it is also an overall flow chart of this method, which includes three major steps:

[0042] Step 101, perform static analysis on the executable file of the application under test, i.e. the APK file, to obtain all the preference settings defined in the application. This set of preference settings is recorded as PI, which is used to assist the analysis in the next step 102;

[0043] Step 102, analyze the associated preference settings in each test case by dynamically executing the test cases of the application under test, so as to enumerate the combinations of all related preference settings and their possible inputs under all test cases, and this total set is recorded...

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 preference setting-oriented Android application testing method. The method comprises the following steps: firstly, performing static program analysis on an executable file ofan application to be tested to obtain all preference settings defined in the application and attributes thereof; and then, on the existing test cases, obtaining relevant preference settings in the test cases in a dynamic program analysis manner. For each test case, a combination of all related preference settings and its possible inputs can be tested to implement a preference setting-oriented test. Finally, in order to reduce the cost of the test, the invention provides a target-oriented execution mode, which divides the code of the test case into basic blocks, and combines the basic blocks with the input of the preference settings related thereto as the test target. According to the greedy algorithm, the combination of the test case covering the most test target and the preference settingis selected for testing, so that the repeated test of the preference setting input combination under each test case is reduced, and the test cost is greatly reduced.

Description

technical field [0001] The invention belongs to the field of software testing and program analysis, and mainly relates to a preference setting-oriented Android application testing method. Background technique [0002] Android, as a mobile platform that occupies more than 80% of the market share of current mobile smart terminals, Android applications on it have become an inseparable part of people's daily life. However, due to the changing requirements of Android applications and the short development cycle, it is often difficult to adequately test the applications. To this end, a large number of test automation execution frameworks have been proposed. After testers write test cases, they can execute them in the application under test and collect execution information. They have been widely used in the industry. On this basis, the academic community has also proposed many automated test input generation technologies. They use random, model-based, and search-based strategies ...

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/3684
Inventor 潘敏学张天陆一飞陆龙龙李宣东
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products