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

A Preference-Oriented Android Application Testing Method

A test method and test case technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as huge testing costs, achieve the effect of reducing testing costs and improving results

Active Publication Date: 2021-05-28
NANJING UNIV
View PDF10 Cites 0 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
  • A Preference-Oriented Android Application Testing Method
  • A Preference-Oriented Android Application Testing Method
  • A Preference-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] likefigure 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 as...

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 proposes a preference-setting-oriented Android application testing method. Firstly, static program analysis is performed on the executable file of the application under test to obtain all preferences and attributes defined in the application. Then, on the existing test cases, the associated preference settings in each test case are obtained through dynamic program analysis. For each test case, all combinations of relevant preferences and their possible inputs can be tested to implement preference-oriented testing. Finally, in order to reduce the cost of this test, the present invention provides a goal-oriented execution mode, which divides the code of the test case into basic blocks, and uses the combination of basic blocks and their related preferences as the test target. According to the greedy algorithm, the present invention selects the combination of test cases and preference settings covering the most test targets for testing, thereby reducing the repeated testing of preference setting input combinations under each test case and greatly reducing the test cost.

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