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

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

Active Publication Date: 2014-12-31
ALIBABA GRP HLDG LTD
View PDF4 Cites 43 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The embodiment of the present application provides a method and device for testing the controls in the page, which are used to solve the problem of low test efficiency when testing the controls displayed on the web page

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 and equipment for testing control in page
  • Method and equipment for testing control in page
  • Method and equipment for testing control in page

Examples

Experimental program
Comparison scheme
Effect test

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

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 invention discloses a method and equipment for testing a control in a page. The method comprises the following content that a test page is scanned to obtain a plurality of image regions of the test page, an image mark identical to an attribute of a control to be tested is found according to the stored corresponding relationship between the attribute of the control and the image mark, each image region obtained through scanning is respectively subjected to similarity comparison with the image region corresponding to the found image mark, and in addition, the attribute of the image region obtained through scanning with the similarity greater than the set threshold is tested, so during the test page scanning, the size and the resolution of a display screen do not need to be considered, the image region corresponding to the found image mark is subjected to similarity comparison with the image region obtained through scanning, the position region of the control to be tested can be fast found, the found position region is tested, the position accuracy of the control to be tested is ensured, and the test efficiency of the control is also improved.

Description

technical field [0001] The present application relates to the field of Internet information processing, in particular to a method and device for testing controls in a page. Background technique [0002] With the continuous development of Internet technology, the content of various websites on the Internet is rich and colorful. When the content of each website is loaded and displayed, it needs a lot of background script support. However, when the script is running, due to hardware or software conditions, it may Causes errors when displaying the web pages of the website, therefore, the website operator needs to test the published website in real time to ensure that the running website works normally. [0003] The current mainstream website automation testing methods mainly include two categories: [0004] The first type of method is: automatic detection through the position coordinates of the measured object on the screen. For example: the representative method is: autoit me...

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/36G06F17/30
Inventor 栗志果
Owner ALIBABA GRP HLDG LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More