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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com