Unlock instant, AI-driven research and patent intelligence for your innovation.

Event handler-based android automated testing tools and testing methods

An event processor and automated testing technology, applied in software testing/debugging, electrical digital data processing, instruments, etc., can solve problems such as difficult simulation of events, failure to consider system events and Inter-App events, failure to guarantee model integrity, etc. , to achieve high code coverage, high efficiency, and high code coverage

Active Publication Date: 2018-02-02
NANJING UNIV OF SCI & TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, these two types of testing methods also have their own shortcomings: fuzz testing cannot generate special test inputs, and cannot guarantee the integrity of the test; GUI model-based testing relies on a complete GUI model, and the existing GUI model acquisition methods, regardless of Neither static analysis acquisition nor dynamic execution acquisition can guarantee the integrity of the model
[0004] In addition, the above tools are all based on UI testing tools, without considering system events and Inter-App events
Therefore, the difficulties of Android testing are summarized in the following two points: First, it contains rich event inputs, such as UI events, system events and Inter-App events, and some events are difficult to simulate; second, it lacks systematic exploration methods

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
  • Event handler-based android automated testing tools and testing methods

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0076] The present embodiment uses OpenSudoku.apk as example, describes in detail the concrete implementation of the present invention; Test method specifically comprises the following steps:

[0077] S1, decompress the OpenSudoku.apk file, obtain the resource file, AndroidManifest.xml and Dex file in the apk;

[0078] S2, use the XML parser to parse the resource file and AndroidManifest.xml, find UI events defined in the resource file, system events and Inter-App events defined in AndroidManifest.xml;

[0079] S3, using the recognizer to parse the Dex file, that is, the class.dex file, to obtain all the classes in the class.dex file, and to search for UI events and system events defined in the class;

[0080] S4. The distributor obtains the event source and event handler of the event obtained by the XML parser and the recognizer, and distributes them to their respective activities according to the event source; for example, btn.setOnClickListener(handler) represents a button ...

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 automatic Android testing tool based on an event processor and a testing method. The testing tool comprises an event instrumentation module, a code analysis tool Soot and an App exploring module; the event instrumentation module comprises an XML parser, a recognizer, a dispatcher, a statement constructor and a statement manager, the code analysis tool Soot repacks an instrumentation call statement, a Test event and a primary code of Apk into a new Apk file; the App exploring module conducts automatic testing on the repacked Apk file. According to the automatic Android testing tool based on the event processor and the testing method, a UI event of Android, a system event and an Inter-App event can be triggered; compared with a testing tool which can only trigger the UI event, the automatic testing tool is more comprehensive, and the code coverage rate is higher.

Description

technical field [0001] The invention relates to the field of software testing, in particular to an event handler-based Android automatic testing tool and testing method. Background technique [0002] At present, the research on Android App testing at home and abroad mainly focuses on the generation of event input. According to different research and exploration methods, existing work is mainly divided into two categories: fuzzing testing and GUI-based model testing. Fuzz testing is also called random testing. Its core idea is to automatically or semi-automatically generate random data input into the program, monitor the abnormal conditions of the program, such as crashes, assertion failures, etc., to find possible errors in the program. The test based on the GUI model refers to the GUI model based on the App. The test tool systematically explores the App and triggers events in the App. This type of testing method first generates the GUI model of the App. The GUI model refle...

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/3688
Inventor 宋巍钱祥星黄青青
Owner NANJING UNIV OF SCI & TECH