User interface traversal test method and device, server and storage medium

A technology of user interface and traversal testing, applied in software testing/debugging, instrumentation, error detection/correction, etc., can solve the time-consuming problems of traversal testing methods, and achieve the effect of solving time-consuming

Active Publication Date: 2017-12-08
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF10 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a user interface traversal test method, device, server, and storage medium, so as to solve the time-consuming problem in the existing user interface traversal test method

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 interface traversal test method and device, server and storage medium
  • User interface traversal test method and device, server and storage medium
  • User interface traversal test method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] Figure 1a It is a flowchart of the user interface traversal testing method in Embodiment 1 of the present invention. This embodiment is applicable to the situation of performing traversal testing on the user interface. The method can be executed by a user interface traversal testing device, and the user interface traversal testing device can It is realized by means of software and / or hardware. For example, the user interface traversal testing device can be configured in a server. Such as Figure 1a As shown, the method specifically includes:

[0027] S110. Split the user interface traversal task into multiple sub-traversal tasks according to the page characteristics of the user interface.

[0028] When the user interface needs to be tested, the user interface traversal task can be triggered through the application programming interface or Jenkins. After the user interface traversal task is triggered, firstly, the user interface traversal task is divided into multiple ...

Embodiment 2

[0039] Figure 2a It is a flow chart of the user interface traversal testing method in the second embodiment of the present invention, and this embodiment is further optimized on the basis of the first embodiment. Such as Figure 2a As shown, the method includes:

[0040] S210. Acquire a control structure tree of the user interface according to the page characteristics of the user interface.

[0041] In this embodiment, when the user interface traversal task is triggered, the control structure tree of the user interface is acquired. Wherein there are multiple methods for obtaining the control structure tree of the user interface, as a preferred method of this embodiment, the xml structure file of the current page can be obtained by means of dump from the mobile device on which the APP to be tested has been installed, the xml The structure file contains the overall layout of the current page on the mobile device, and is composed of layout controls and user interface controls...

Embodiment 3

[0051] image 3 It is a flow chart of the user interface traversal testing method in Embodiment 3 of the present invention, and this embodiment is further optimized on the basis of the foregoing embodiments. Such as image 3 As shown, the method includes:

[0052] S310. Acquire at least one specific page in the user interface, and use the at least one specific page as a page entry for executing the user interface traversal task.

[0053] In this embodiment, when the user interface traversal task is triggered, the page attribute of the user interface is acquired. Among all the pages included in the user interface, some pages belong to specific pages and can be directly located in a specific way. For example, for both IOS and Android, you can directly locate some specific pages through the open scheme method. When performing user interface traversal tasks, you can obtain specific pages that can be directly located in this specific way, and use these specific pages Pages serv...

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 a user interface traversal test method and device, a server and a storage medium. The method includes the steps of dividing a user interface traversal task into multiple subsidiary traversal tasks according to page characteristics of a user interface; performing the subsidiary traversal tasks to complete a user interface traversal test separately. According to the method, the multiple subsidiary traversal tasks can simultaneously run on multiple devices when the user interface traversal test is conducted, concurrent automation processing of the user interface traversal test is completed, and the problem is solved that much time is consumed in existing user interface traversal test methods.

Description

technical field [0001] Embodiments of the present invention relate to software testing technology, and in particular to a user interface traversal testing method, device, server, and storage medium. Background technique [0002] With the wide application of mobile smart terminals, mobile terminals are developing in the direction of function enhancement, multi-mode, customization, and platform openness, while mobile application service APPs developed based on Android system or IOS system are affecting and changing people life. After the development of each APP, in order to avoid problems such as failure to respond to a certain function, user interface jump failure, or logic errors when users use it, it is necessary to perform a traversal test on the developed APP. [0003] The current user interface traversal testing methods are mainly divided into depth traversal and breadth traversal, using a depth-first search algorithm or a breadth-first search algorithm to enter each pa...

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 & AuthorityApplications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor汪世涛陈鲁
OwnerBAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD