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

Accurate traversal method and apparatus for UI controls of android application

An Android and precise technology, applied in the computer field, can solve problems such as low degree of active user intervention, poor applicability, weak function detection ability, etc., and achieve the effect of improving function detection ability, increasing the degree of manual intervention, and improving applicability

Active Publication Date: 2016-04-06
BEIJING QIHOO TECH CO LTD
View PDF5 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the above method must first obtain the installation file of the software under test and perform preprocessing, the operation is cumbersome, and the traversal operation cannot be realized for the installed application on the mobile phone, and the applicability is not strong. The detection ability of the function is weak, and the test strategy cannot be set, resulting in a low degree of active user intervention

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
  • Accurate traversal method and apparatus for UI controls of android application
  • Accurate traversal method and apparatus for UI controls of android application
  • Accurate traversal method and apparatus for UI controls of android application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] refer to figure 1 , showing a flow chart of steps of an embodiment of a method for accurate traversal of UI controls of an Android application according to an embodiment of the present invention, which may specifically include the following steps:

[0068] Step 110: After monitoring the target application to start, the test process acquires the Activity name of the Activity object at the top of the Activity stack.

[0069] Activity is one of the four most basic and most commonly used components in Android. Activity is an application component that provides a screen that users can interact with in order to complete a certain task. In an Android application, an Activity is usually a separate screen, which can display some controls or listen to and respond to user events. In practical applications, an application contains at least one Activity.

[0070] In practical applications, the stack will be used to store the Activity objects that have been started in the target ap...

Embodiment 2

[0093] refer to figure 2 , showing a flow chart of steps of an embodiment of a method for accurate traversal of UI controls of an Android application according to an embodiment of the present invention, which may specifically include the following steps:

[0094] Step 210, when the system is started, replace the initial incubation process that comes with the system with a predetermined first incubation process.

[0095] In practical applications, the normal startup process of the Android system is roughly: start the system—>init process reads and starts init.rc—>init process creates zygote (incubator) process—>zygote process creates java virtual machine and loads zygoteInit class—> Register the socket to be monitored through the virtual machine—>wait for the ActivityManagerService to write the creation message of the creation process to the socket—>the ​​zygote process creates a corresponding process according to the creation message.

[0096] In the Android system, all the ...

Embodiment 3

[0126] refer to image 3, showing a flow chart of steps of an embodiment of a method for accurate traversal of UI controls of an Android application according to an embodiment of the present invention, which may specifically include the following steps:

[0127] Step 310: Obtain snapshots of each Activity object of the target application and its UI controls by using the UIAutomator tool.

[0128] The UIAutomator tool is a testing tool for the Android system. Using this tool, you can obtain snapshots of each interface, that is, snapshots of each Activity object and UI controls, so as to analyze the layout of the Activity object and the attributes of each UI control. For example The UI controls contained in the Activity object, the positions of the UI controls, and the specific attributes of the UI controls can be known.

[0129] Step 320: Based on the snapshot of each Activity object and its UI controls, configure a click condition policy for each Activity object.

[0130] 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

An embodiment of the invention provides an accurate traversal method and apparatus for UI controls of an android application, and relates to the technical field of computers. The method comprises: after it is monitored that a target application is started by a test process, obtaining an Activity name of an Activity object of an Activity stack top; according to the Activity name, obtaining a click condition policy corresponding to an Activity from a policy library; according to the click condition policy, performing click operation on each UI control in the Activity object; and according to the click operation, recording and outputting a test result. According to the accurate traversal method and apparatus, the problem of relatively low active intervention degree of a user caused by low applicability, random disordered UI clicking, relatively poor functional detection capability and no test policy setting of a conventional traversal algorithm is solved, and the beneficial effects of improving the applicability due to capability of performing traversal operation on all applications in an Android system and improving manual intervention level and functional detection capability due to capability of manually presetting a UI clicking scheme are achieved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method for precise traversal of Android application UI controls and a device for precise traversal of Android application UI controls. Background technique [0002] With the development of smartphones, various systems supporting smartphones have emerged. Such as Android (Android) system. Android is an open source operating system based on Linux, which is mainly used in mobile terminals such as mobile phones. Android platform consists of operating system, middleware, user interface and application software. [0003] As the market share of the Android system increases, more and more developers develop APPs (Applications) based on the Android system, making it more convenient for users to use Android phones. For developers, before providing an application to users, it is necessary to test the performance of each UI (UserInterface, user interface) control in the applic...

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
IPC IPC(8): G06F11/36
CPCG06F11/3688G06F11/3696
Inventor 姜阳阳
Owner BEIJING QIHOO TECH CO LTD
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