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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
