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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


