Method and equipment for testing control in page
A technology of pages and devices, applied in the field of testing controls in pages, can solve problems such as low test efficiency, and achieve the effect of improving test efficiency and ensuring accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] Such as figure 1 As shown, it is a schematic flowchart of a method for testing controls in a page according to Embodiment 1 of the present application. The methods include:
[0032] Step 101: Scan the test page to obtain multiple image areas of the test page.
[0033] Wherein, each image area corresponds to a control and / or a component of the control.
[0034] Specifically, in step 101, firstly, a test page is acquired.
[0035] Display the page to be tested on either display. At this time, there is no requirement for the display screen, and the display screen size and display resolution may be known, or the display screen size and display resolution may not be known.
[0036] It should be noted that, the manner in which the page to be tested is displayed on the display screen is not limited, and may be full-screen display, maximized display, minimized display, and so on.
[0037] It should be noted that all content of the page to be tested can be displayed on the ...
Embodiment 2
[0095] Such as image 3 As shown, it is a schematic flowchart of a method for testing controls in a page in Embodiment 2 of the present invention. Embodiment 2 of the present invention is an invention under the same inventive concept as Embodiment 1 of the present invention. Embodiment 2 of the present invention It is described by taking the test of the login control as an example, and the method includes:
[0096] Step 201: training to obtain the corresponding relationship between the attributes of the controls and the image identifiers.
[0097] Specifically, in step 201, the corresponding relationship between the attributes of the controls on the page and the image identification is established through training, specifically including:
[0098] First, the Dom Tree of the test page is traversed to obtain control information of different controls from the Dom Tree.
[0099] Wherein, the control information includes the control type and components of the control.
[0100] S...
Embodiment 3
[0141] Such as Figure 4 As shown, it is a schematic structural diagram of a device for testing controls in a page according to Embodiment 3 of the present invention. Embodiment 3 of the present invention is a device under the same inventive concept as Embodiment 1 and Embodiment 2 of the present invention. , the device includes: a scan module 11, a search module 12, a comparison module 13 and a test module 14, wherein:
[0142] The scanning module 11 is configured to scan the test page to obtain multiple image areas of the test page, wherein each image area corresponds to a control and / or a component of the control.
[0143] The search module 12 is configured to search for an image identifier having the same attribute as the control to be tested according to the stored correspondence between the attribute of the control and the image identifier.
[0144] The comparison module 13 is configured to compare the similarity of each image region obtained by scanning with the image ...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com