Method, device and system for testing terminal application interface

A terminal application and test device technology, applied in the field of communication, can solve problems that affect the effectiveness of traversal, inability to realize, test errors, etc.

Active Publication Date: 2015-04-29
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the prior art, the inventors of the present invention found that the existing solution can only effectively traverse the controls of the current component, but cannot realize the traverse of all components. Moreover, when traversing the terminal application interface During the control process of the current component, if the current tree (Tree) control structure is destroyed by an access action, for example, after a "Button" on the interface is clicked (Click) and the component is switched, the tree control The structure and the terminal application interface will no longer match, then at this time, it will affect the effectiveness of the traversal, and eventually lead to test errors

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
  • Method, device and system for testing terminal application interface
  • Method, device and system for testing terminal application interface
  • Method, device and system for testing terminal application interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] In this embodiment, description will be made from the perspective of a testing device for a terminal application interface. The testing device for a terminal application interface may specifically be integrated in a terminal, and the terminal may specifically be a smart phone, a tablet computer, and the like.

[0036]A method for testing a terminal application interface, comprising: acquiring a first control leaf node list of the current interface; determining a root node, and establishing an access tree according to the root node and the first control leaf node list, so that the first control leaf node list All the nodes of the root node are used as the child nodes of the root node, and the root node is determined as the current node; the child nodes under the current node are traversed based on the access tree; the second control leaf node list of the current interface is obtained; the second control is determined When the leaf node list is not equal to the first contr...

Embodiment 2

[0061] According to the method described in Embodiment 1, it will be further described in detail before.

[0062] In this embodiment, description will be made by taking the test device of the terminal application interface specifically integrated in the terminal as an example.

[0063] Such as figure 2 As shown, a method for testing a terminal application interface, the specific process may be as follows:

[0064] 201. The terminal acquires a leaf node list of the first control on the current interface.

[0065] Wherein, the first control leaf node list includes at least one node.

[0066] For example, taking the leaf node list of the first control as List allElementsA as an example, the specific code can be as follows:

[0067]

[0068] 202. The terminal defines an empty node as a root node, and builds an access tree according to the root node and the acquired leaf node list of the first control, so that all nodes in the leaf node list of the first control are used as ...

Embodiment 3

[0102] In order to better implement the above method, the embodiment of the present invention also provides a test device for the terminal application interface, such as image 3 As shown, the testing device of the terminal application interface includes a first acquisition unit 301, an establishment unit 302, a traversal unit 303, a second acquisition unit 304, an addition unit 305, a judgment unit 306 and a processing unit 307;

[0103] The first acquiring unit 301 is configured to acquire the first control leaf node list of the current interface;

[0104] Wherein, the first control leaf node list includes at least one node.

[0105] The establishment unit 302 is configured to determine a root node, establish an access tree according to the root node and the first control leaf node list, make all nodes in the first control leaf node list serve as child nodes of the root node, and determine the The root node is the current node.

[0106] For example, you can specifically de...

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 embodiment of the invention discloses a method, a device and a system for testing a terminal application interface. The method comprises the following steps of obtaining a first list of control leaf subnodes of the current interface, determining a root node, establishing an access tree, using all nodes of the first list of the control leaf subnodes as subnodes of the root node, determining the root node as a new current node, and traversing the subnodes under the current node based on the access tree; when a second list of the control leaf subnodes different from the first list of the control leaf subnodes is obtained, using all nodes of the second list of the control leaf subnodes as the subnodes of a jumping node, and determining the jumping node as the current node; when the current node is not the root node, and all subnodes of the current node have been respectively accessed, determining a parent node of the current node as the new current node, and returning back to the step of traversing the subnodes under the current node based on the access tree; when the current node is the root node, returning back to the step of traversing the nodes of the access tree.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a testing method, device and system for a terminal application interface. Background technique [0002] Terminal application refers to the application program on the terminal. With the popularization of various smart terminals, there are more and more types of terminal applications. In order to verify the performance of terminal applications and optimize and improve terminal applications in time, users To obtain a better experience, it is necessary to test the terminal application interface. [0003] In the prior art, the terminal application interface is generally tested by traversing the controls. Taking the Android system as an example, since the terminal application interface in the Android system is generally composed of multiple components (Activities), it is possible to test each All the controls in the component are effectively traversed to test the performance of...

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
Inventor 邓曦
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products