User page testing method and device, electronic equipment and storage medium

A test method and page technology, applied in the field of image processing, can solve problems such as poor generalization ability, no unified acquisition of control tree, no unified scheme for dividing page types, etc.

Pending Publication Date: 2021-05-28
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] First of all, there is no unified solution for obtaining the control tree for different containe

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
  • User page testing method and device, electronic equipment and storage medium
  • User page testing method and device, electronic equipment and storage medium
  • User page testing method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] figure 1 It is a schematic flow chart of the user page testing method provided in Embodiment 1 of the present application. The method can be executed by the user page testing device or electronic equipment, and the device or electronic equipment can be implemented by software and / or hardware. The device Or the electronic device can be integrated in any smart device with network communication function. Such as figure 1 As shown, the testing method of the user page may include the following steps:

[0058] S101. Capture a screenshot of the current page.

[0059] In a specific embodiment of the present application, the electronic device may capture a screenshot of the current page. During the UI traversal process, first capture a screenshot of the current page and input it as the original screenshot. The current page here can be a page in different containers, including but not limited to: Native, WebView, applet, AR, and game.

[0060] S102. Obtain a control tree cor...

Embodiment 2

[0068] figure 2 It is a schematic flow chart of the user page testing method provided in Embodiment 2 of the present application. Such as figure 2 As shown, the testing method of the user page may include the following steps:

[0069] S201. Capture a screenshot of the current page.

[0070] In a specific embodiment of the present application, the electronic device may capture a screenshot of the current page. During the UI traversal process, first capture a screenshot of the current page and input it as the original screenshot. The current page here can be a page in different containers, including but not limited to: Native, WebView, applet, AR, and game.

[0071] S202. Perform image cutting on the screenshot of the current page to obtain multiple images in the current page.

[0072] In a specific embodiment of the present application, the electronic device may perform image cutting on the screenshot of the current page to obtain multiple images in the current page. Sp...

Embodiment 3

[0089] Figure 4 It is a schematic structural diagram of a testing device for a user page provided in Embodiment 3 of the present application. Such as Figure 4 As shown, the device 400 includes: an interception module 401, an acquisition module 402, a division module 403 and a test module 404; wherein,

[0090] The intercepting module 401 is configured to intercept a screenshot of the current page;

[0091] The obtaining module 402 is configured to obtain the control tree corresponding to the current page according to the screenshot of the current page;

[0092] The division module 403 is configured to divide the current page into corresponding page types according to the control tree corresponding to the current page;

[0093] The testing module 404 is configured to test the current page according to the page type corresponding to the current page.

[0094] Figure 5 It is a schematic structural diagram of the acquisition module provided in Embodiment 3 of the present a...

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 user page testing method and device, electronic equipment and a storage medium, and relates to a page testing technology. The specific implementation scheme comprises following steps of capturing a screenshot of a current page; obtaining a control tree corresponding to the current page according to the screenshot of the current page; according to the control tree corresponding to the current page, dividing the current page into a page type corresponding to the current page; and testing the current page according to the page type corresponding to the current page. According to the embodiment of the invention, a unified test method can be adopted for user pages of different containers, the generalization ability is high, and the test efficiency is higher.

Description

technical field [0001] The present application relates to the technical field of image processing, and further relates to page testing technology, especially a user page testing method, device, electronic equipment and storage medium. Background technique [0002] The existing technology is aimed at the control tree extraction, and there are containers such as Native, WebView, applet, AR and games on the mobile terminal. Under different containers, it is necessary to use different schemes to extract the control tree. The specific description is as follows: 1) Native, by calling the capabilities provided by the Android (android.framework) or iOS (UITest.framework) system, to obtain the control tree on the current page, Parse the control list; 2) WebView, through Chromdriver or ios-webkit, to obtain the dom control tree in the current page html. This solution requires the developer of the mobile APP to turn on the debugmode switch to additionally reveal the ability; 3) the sm...

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/36
CPCG06F11/3688Y02D10/00
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