Interface test method, device, equipment and medium

An interface testing and interface technology, applied in program control devices, user interface execution, software testing/debugging, etc., can solve the problems of high cost, difficult to identify, and difficult to abstract features, achieve high accuracy, reduce testing costs, improve The effect of stability

Pending Publication Date: 2020-12-15
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It is difficult to identify whether there are control occlusions after rendering
Moreover, for some highly customized hybrid apps, the existing tools may fail to obtain the DOM tree, and the stability is poor.
[0011] Solution (3) uses the traditional machine learning method. On the one hand, the co

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
  • Interface test method, device, equipment and medium
  • Interface test method, device, equipment and medium
  • Interface test method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] figure 1 It is a flowchart of an interface testing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of abnormal testing of the user interface style. The method can be executed by an interface testing device, and the device can be realized by software and / or hardware. see figure 1 , the interface testing method provided in this embodiment includes:

[0047] S110. Identify the function information area in the interface to be tested.

[0048] Wherein, the screenshot of the interface to be tested is an intercepted image of the interface to be tested.

[0049] The functional information area is the area to which the functional information belongs in the functional areas included in the interface to be tested.

[0050] The functional area is the area used to realize a certain function in the interface to be tested. For example, the first line in the People Encyclopedia interface is the functional area for describing the...

Embodiment 2

[0087] figure 2 It is a flowchart of an interface testing method provided by Embodiment 2 of the present invention. This embodiment is an optional solution proposed on the basis of the foregoing embodiments. see figure 2 , the interface testing method provided in this embodiment includes:

[0088] S210. Based on the background color of the interface to be tested, extract valid information areas in the interface to be tested.

[0089] Wherein, the effective information area refers to an area including effective information. Specifically, the effective information area may be a text area, an image area, a punctuation area, and the like.

[0090] Specifically, the extracting the effective information area in the interface to be tested based on the background color of the interface to be tested includes:

[0091] Determine the background color of the interface to be tested according to the pixel value of the screenshot of the interface to be tested;

[0092] Traversing the...

Embodiment 3

[0117] image 3 It is a flowchart of an interface testing method provided by Embodiment 3 of the present invention. This embodiment is an optional solution proposed on the basis of the foregoing embodiments. see image 3 , the interface testing method provided in this embodiment includes:

[0118] S310. Identify the function information area in the interface to be tested.

[0119] S320. Determine the position coordinates of the function information area in the set coordinate system.

[0120] Specifically, the set coordinates may be any coordinate system.

[0121] Typically, the set coordinate system is the same as the image coordinate system of the screenshot of the interface to be tested.

[0122] Usually, the coordinate system of the screenshot of the interface to be tested takes the upper left corner of the image as the origin, extends to the right as the positive semi-axis of the x-axis, and extends downwards as the positive semi-axis of the y-axis.

[0123] Optional...

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 invention discloses an interface test method and device, equipment and a medium. The method comprises the steps of recognizing a functional information area in a to-be-tested interface; determining a mathematical model of the to-be-tested interface based on the position information of the function information area; and matching the mathematical model of the to-be-tested interface with a reference mathematical model of a scene to which the to-be-tested interface belongs, and determining whether the to-be-tested interface is abnormal or not according to a matching result. The embodiment of the invention provides an interface test method and device, equipment and a medium, and realizes comprehensive and efficient detection of an interface problem on the premise of not needing clear UI reference.

Description

technical field [0001] The embodiments of the present invention relate to the field of user interface display, and in particular to an interface testing method, device, equipment and medium. Background technique [0002] Testing can be divided into back-end testing and front-end testing. For backend testing, both input and output are comparable base data. Whether it is abnormal can be judged by logical data comparison. [0003] For front-end testing, the logical UI (User Interface, user interface) style is complex and changeable, and different systems and different applications also perform differently, so it is difficult to describe it intuitively with data. Therefore, it is usually manual to find front-end display problems. [0004] For the automatic testing of UI style, the following three solutions are generally adopted at present: [0005] (1) An image difference (diff) scheme based on a reference object. This solution is used in scenarios where there is a clear UI...

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
IPC IPC(8): G06F11/36G06F9/451
CPCG06F11/3668G06F9/451
Inventor 周琦超刘道伟吕凌飞尹飞薛大伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products