Unlock instant, AI-driven research and patent intelligence for your innovation.

Graphical user interface automatic test method based on multiple positioning methods

A graphical user interface, automated testing technology, applied in user interface execution, software testing/debugging, error detection/correction, etc., can solve the problems of complex pages, unable to find controls, unsolved failure of non-browser applications to locate controls, etc. Enhanced script portability, improved test execution rate, avoided the effect of "pesticides" effect

Pending Publication Date: 2021-01-05
KYLIN CORP
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The controls to be tested are identified one by one so that each control to be tested has a unique identifier. This invention solves the problem that there is no control ID in the browser application page, the control IDs are all the same, or the control cannot be found because the page is too complicated, but it does not Unresolved issue where positioning controls would fail in non-browser apps

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
  • Graphical user interface automatic test method based on multiple positioning methods

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are exemplary only, and are not intended to limit the scope of the present invention. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present invention.

[0071] Such as figure 1 , in the embodiment of the present application, the present invention provides a graphical user interface automated testing method based on multiple positioning methods, the method comprising steps:

[0072] S1: Identify the system environment to be tested;

[0073] S2: judging whether the system environment to be tested meets the test requirements;

[0074] S3: If yes, execute the automated tes...

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 graphical user interface automatic test method based on multiple positioning methods. The method comprises the steps of identifying a to-be-tested system environment; judgingwhether the to-be-tested system environment meets test requirements or not; if yes, executing the automatic test script; if not, exiting the to-be-tested system environment, and outputting a test report; calling a positioning library corresponding to the to-be-tested element; carrying out element positioning by using a plurality of positioning methods in the positioning library; and outputting the test report according to a positioning result. The graphical user interface automatic testing method based on the multiple positioning methods has the following beneficial effects that (1) the graphical user interface automatic testing method can be applied to a domestic Kylin operating system, and the use objects of the Linux operating system graphical user interface automatic testing technology are enriched; and (2) a graphical user interface positioning mode is adopted, so that the script transportability is enhanced, the method can also be operated on arm, x86 and other architectures, and the application range of the test method is expanded.

Description

technical field [0001] The invention belongs to the technical field of graphical user interface automatic testing, and in particular relates to a graphical user interface automatic testing method based on multiple positioning methods. Background technique [0002] User interface automation testing is the process of converting human testing into machine execution. By locating each element of the user interface to simulate the mouse to achieve user operations such as clicking, right clicking, and dragging, and through the test program to judge the expected results, realize Automated testing of the application to be tested, in which positioning technology is the key technology for the realization of automated testing. [0003] The known positioning method of existing automated testing tools is relatively simple, and this single positioning method is easily disturbed by other factors. For example, the button attribute of the element is used for positioning. In the actual testin...

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/36G06F9/451
CPCG06F11/3664G06F11/3688G06F9/451
Inventor 王云浩唐晓东陈妮楚铁新吴德基张开封顾郁莲
Owner KYLIN CORP