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

A testing method, device and system for a terminal application interface

A terminal application and test device technology, applied in the field of communication, can solve problems such as test errors, affecting the effectiveness of traversal, and inability to realize

Active Publication Date: 2018-04-27
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 0 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
  • A testing method, device and system for a terminal application interface
  • A testing method, device and system for a terminal application interface
  • A testing method, device and system for a 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 into 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 con...

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] List allElementsA=Get the leaf nodes of all the control lists of the current interface;

[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 ...

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 present invention discloses a testing method, device and system for a terminal application interface. The embodiment of the present invention can obtain the first control leaf node list of the current interface, determine the root node and establish an access tree, so that the first control leaf node list All the nodes in as the child nodes of the root node, determine the root node as the new current node, and then traverse the child nodes under the current node based on the access tree, after that, after obtaining the second control that is not equal to the leaf node list of the first control In the leaf node list, all the nodes in the leaf node list of the second control are used as the child nodes of the jump node, and the jump node is determined to be the current node. When the current node is not the root node and all the child nodes of the current node have been visited, Determine that the parent node of the current node is the new current node, and return to execute the step of traversing the child nodes under the current node based on the access tree; otherwise, return to execute the step of traversing the nodes in 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), each activity can be tested separately. All the controls in the component are effectively traversed to test the pe...

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
Inventor 邓曦
Owner TENCENT TECH (SHENZHEN) 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