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

A method and system for acquiring interface control information

A technology of interface control and interface, which is applied in the computer field to achieve the effect of reducing work intensity

Active Publication Date: 2017-11-24
北京鸿享技术服务有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem to be solved by the present invention is to provide a method and system for obtaining interface control information, solve the problem of how to select the required non-standard window control in the Windows graphical interface, and achieve the purpose of automatic testing under the Windows system

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
  • A method and system for acquiring interface control information
  • A method and system for acquiring interface control information
  • A method and system for acquiring interface control information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0052] The method of this application is based on the screen coordinate system and the window coordinate system.

[0053] The following concepts are involved in this application:

[0054] The screen coordinate system is a two-dimensional coordinate system. The upper left corner of the screen is the origin of the coordinate system. The coordinates of the origin are marked as (0, 0). The abscissa axis coincides with the upper frame of the screen. The coordinate value increases from left to right. The vertical axis coincides with the right border of the screen, the coordinate value increases from top to bottom, and the coordinate unit is pixel.

[0055] The window coordinate system is similar to the screen coordinate system. The horizontal and vertical coordinates are parallel to the screen frame. The upper left corner of the window is the origin...

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

A method and system for obtaining interface control information, comprising: selecting an area in the interface according to a preset strategy, and intercepting an image of the area, wherein the selected area is consistent with the previously obtained area containing the control to be detected; according to According to the pixel combination of the image of the selected area, the pixel feature of the image of the selected area is obtained according to the preset strategy; according to the pixel feature of the image of the selected area and the pixel feature of the image of the area containing the control to be detected obtained in advance according to the preset strategy Compare the results to determine the information of the interface controls in the selected area. By applying the present invention, by analyzing the pixel characteristics of the image of the non-standard window control and comparing it with the pixel characteristics of the region image containing the control to be detected obtained in advance according to the preset strategy, it can be judged whether there is a The required controls can also obtain the status information of the controls in the selected area, realizing the purpose of automatic testing of non-standard window controls through a unified method.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for acquiring interface control information. Background technique [0002] With the rapid development of computer technology and the wide application of Windows system, there are more and more various application programs running on Windows system. In the automated testing of Windows software, it is necessary to use programs instead of people to operate the software under test, so the program It is necessary to get the position of a certain control in the window, and then perform mouse or keyboard operations on it. [0003] Windows provides methods for obtaining standard control information, such as FindWindow, GetWindow, GetWindowRect and other system APIs (application programming interfaces) that can obtain specific information of a control. Windows windows or standard controls have properties such as class name and text. [0004] The FindWindow function ...

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 Patents(China)
IPC IPC(8): G06F9/44
Inventor 冯刚金京
Owner 北京鸿享技术服务有限公司