User-defined control acquiring method and device

An acquisition method and technology of an acquisition device are applied in the field of custom control acquisition, and can solve the problem that the precise position of the custom control cannot be obtained, etc.

Active Publication Date: 2015-03-25
BEIJING GRIDSUM TECH CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a method and device for obtaining a custom control to solve the problem that the precise position of the custom control cannot be obtained in the prior art

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-defined control acquiring method and device
  • User-defined control acquiring method and device
  • User-defined control acquiring method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.

[0023] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0024] It should be noted that the terms "fir...

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-defined control acquiring method and device used for automatically testing user interfaces. The user-defined control acquiring method includes acquiring query conditions of target controls which are user-defined controls to be acquired and used for inquiring the condition of the target controls; acquiring a parent window where the target controls are located; inquiring the controls meeting the query conditions by browsing sub-controls of the parent window, and utilizing the controls meeting the query conditions as the target controls; acquiring position attribute of the target controls after inquiring the target controls, wherein the position attribute is used for indicating the positions of the target controls; acquiring the position information of the target controls through the position attribute of the target controls. By the user-defined control acquiring method and device, the problem that accurate positions of the user-defined controls cannot be acquired in the prior art is solved, and the effect of acquiring the accurate positions of the user-defined controls is realized.

Description

technical field [0001] The invention relates to the field of automated testing, in particular to a method and device for acquiring a custom control. Background technique [0002] In the software user interface (UI) automated testing process, in order to accurately control the position of the mouse operation, there is a set of mechanisms for obtaining the position of the target control on the object under test. General UI automation tests usually use some tools to obtain the specific locations of these objects, for example: Spy++ in VisualStudio, or the WindowsInfo tool in AutoIt. However, these tools can only recognize the control types preset by the system. If there are user-defined control types on the interface, the precise position of the control cannot be obtained. [0003] For example, if figure 1 As shown, the "custom control" cannot be obtained through conventional tools, and the position of the control is obtained through its X, Y coordinates relative to the upper...

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/36
Inventor 宋兰
Owner BEIJING GRIDSUM TECH 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