User interface element object identification and automatic test method and apparatus
An automated testing and user interface technology, applied in software testing/debugging, etc., can solve problems such as the inability to automatically build a page element object library, the difficulty of locating elements, and the inability to locate elements, so as to achieve convenient, fast and accurate identification, unified management, and shorten construction The effect of saving time and human resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] Embodiment 1, user interface element object recognition method, see figure 1 The user interface element object recognition method described in this embodiment specifically includes:
[0027] S100. Analyzing the user interface to acquire attribute information of the element object;
[0028] This embodiment needs to obtain the attribute information of the element object when parsing a given user interface. The attribute information of the element object described in this embodiment includes three categories: the basic attribute of the element object, the custom attribute of the element object, and the element object in the document. The path information in , that is, XPath information. For an HTML element object, it contains basic attributes and custom attributes. Among them, the basic attributes of the element object include Id, Name, Class, Css, Value, etc.; the custom attributes of the element object are generally to meet some special requirements of the developer. T...
Embodiment 2
[0059] Embodiment 2, user interface element object recognition device, combined below image 3 The device of this embodiment will be described.
[0060] image 3 The shown device mainly includes: an analysis and acquisition unit 300 , a classification unit 310 , and a storage unit 320 . The classification unit 310 is connected to the analysis and acquisition unit 300 and the storage unit 320 . Wherein, the parsing and obtaining unit 300 further includes: a traverse and mark subunit 3010 and a storage subunit 3020 .
[0061] Wherein, the parsing and obtaining unit 300 is mainly suitable for parsing the user interface and obtaining attribute information of element objects;
[0062] In this embodiment, when analyzing a given user interface, the analysis and acquisition unit 300 acquires attribute information of element objects. The attribute information of element objects in this embodiment includes three types: basic attributes of element objects, custom attributes of element...
Embodiment 3
[0073] Embodiment 3, a method for automated testing of a user interface. Combine below Figure 4 The method of this embodiment will be described.
[0074] figure 1 In, S400, analyze the user interface, and obtain the attribute information of the element object;
[0075] This embodiment needs to obtain the attribute information of the element object when parsing a given user interface. The attribute information of the element object described in this embodiment includes three categories: the basic attribute of the element object, the custom attribute of the element object, and the element object in the document. The path information in , that is, XPath information. For an HTML element object, it contains basic attributes and custom attributes. Among them, the basic attributes of the element object include Id, Name, Class, Css, Value, etc.; the custom attributes of the element object are generally to meet some special requirements of the developer. The required "key-value", ...
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