CN102830958B - A kind of method and system for obtaining interface control information - Google Patents
A kind of method and system for obtaining interface control information Download PDFInfo
- Publication number
- CN102830958B CN102830958B CN201110161998.XA CN201110161998A CN102830958B CN 102830958 B CN102830958 B CN 102830958B CN 201110161998 A CN201110161998 A CN 201110161998A CN 102830958 B CN102830958 B CN 102830958B
- Authority
- CN
- China
- Prior art keywords
- area
- image
- control
- selected area
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000012360 testing method Methods 0.000 abstract description 27
- 238000005070 sampling Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Landscapes
- Image Analysis (AREA)
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 features of the image of the selected area are 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
本发明涉及计算机技术领域,尤其涉及一种获取界面控件信息的方法及系统。The invention relates to the field of computer technology, in particular to a method and system for acquiring interface control information.
背景技术Background technique
随着计算机技术的飞速发展以及Windows系统的广泛应用,运行于Windows系统中的各种应用程序也越来越多,在Windows软件自动化测试中,需要以程序代替人来操作被测软件,所以程序需要得到窗口中某个控件的位置,再对其进行鼠标或键盘等操作。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.
Windows提供了获取标准控件信息的方法,如FindWindow、GetWindow、GetWindowRect等系统API(应用程序编程接口)都可以获取一个控件的特定信息,Windows窗口或标准控件有类名、文本等属性。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.
FindWindow函数可以通过窗口的文本和类名来得到窗口的句柄,GetWindow函数可以通过父窗口的句柄和控件的文本得到控件的句柄,GetWindowRect函数可以通过控件的句柄得到控件相对于屏幕的坐标信息,有了屏幕坐标信息,自动化测试程序就可以对其进行点击、焦点切换、按键等操作。The FindWindow function can get the handle of the window through the text and class name of the window. The GetWindow function can get the handle of the control through the handle of the parent window and the text of the control. The GetWindowRect function can get the coordinate information of the control relative to the screen through the handle of the control. After obtaining the screen coordinate information, the automated test program can perform clicks, focus switching, and key operations on it.
然而Windows图形界面中的控件不一定是以标准方式创建的,这种非标准控件无法或没有处理标准Windows消息,也可能不存在控件文本等属性,所以像FindWindow这类函数就无法满足需求了。非标准控件都有着独特的现实方式,可以深究其内部实现方式,或都得到控件开发方的支持,使控件接受特定的消息,从而返回相应的信息。但这种方法不够通用,每处理一种不同的非标准控件就要使用一种特定的方法,降低对系统自动化测试的开发效率。However, the controls in the Windows graphical interface are not necessarily created in a standard way. Such non-standard controls cannot or do not process standard Windows messages, and may not have properties such as control text, so functions such as FindWindow cannot meet the requirements. Non-standard controls have their own unique way of reality, you can go deep into their internal implementation, or get the support of the control developer, so that the control receives specific messages and returns corresponding information. However, this method is not universal enough. Every time a different non-standard control is processed, a specific method must be used, which reduces the development efficiency of system automation testing.
如图1所示的图形界面就是由一组非标准的控件组成,用常规方法无法确定其中复选框和按钮的位置。The graphical interface shown in Figure 1 is composed of a group of non-standard controls, and the positions of check boxes and buttons cannot be determined by conventional methods.
由于非标准控件的实现方法各有不同,因此当前需要一种针对Windows图形界面中非标准窗口控件的选取的技术方案,以达到在Windows系统下进行自动化测试的目的。Since the implementation methods of non-standard controls are different, there is currently a need for a technical solution for selecting non-standard window controls in the Windows graphical interface, so as to achieve the purpose of automatic testing under the Windows system.
发明内容Contents of the invention
本发明所要解决的技术问题是提供一种获取界面控件信息的方法及系统,解决了如何在Windows图形界面中选取需要的非标准窗口控件的问题,达到在Windows系统下进行自动化测试的目的。The technical problem to be solved by the present invention is to provide a method and system for obtaining interface control information, which solves the problem of how to select the required non-standard window control in the Windows graphical interface, and achieves the purpose of automatic testing under the Windows system.
为了解决上述问题,本发明提供了一种获取界面控件信息的方法,包括:In order to solve the above problems, the present invention provides a method for obtaining interface control information, including:
根据预设策略,在界面中选定一区域,并截取该区域的图像,其中所述选定区域与事先获得的包含待检测控件的区域一致;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 the pixel combination of the image in the selected area, obtain the pixel features of the image in the selected area according to a preset strategy;
根据所述选定区域图像的像素特征与按预设策略事先获得的包含待检测控件的区域图像的像素特征的比较结果,确定该选定区域内的界面控件的信息。The information of the interface control in the selected area is determined according to the comparison result of the pixel feature of the image of the selected area with the pixel feature of the image of the area containing the control to be detected obtained in advance according to a preset strategy.
进一步地,上述方法还可包括,所述按预设策略获取该区域图像的像素特征的步骤,包括:Further, the above method may also include, the step of obtaining the pixel features of the image of the region according to the preset strategy, including:
根据欲检测的控件的颜色确定目标像素值;Determine the target pixel value according to the color of the control to be detected;
计算所述目标像素值占所述选定区域图像的像素组合中的比例。calculating the proportion of the target pixel value in the pixel combination of the selected region image.
进一步地,上述方法还可包括,所述计算目标像素值占所述选定区域图像的像素组合中的比例的步骤,包括:Further, the above method may further include that the step of calculating the proportion of the target pixel value in the pixel combination of the selected region image includes:
将所述选定区域图像中各像素的值保存在一个数组中,遍历该数组,计算该数组中的目标像素值占数组总数的比例。The value of each pixel in the image of the selected area is stored in an array, the array is traversed, and the ratio of the target pixel value in the array to the total number of the array is calculated.
进一步地,上述方法还可包括,所述根据比较结果确定该选定区域内的界面控件的信息的步骤,包括:Further, the above method may further include, the step of determining the information of the interface controls in the selected area according to the comparison result, including:
根据事先获得包含待检测控件的区域图像中的目标像素值所占比例确定比例阈值;Determine the proportion threshold according to the proportion of the target pixel value in the region image containing the control to be detected obtained in advance;
当所述目标像素值占所述选定区域图像的像素组合中的比例达到所述阈值时,则确定该选定区域内出现了待检测控件。When the proportion of the target pixel value in the pixel combination of the selected area image reaches the threshold, it is determined that the control to be detected appears in the selected area.
进一步地,上述方法还可包括,计算所述目标像素值在所述选定区域图像中的分布特征;Further, the above method may further include calculating distribution characteristics of the target pixel value in the selected region image;
根据所述分布特征,确定所述待检测控件在所述选定区域中的位置。According to the distribution feature, the position of the control to be detected in the selected area is determined.
进一步地,上述方法还可包括,所述按预设策略获取该区域图像的像素特征的步骤,包括:Further, the above method may also include, the step of obtaining the pixel features of the image of the region according to the preset strategy, including:
对所述选定区域图像的像素组合形成的数据进行唯一性运算,获得唯一性结果。A unique operation is performed on the data formed by combining the pixels of the image in the selected area to obtain a unique result.
进一步地,上述方法还可包括,所述对所述选定区域图像的像素组合形成的数据进行唯一性运算的步骤,包括:Further, the above method may further include, the step of performing unique calculation on the data formed by combining the pixels of the selected area image, including:
将所述选定区域图像中各像素的值保存在一个数组中,将数组内的数据作为一个二进制数据串进行唯一性运算。The value of each pixel in the image of the selected area is stored in an array, and the data in the array is used as a binary data string for unique operation.
进一步地,上述方法还可包括,所述根据比较结果确定该选定区域内的界面控件的信息的步骤,包括:Further, the above method may further include, the step of determining the information of the interface controls in the selected area according to the comparison result, including:
根据预设策略事先获得包含待检测控件的区域图像中的像素组合形成的数据进行唯一性运算,并获得唯一性结果;According to the preset strategy, the data formed by the combination of pixels in the image of the area containing the control to be detected is obtained in advance, and the unique operation is performed, and the unique result is obtained;
当所述选定区域图像相对应的唯一性结果与所述包含待检测控件的区域图像相对应的唯一性结果一致时,则确定该选定区域内出现了待检测控件。When the uniqueness result corresponding to the image of the selected area is consistent with the uniqueness result corresponding to the image of the area containing the control to be detected, it is determined that the control to be detected appears in the selected area.
进一步地,上述方法还可包括,根据所述事先获得的包含待检测控件的区域图像中的控件位置,确定所述选定区域图像中的控件位置。Further, the above method may further include, according to the position of the control obtained in advance in the area image containing the control to be detected, determining the position of the control in the image of the selected area.
进一步地,上述方法还可包括,如果确定当前选定区域内未出现待检测控件,则将当前选定区域逐行或逐列平移一个像素后作为新的当前选定区域,再次获取该选定区域图像的像素特征。Further, the above method may further include, if it is determined that no control to be detected appears in the currently selected area, shifting the currently selected area by one pixel row by row or column by row as a new currently selected area, and obtaining the selected control again. Pixel features of the region image.
进一步地,上述方法还可包括,所述根据预设策略,在界面中选定一区域,并截取该区域的图像的步骤,包括:判断若待检测的控件在某区域出现的频率达到预设阈值,则根据该区域在界面中选定一区域,并截取该区域的图像。Further, the above method may further include, the step of selecting an area in the interface according to the preset strategy, and intercepting the image of the area, including: judging that if the frequency of the control to be detected in a certain area reaches the preset threshold, select an area in the interface according to this area, and intercept the image of this area.
进一步地,上述方法还可包括,所述确定该选定区域内的界面控件的信息的步骤,进一步包括:判断所获取的选定区域内界面控件的状态信息。Further, the above method may further include that the step of determining the information of the interface controls in the selected area further includes: judging the acquired status information of the interface controls in the selected area.
进一步地,上述方法还可包括,所述判断获取选定区域内界面控件的状态信息,包括:复选框是否被勾选或控件是否可用的信息。Further, the above method may further include that the judging acquires status information of the interface controls in the selected area, including information on whether the check box is checked or whether the control is available.
本发明还提供了一种获取界面控件信息的系统,包括:The present invention also provides a system for acquiring interface control information, including:
选定模块,用于根据预设策略,在界面中选定一个区域,并将该区域内的图像截取出来,其中所述选定区域与事先获得的包含待检测控件的区域一致;The selection module is used to select an area in the interface according to a preset strategy, and intercept the image in the area, wherein the selected area is consistent with the area containing the control to be detected obtained in advance;
特征获取模块,用于根据所述选定区域的图像的像素组合,按预设策略获取该选定区域图像的像素特征;A feature acquisition module, configured to acquire pixel features of the image in the selected area according to a preset strategy according to the pixel combination of the image in the selected area;
比较模块,用于根据所述选定区域图像的像素特征与按预设策略事先获得的包含待检测控件的区域图像的像素特征的比较结果,确定该选定区域内的界面控件的信息。The comparison module is used to determine the information of the interface controls in the selected area according to the comparison result of the pixel features of the image of the selected area and the pixel features of the image of the area containing the control to be detected obtained in advance according to a preset strategy.
进一步地,上述系统还可包括,所述特征获取模块,根据欲检测的控件的颜色确定目标像素值,并计算所述目标像素值占所述选定区域图像的像素组合中的比例作为所述像素特征。Further, the above system may further include, the feature acquiring module, determining the target pixel value according to the color of the control to be detected, and calculating the ratio of the target pixel value in the pixel combination of the selected region image as the pixel features.
进一步地,上述系统还可包括,所述比较模块,用于在所述目标像素值占所述包含待检测控件的区域图像中的比例与占所述选定区域图像中的比例的差值在预设范围内时,则确定该选定区域内出现了待检测控件。Further, the above-mentioned system may further include, the comparison module, configured to determine the difference between the ratio of the target pixel value in the region image containing the control to be detected and the ratio of the target pixel value in the selected region image. When it is within the preset range, it is determined that the control to be detected appears in the selected area.
进一步地,上述系统还可包括,所述特征获取模块,用于对所述选定区域图像的像素组合形成的数据进行唯一性运算,获得唯一性结果作为像素特征。Further, the above system may further include the feature acquisition module, configured to perform a unique operation on the data formed by combining pixels of the selected area image, and obtain a unique result as a pixel feature.
进一步地,上述系统还可包括,所述比较模块,用于比较所述事先获得的包含待检测控件的区域图像中的像素组合的唯一性运算结果与所述选定区域图像的像素组合的唯一性运算结果的一致性,如果一致则确定该选定区域内出现了待检测控件。Further, the above-mentioned system may further include the comparison module, which is used to compare the unique operation result of the combination of pixels in the region image containing the control to be detected obtained in advance with the uniqueness of the combination of pixels in the image of the selected region. The consistency of the results of the linear operation, if consistent, it is determined that the control to be detected appears in the selected area.
与现有技术相比,应用本发明,通过分析非标准窗口控件在屏幕的显示的图像的像素特征,并与按预设策略事先获得的包含待检测控件的区域图像的像素特征进行比较,进而可判断窗口内选定区域中是否出现了需要的控件,而且也可获取选定区域内控件的状态信息,实现了通过统一的方法对非标准窗口控件进行自动化测试的目的,减少了人的工作强度,具有现实意义。Compared with the prior art, applying the present invention, by analyzing the pixel characteristics of the image displayed on the screen of the non-standard window control, and comparing it with the pixel characteristics of the area image containing the control to be detected obtained in advance according to the preset strategy, and then It can judge whether the required control appears in the selected area of the window, and can also obtain the status information of the control in the selected area, realizing the purpose of automatic testing of non-standard window controls through a unified method, reducing human work Intensity, has practical significance.
附图说明Description of drawings
图1是当前的一组非标准控件的图形界面的示意图;Fig. 1 is a schematic diagram of a current graphical interface of a group of non-standard controls;
图2是本发明的获取界面控件信息的方法的流程示意图;Fig. 2 is a schematic flow chart of the method for obtaining interface control information of the present invention;
图3是本发明一实施方式“像素密度扫描方法”的流程示意图;Fig. 3 is a schematic flow chart of a "pixel density scanning method" according to an embodiment of the present invention;
图4是本发明的非标准控件的特征为某特殊颜色的图形界面的示意图;Fig. 4 is a schematic diagram of a graphical interface characterized by a special color of the non-standard control of the present invention;
图5是本发明的相同区域内且主体颜色相同的非标准控件的图形界面的示意图;Fig. 5 is a schematic diagram of a graphical interface of a non-standard control with the same body color in the same area of the present invention;
图6是本发明的在一个包含选定窗口区域的更大的区域中遍历查找与所需控件的数字摘要相同的区域的过程示意图;Fig. 6 is a schematic diagram of the process of traversing to find the same area as the digital summary of the desired control in a larger area including the selected window area of the present invention;
图7是本发明的获取界面控件信息的系统的示意图。Fig. 7 is a schematic diagram of a system for acquiring interface control information of the present invention.
具体实施方式detailed description
下面结合附图和具体实施方式对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
本申请的方法是建立在屏幕坐标系和窗口坐标系基础之上的。The method of this application is based on the screen coordinate system and the window coordinate system.
本申请中涉及如下概念:The following concepts are involved in this application:
屏幕坐标系是一个二维坐标系,屏幕左上角是坐标系原点,原点坐标记为(0,0),横坐标轴与屏幕上边框重合,从左到右坐标值递增,坐标单位为像素,纵坐标轴与屏幕右边框重合,坐标值从上到下递增,坐标单位为像素。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.
窗口坐标系与屏幕坐标系相似,横纵坐标均平行于屏幕边框,窗口左上角是坐标系原点,原点坐标记为(0,0),横坐标轴与窗口的上边框重合,从左到右坐标值递增,坐标单位为像素,纵坐标轴与窗口右边框重合,坐标值从上到下递增,坐标单位为像素。显然窗口坐标可以转换成屏幕坐标。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 of the coordinate system. The coordinates of the origin are marked as (0, 0). The abscissa axis coincides with the upper border of the window, from left to right The coordinate value increases, the coordinate unit is pixel, the vertical axis coincides with the right border of the window, the coordinate value increases from top to bottom, and the coordinate unit is pixel. Obviously window coordinates can be converted to screen coordinates.
本申请涉及的都是矩形区域,下文提到的区域都指矩形区域。可以用窗口坐标系中两个点的坐标描述一个矩形区域,这两个点分别是区域左上角和右下角。每个区域都可以表示为形如为(x1,y1,x2,y2)的四元组,其中(x1,y1)为左上角坐标,(x2,y2)为右下角坐标,设每个区域以像素为单位的宽为X,高为Y,后文的伪代码将用到这些设定。All the areas mentioned in this application are rectangular areas, and the areas mentioned below all refer to rectangular areas. A rectangular area can be described by the coordinates of two points in the window coordinate system, which are the upper left corner and the lower right corner of the area. Each area can be expressed as a quadruple of the shape (x1, y1, x2, y2), where (x1, y1) is the coordinates of the upper left corner, (x2, y2) is the coordinates of the lower right corner, and each area is set as The width in pixels is X, and the height is Y. These settings will be used in the pseudo-code below.
测试系统所要分析的选定区域在系统的配置文件中记录,因为窗口在屏幕上的位置是不确定的,所以在配置文件中记录的是控件在窗口坐标系中的位置。在测试系统运行时,再转换成实际的屏幕坐标。The selected area to be analyzed by the test system is recorded in the configuration file of the system. Because the position of the window on the screen is uncertain, the position of the control in the window coordinate system is recorded in the configuration file. When the test system is running, it is converted into actual screen coordinates.
MD5:英文全称Message Digest Algorithm 5,中文定义为消息摘要算法第5版,MD5算法将一段数字信息,通过其不可逆的字符串变换算法,产生了这段信息唯一的MD5信息摘要。不同的信息通过MD5计算出的摘要不可能相同,具体可参考RFC 1321协议。MD5: The English full name is Message Digest Algorithm 5, which is defined as the fifth edition of the message digest algorithm in Chinese. The MD5 algorithm converts a piece of digital information through its irreversible string transformation algorithm to generate the unique MD5 information digest of this piece of information. Digests calculated by MD5 for different information cannot be the same. For details, please refer to the RFC 1321 protocol.
控件:Windows图形界面的组成部分,可以接受键盘或鼠标等输入设备的输入,从而完成某个特定的功能,Windows系统中常见的控件有按钮、选项按钮、编辑框、列表框、滚动条和静态控件等。Control: A component of the Windows graphical interface that can accept input from input devices such as a keyboard or mouse to complete a specific function. Common controls in Windows systems include buttons, option buttons, edit boxes, list boxes, scroll bars, and static controls etc.
像素:图像在计算机中的最小组成单位,像素可以理解为图像中某一点的颜色的数值。Pixel: The smallest component unit of an image in a computer. A pixel can be understood as the value of the color of a certain point in the image.
由于非标准窗口控件的实现方法各有不同,所以不能从控件的内部运行机制入手,本申请另辟蹊径,通过分析非标准窗口控件在屏幕的显示的图像来获取控件中信息。Since the implementation methods of non-standard window controls are different, it is impossible to start from the internal operation mechanism of the control. This application finds a new way to obtain the information in the control by analyzing the image displayed on the screen of the non-standard window control.
本申请可以获取在Windows图形界面的非标准窗口控件中信息,进而可判断窗口内选定的矩形区域中是否出现了需要的控件;或者判断获取选定区域内控件的状态信息,包括如复选框是否被勾选或控件是否可用等信息。This application can obtain the information in the non-standard window control of the Windows graphical interface, and then can determine whether the required control appears in the selected rectangular area in the window; or determine and obtain the state information of the control in the selected area, including such as multi-selection Whether the box is checked or whether the control is available and so on.
如图2所示,本发明的一种获取界面控件信息的方法,包括以下步骤:As shown in Figure 2, a method for obtaining interface control information of the present invention includes the following steps:
步骤210、根据预设策略,在界面中选定一区域,并截取该区域的图像;Step 210, according to the preset strategy, select an area in the interface, and intercept the image of the area;
所要分析的选定区域在系统的配置文件中记录,因为窗口在屏幕上的位置是不确定的,所以在配置文件中记录的是控件在窗口坐标系中的位置。The selected area to be analyzed is recorded in the configuration file of the system. Because the position of the window on the screen is uncertain, what is recorded in the configuration file is the position of the control in the window coordinate system.
具体包括:在界面中选定一区域,将配置文件中记录的所需控件在窗口坐标系中的位置信息转换成实际的屏幕坐标的位置信息,并进行存储。It specifically includes: selecting an area in the interface, converting the position information of the desired control in the window coordinate system recorded in the configuration file into the actual screen coordinate position information, and storing it.
所述根据预设策略,在界面中选定一区域,并截取该区域的图像的步骤,具体包括:判断若待检测的控件在某区域出现的频率达到预设阈值,则根据该区域在界面中选定一区域,并截取该区域的图像,其中预设阈值例如设置为:待检测的控件出现的频率为50次或100次等,以实际情况而定,本发明并不限定。The step of selecting an area in the interface according to the preset strategy and intercepting the image of the area specifically includes: judging that if the frequency of the control to be detected in a certain area reaches the preset threshold, then according to the area in the interface An area is selected, and an image of the area is intercepted, wherein the preset threshold is set as: the frequency of the control to be detected is 50 times or 100 times, etc., depending on the actual situation, and the present invention is not limited.
值得注意的是:所述选定区域的范围与所述事先获得的包含待检测控件的区域的范围一致,即两区域可表现为面积相同。It is worth noting that the range of the selected area is consistent with the range of the previously obtained area containing the control to be detected, that is, the two areas may have the same area.
步骤220、根据所述选定区域的图像的像素组合,按预设策略获取该选定区域图像的像素特征;Step 220, according to the pixel combination of the image of the selected area, obtain the pixel features of the image of the selected area according to the preset strategy;
其中,选定区域图像的像素特征可以是该选定区域图像中某位置的像素特征,或者是整个选定区域图像的像素特征。Wherein, the pixel feature of the selected area image may be the pixel feature of a certain position in the selected area image, or the pixel feature of the entire selected area image.
具体地,可包括以下步骤:Specifically, the following steps may be included:
根据欲检测的控件的颜色确定目标像素值;Determine the target pixel value according to the color of the control to be detected;
计算所述目标像素值占所述选定区域图像的像素组合中的比例。calculating the proportion of the target pixel value in the pixel combination of the selected region image.
进一步包括:Further includes:
计算所述目标像素值在所述选定区域图像中的分布特征;calculating the distribution characteristics of the target pixel values in the selected region image;
根据所述分布特征,确定所述待检测控件在所述选定区域中的位置。According to the distribution feature, the position of the control to be detected in the selected area is determined.
在对是否出现控件做检测时,也可以检测到出现的具体位置,即可根据所述事先获得的包含待检测控件的区域图像中的控件位置,确定所述选定区域图像中的控件位置。When detecting whether a control appears, the specific position can also be detected, and the control position in the selected area image can be determined according to the control position in the area image containing the control to be detected obtained in advance.
其中,所述计算目标像素值占所述选定区域图像的像素组合中的比例的步骤,包括:Wherein, the step of calculating the ratio of the target pixel value to the pixel combination of the selected region image includes:
将所述选定区域图像中各像素的值保存在一个数组中,遍历该数组,计算该数组中的目标像素值占数组总数的比例。The value of each pixel in the image of the selected area is stored in an array, the array is traversed, and the ratio of the target pixel value in the array to the total number of the array is calculated.
或者,所述按预设策略获取该区域图像的像素特征,是通过对所述选定区域图像的像素组合形成的数据进行唯一性运算,获得唯一性结果。Alternatively, the acquisition of the pixel features of the region image according to a preset strategy is to obtain a unique result by performing a unique operation on data formed by combining pixels of the selected region image.
其中,所述对所述选定区域图像的像素组合形成的数据进行唯一性运算的步骤,包括:Wherein, the step of performing a unique operation on the data formed by combining the pixels of the selected area image includes:
将所述选定区域图像中各像素的值保存在一个数组中,将数组内的数据作为一个二进制数据串进行唯一性运算。The value of each pixel in the image of the selected area is stored in an array, and the data in the array is used as a binary data string for unique operation.
步骤230、根据所述选定区域图像的像素特征与按预设策略事先获得的包含待检测控件的区域图像的像素特征的比较结果,确定该选定区域内的界面控件的信息。Step 230: Determine the information of the interface controls in the selected area according to the comparison result of the pixel features of the image of the selected area and the pixel features of the image of the area containing the control to be detected obtained in advance according to a preset strategy.
所述根据比较结果确定该选定区域内的界面控件的信息的步骤,包括:The step of determining the information of the interface controls in the selected area according to the comparison result includes:
根据事先获得包含待检测控件的区域图像中的目标像素值所占比例确定比例阈值;Determine the proportion threshold according to the proportion of the target pixel value in the region image containing the control to be detected obtained in advance;
当所述目标像素值占所述选定区域图像的像素组合中的比例达到所述阈值时,则确定该选定区域内出现了待检测控件。When the proportion of the target pixel value in the pixel combination of the selected area image reaches the threshold, it is determined that the control to be detected appears in the selected area.
或者所述根据比较结果确定该选定区域内的界面控件的信息的步骤,包括:Or the step of determining the information of the interface controls in the selected area according to the comparison result includes:
根据预设策略事先获得包含待检测控件的区域图像中的像素组合形成的数据进行唯一性运算,并获得唯一性结果;According to the preset strategy, the data formed by the combination of pixels in the image of the area containing the control to be detected is obtained in advance, and the unique operation is performed, and the unique result is obtained;
当所述选定区域图像相对应的唯一性结果与所述包含待检测控件的区域图像相对应的唯一性结果一致时,则确定该选定区域内出现了待检测控件。When the uniqueness result corresponding to the image of the selected area is consistent with the uniqueness result corresponding to the image of the area containing the control to be detected, it is determined that the control to be detected appears in the selected area.
还可进一步包括:Can further include:
如果确定当前选定区域内未出现待检测控件,则将当前选定区域逐行或逐列平移一个像素后作为新的当前选定区域,再次获取该选定区域图像的像素特征。If it is determined that the control to be detected does not appear in the currently selected area, the currently selected area is shifted by one pixel row by row or column by row as a new currently selected area, and the pixel features of the image of the selected area are obtained again.
本发明的获取界面控件信息的方法一实施方式,如图3所示,包括以下步骤:An embodiment of the method for obtaining interface control information of the present invention, as shown in Figure 3, includes the following steps:
步骤310、测试系统选定窗口区域;Step 310, testing the selected window area of the system;
测试系统所要分析的选定区域在系统的配置文件中记录,因为窗口在屏幕上的位置是不确定的,所以在配置文件中记录的是控件在窗口坐标系中的位置。The selected area to be analyzed by the test system is recorded in the configuration file of the system. Because the position of the window on the screen is uncertain, the position of the control in the window coordinate system is recorded in the configuration file.
具体包括:所述测试系统选定窗口区域,将所述测试系统的配置文件中记录的所需控件在窗口坐标系中的位置信息转换成实际的屏幕坐标的位置信息,并进行存储。It specifically includes: the test system selects a window area, converts the position information of the required control in the window coordinate system recorded in the configuration file of the test system into the actual screen coordinate position information, and stores it.
步骤320、提取选定的窗口区域的图像,分析该图像中各控件像素的颜色值;Step 320, extracting the image of the selected window area, and analyzing the color value of each control pixel in the image;
通过Python Image Library类似的图像处理类库的方式将窗口中测试系统选定的区域内的图像提取出来。The image in the area selected by the test system in the window is extracted by means of an image processing class library similar to the Python Image Library.
提取出的图像由像素组成,每一个像素对应图像中的一个点,像素的值表示该点的颜色,如黄色对应一个值,红色对应另一个值,具体参见RFC 797协议,可以用一个32位整数来记录像素的值,本发明将这些被提取出的像素保存在数组中,以便后续分析。The extracted image is composed of pixels. Each pixel corresponds to a point in the image. The value of the pixel represents the color of the point. For example, yellow corresponds to one value, and red corresponds to another value. For details, refer to the RFC 797 protocol. A 32-bit An integer is used to record the value of the pixel, and the present invention saves these extracted pixels in an array for subsequent analysis.
步骤330、判断该图像的某控件像素中某颜色值是否达到预设比例值,如果是,则选定该控件为所需控件。Step 330 , judging whether a certain color value in a control pixel of the image reaches a preset ratio value, and if so, selecting the control as the required control.
具体步骤如下:测试系统将所述选定的窗口区域的图像中各像素的颜色值保存在一个数组中,遍历该数组,当该数组中的某颜色值占数组总数的比例达到预设比例值时,则确定该控件为选定控件。The specific steps are as follows: the test system saves the color value of each pixel in the image of the selected window area in an array, traverses the array, and when the ratio of a certain color value in the array to the total number of the array reaches the preset ratio value , the control is determined to be the selected control.
在实际测试中,如果测试系统需要对某个窗口控件进行某种操作,就需要判断在关注的窗口中,控件应该出现的区域内是否存在该控件,如果这个控件的特征为某种特殊的颜色,如图4所示,黄颜色是“同意并安装”按钮区别于其它控件的颜色,测试系统应先截取其应该出现的区域的图像,将图像中各像素的颜色值保存在一个数组中,测试系统遍历这个数组,当数组中的黄颜色值占数组总数的比例达到一定程度时,就认为在该区域中出现了“同意并安装”控件,否则该按钮没有出现。In the actual test, if the test system needs to perform certain operations on a certain window control, it needs to determine whether the control exists in the area where the control should appear in the window of interest. If the feature of this control is a special color , as shown in Figure 4, the yellow color is the color of the "Agree and Install" button that is different from other controls. The test system should first capture the image of the area where it should appear, and save the color value of each pixel in the image in an array. The test system traverses the array, and when the yellow color value in the array accounts for a certain percentage of the total number of the array, it is considered that the "agree and install" control appears in this area, otherwise the button does not appear.
该过程方式如下:The process works as follows:
该方法在本发明中称为“像素密度扫描方法”,其参数rect即测试系统选定的区域,featureColor指测试系统关注的控件的主体颜色,threshold是当主体颜色像素数占区域内所有像素数的比例为多少时可以确定控件存在的阈值。This method is called "pixel density scanning method" in the present invention, and its parameter rect is the area selected by the test system, featureColor refers to the main body color of the control that the test system pays attention to, and threshold is when the number of main color pixels accounts for the number of all pixels in the area What is the ratio of can determine the threshold of control existence.
进一步地,“像素密度扫描方法”的局限在于无法区分可以出现在相同区域内且主体颜色又相同的控件,为了解决这个问题,本发明又提出“MD5摘要判断方法”的实施方式。Furthermore, the "pixel density scanning method" is limited in that it cannot distinguish controls that can appear in the same area and have the same body color. In order to solve this problem, the present invention proposes an implementation of the "MD5 summary judgment method".
如图5所示:“开启”按钮和“关闭”按钮出现在相同的位置上,且同样是以文字的黑色作为标识颜色,所以在同一位置上采取“像素密度扫描方法”就不能判断当前出现的是关闭按钮还是开启按钮。As shown in Figure 5: the "Open" button and the "Close" button appear at the same position, and the black color of the text is also used as the identification color, so the "pixel density scanning method" at the same position cannot judge the current appearance. Is the close button or the open button.
“MD5摘要判断方法”的步骤如下:如果出现在相同区域内且主体颜色又相同的控件为多个时,即判断该图像的多个控件像素中某颜色值若达到预设比例值,则可以根据不同控件的数字摘要对控件进行识别,选定所需控件;The steps of "MD5 Summary Judgment Method" are as follows: If there are multiple controls that appear in the same area and have the same main body color, it is judged that if a certain color value in the multiple control pixels of the image reaches the preset ratio value, then it can be Identify the controls according to the digital summary of different controls, and select the required controls;
针对上述情况,根据不同控件的数字摘要对控件进行识别,选定所需控件,具体是通过以下步骤实现:In view of the above situation, the control is identified according to the digital summary of different controls, and the required control is selected, specifically through the following steps:
测试系统得到所述选定窗口中某控件区域的像素数组后,将数组内的数据作为一个二进制数据串,通过对得到的数据串进行计算,得到该数据串的数字摘要,根据数字摘要对不同的控件进行识别。After the test system obtains the pixel array of a certain control area in the selected window, the data in the array is used as a binary data string, and by calculating the obtained data string, the digital abstract of the data string is obtained, and different controls are identified.
其中主要是通过可用控件所在区域图像的MD5摘要作为控件的标识,测试系统取得了窗口中某区域的像素数组后,将数组内的数据作为一个二进制数据串,用MD5摘要方法对这个数据串进行计算,可得出数据串的数字摘要,由于不同控件的图像是不同的,因此其数字摘要也是不同的,由此可将它们区分开来,选定所需控件,采取相应的操作控制。Among them, the MD5 abstract of the image of the area where the control is located is mainly used as the identification of the control. After the test system obtains the pixel array of a certain area in the window, the data in the array is used as a binary data string, and the data string is processed by the MD5 abstract method. Calculation can get the digital summary of the data string. Since the images of different controls are different, the digital summary is also different, so they can be distinguished, the required control can be selected, and the corresponding operation control can be taken.
其中控件在选定区域内图像的数字摘要可以事先被计算出来,作为控件的标识摘要,保存在测试系统的数据库中。The digital summary of the image of the control in the selected area can be calculated in advance, and stored in the database of the test system as the identification summary of the control.
测试系统将选定区域的图像数字摘要与控件的标识摘要进行比较,如果一致,则说明控件出现在选定的区域内。The test system compares the digital digest of the image of the selected area with the identification digest of the control, and if they match, the control is present in the selected area.
值得注意的是:同一操作控制的控件可能以多种不同的外观被显示,所以控件的标识摘要不是单一的,可以是一组摘要。It is worth noting that the control controlled by the same operation may be displayed in multiple different appearances, so the identification summary of the control is not a single one, but can be a group of summaries.
进一步地,上述“MD5摘要判断方法”的局限是当控件的位置在选定区域内发生变化时,即使控件确实出现在了选定的区域中,这个区域的图像数字摘要也无法与控件的数字摘要相匹配。对于这种情况,本发明提供了解决方法,即在一个包含选定区域的更大的区域中查找与控件的数字摘要相同的子区域,如图6所示:Furthermore, the limitation of the above-mentioned "MD5 summary judgment method" is that when the position of the control changes in the selected area, even if the control does appear in the selected area, the digital summary of the image in this area cannot be compared with the digital content of the control. Digest matches. For this situation, the present invention provides a solution, that is, to find the same sub-area as the digital summary of the control in a larger area containing the selected area, as shown in Figure 6:
该方法包括:所述测试系统判断如果选定的窗口区域的图像中控件图像的数字摘要无法与所需控件的数字摘要相匹配,则在一个包含所述选定窗口区域的更大的区域中遍历查找与所需控件的数字摘要相同的区域,如果查找到,则确定该区域中控件为所需控件。The method includes: the testing system determining that if the digital digest of the control image in the image of the selected window area does not match the digital digest of the desired control, then in a larger area containing the selected window area Traversing to find an area identical to the numeric summary of the desired control, if found, determining that the control in this area is the desired control.
具体方法:所述测试系统将原选定窗口区域扩大一定的范围,该扩展区域范围可以包含原选定窗口区域,从扩展区域左上角开始,对与原选定窗口区域的长宽相同的取样区域计算数字摘要,判断如果取样区域的数字摘要与所需控件的标识摘要相同,则确定所需控件存在,否则,将取样区域向左平移一个像素,判断如果取样区域的右边界已经和扩展区域重合,则将取样区域向下平移一个像素,直到取样区域的右下角与扩展区域的右下角相重合结束。Specific method: the test system expands the original selected window area to a certain extent, and the expanded area range can include the originally selected window area, starting from the upper left corner of the expanded area, sampling the same length and width as the originally selected window area Calculate the digital summary of the area, and judge if the digital summary of the sampling area is the same as the identification summary of the required control, then determine that the required control exists; otherwise, shift the sampling area to the left by one pixel, and determine if the right boundary of the sampling area has been aligned with the extended area coincide, the sampling area will be shifted down by one pixel until the bottom right corner of the sampling area coincides with the bottom right corner of the expansion area.
如果在这个过程中取样区域的数字摘要与控件的数字摘要相同,则确定控件存在,否则这个过程将持续到取样区域的右下角与扩展区域的右下角相重合才能结束。If the digital summary of the sampling area is the same as that of the control during this process, it is determined that the control exists, otherwise this process will continue until the bottom right corner of the sampling area coincides with the bottom right corner of the expansion area.
该过程方式如下:The process works as follows:
其中,rect为原选定区域,ctrlMd5为控件的标识摘要。Among them, rect is the original selected area, and ctrlMd5 is the logo summary of the control.
“像素密度扫描法”和“MD5摘要判断法”同样可以判断出控件的状态。"Pixel density scanning method" and "MD5 summary judgment method" can also judge the state of the control.
当确定了控件在选定的区域中出现后,根据区域的MD5摘要来判断控件的状态。如下拉列表当前的值,复选框是否被选中等。When it is determined that the control appears in the selected area, the state of the control is judged according to the MD5 summary of the area. For example, the current value of the drop-down list, whether the check box is selected, etc.
一个单选按钮在被选中前和被选中后的图像是不同的,如选中前的图像为○ZIP,其MD5摘要为e1fb6b1310405f94cc92ce5ea2a8347d,选中后的图像为⊙ZIP,其MD5摘要:68c5bf356ad8a4f7508df4040acdff18。The images of a radio button before being selected are different from those after being selected. For example, the image before being selected is ○ZIP, and its MD5 summary is e1fb6b1310405f94cc92ce5ea2a8347d.
值得注意的是:在本发明中,主要是通过对对图像像素分析后,可以采用多种方法来计算图像的特征值。“像素密度扫描方法”和“MD5摘要判断方法”只是其中的两种实现方式;当然也可以通过其他实施方式获取界面控件信息,比如:计算数组HASH、边缘像素匹配或像素反转等实施方式,本发明对此不作限定。上述方式都是通过对界面图像特征的分析和比对,最终获取界面控件信息。It should be noted that in the present invention, after analyzing the image pixels, various methods can be used to calculate the feature value of the image. "Pixel density scanning method" and "MD5 summary judgment method" are just two of the implementation methods; of course, other implementation methods can also be used to obtain interface control information, such as: calculation array HASH, edge pixel matching or pixel inversion and other implementation methods, The present invention is not limited thereto. The above methods are all through analyzing and comparing the features of the interface images to finally obtain the information of the interface controls.
如图7所示,本发明还提供了一种获取界面控件信息的系统,包括:选定模块701、特征获取模块702和比较模块703,其中,As shown in Figure 7, the present invention also provides a system for acquiring interface control information, including: a selection module 701, a feature acquisition module 702 and a comparison module 703, wherein,
选定模块701,用于根据预设策略,在界面中选定一个区域,并将该区域内的图像截取出来,其中所述选定区域与事先获得的包含待检测控件的区域一致;The selection module 701 is configured to select an area in the interface according to a preset strategy, and intercept an image in the area, wherein the selected area is consistent with the area containing the control to be detected obtained in advance;
特征获取模块702,用于根据所述选定区域的图像的像素组合,按预设策略获取该选定区域图像的像素特征;A feature acquisition module 702, configured to acquire the pixel features of the image of the selected area according to the pixel combination of the image of the selected area according to a preset strategy;
比较模块703,用于根据所述选定区域图像的像素特征与按预设策略事先获得的包含待检测控件的区域图像的像素特征的比较结果,确定该选定区域内的界面控件的信息。The comparison module 703 is configured to determine the information of the interface controls in the selected area according to the comparison result of the pixel features of the selected area image and the pixel features of the area images containing the controls to be detected obtained in advance according to a preset strategy.
其中,所述特征获取模块702,根据欲检测的控件的颜色确定目标像素值,并计算所述目标像素值占所述选定区域图像的像素组合中的比例作为所述像素特征。Wherein, the feature acquisition module 702 determines the target pixel value according to the color of the control to be detected, and calculates the proportion of the target pixel value in the pixel combination of the selected region image as the pixel feature.
所述比较模块703,用于在所述目标像素值占所述包含待检测控件的区域图像中的比例与占所述选定区域图像中的比例的差值在预设范围内时,则确定该选定区域内出现了待检测控件。The comparison module 703 is configured to determine when the difference between the proportion of the target pixel value in the area image containing the control to be detected and the proportion in the selected area image is within a preset range A control to be inspected appears within the selected area.
在该实施方式中,本发明从另一角度对比较过程进行了描述。In this embodiment, the present invention describes the comparison process from another perspective.
所述特征获取模块702,用于对所述选定区域图像的像素组合形成的数据进行唯一性运算,获得唯一性结果作为像素特征。The feature acquisition module 702 is configured to perform a unique operation on the data formed by combining pixels of the selected area image, and obtain a unique result as a pixel feature.
所述比较模块703,用于比较所述事先获得的包含待检测控件的区域图像中的像素组合的唯一性运算结果与所述选定区域图像的像素组合的唯一性运算结果的一致性,如果一致则确定该选定区域内出现了待检测控件。The comparison module 703 is used to compare the consistency between the unique operation result of the pixel combination in the previously obtained region image containing the control to be detected and the uniqueness operation result of the pixel combination in the selected region image, if If it is consistent, it is determined that the control to be detected appears in the selected area.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉该技术的人在本发明所揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person familiar with the technology can easily think of changes or replacements within the technical scope disclosed in the present invention. , should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (21)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110161998.XA CN102830958B (en) | 2011-06-16 | 2011-06-16 | A kind of method and system for obtaining interface control information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110161998.XA CN102830958B (en) | 2011-06-16 | 2011-06-16 | A kind of method and system for obtaining interface control information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102830958A CN102830958A (en) | 2012-12-19 |
CN102830958B true CN102830958B (en) | 2017-11-24 |
Family
ID=47334110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110161998.XA Active CN102830958B (en) | 2011-06-16 | 2011-06-16 | A kind of method and system for obtaining interface control information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102830958B (en) |
Families Citing this family (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103135986B (en) * | 2013-01-25 | 2015-11-25 | 中国人民解放军装甲兵工程学院 | A kind of operation acquisition method and system |
CN104252410B (en) * | 2013-06-27 | 2017-12-22 | 阿里巴巴集团控股有限公司 | The method and apparatus that a kind of control in the page is tested |
CN103645890B (en) * | 2013-11-29 | 2017-12-01 | 北京奇虎科技有限公司 | A kind of method and apparatus for being used for orient control in graphical user interfaces |
CN105095236A (en) * | 2014-04-30 | 2015-11-25 | 优视科技有限公司 | Advertisement filtering method and device |
WO2015165245A1 (en) * | 2014-04-30 | 2015-11-05 | 广州市动景计算机科技有限公司 | Webpage data processing method and device |
CN104391797B (en) * | 2014-12-09 | 2017-11-10 | 北京奇虎科技有限公司 | The recognition methods of GUI controls and device |
CN104462979B (en) * | 2014-12-26 | 2017-11-07 | 深圳数字电视国家工程实验室股份有限公司 | The automation dynamic testing method and device of a kind of application program |
CN104636029A (en) * | 2014-12-31 | 2015-05-20 | 魅族科技(中国)有限公司 | Display control method and system for control |
CN104598282B (en) * | 2015-02-05 | 2017-10-27 | 广州华多网络科技有限公司 | A kind of control method for catching and equipment |
CN104615543A (en) * | 2015-02-12 | 2015-05-13 | 腾讯科技(深圳)有限公司 | Abnormal window program response detecting method and device |
CN104766198A (en) * | 2015-03-03 | 2015-07-08 | 包敬海 | Method for rapidly recognizing mail attachment |
CN104899146B (en) * | 2015-06-19 | 2018-04-24 | 安一恒通(北京)科技有限公司 | Software stability testing method and device based on image matching technology |
CN105740145B (en) * | 2016-01-27 | 2018-09-18 | 广州酷狗计算机科技有限公司 | The method and device of element in orient control |
CN106228191A (en) * | 2016-07-28 | 2016-12-14 | 努比亚技术有限公司 | A kind of control text overlength detection device and method |
CN106998489B (en) * | 2017-03-30 | 2018-07-06 | 武汉斗鱼网络科技有限公司 | A kind of focus is crossed the border searching method and device |
CN110765825A (en) * | 2018-07-27 | 2020-02-07 | 北京京东尚科信息技术有限公司 | Method and system for acquiring article placement state |
CN109522086B (en) * | 2018-11-29 | 2022-07-12 | 金蝶软件(中国)有限公司 | Operation method and device for window, computer device and readable storage medium |
CN109684225A (en) * | 2018-12-29 | 2019-04-26 | 广州云测信息技术有限公司 | A kind of method for testing software and device |
CN109753435B (en) * | 2018-12-29 | 2022-02-01 | 北京云测信息技术有限公司 | Software testing method and device |
CN110688308A (en) * | 2019-09-19 | 2020-01-14 | 广州虎牙科技有限公司 | Memory storage redundancy detection method and device, electronic equipment and readable storage medium |
CN111488499A (en) * | 2020-03-06 | 2020-08-04 | 北京健康之家科技有限公司 | Public opinion data processing method and device |
CN112163579A (en) * | 2020-09-30 | 2021-01-01 | 江苏安全技术职业学院 | Student thought report analysis system and method based on text semantic feature analysis |
CN113610836B (en) * | 2021-08-20 | 2024-12-17 | 山东能链控股有限公司 | Control configuration method and device, computer readable medium and electronic equipment |
CN114020267A (en) * | 2021-11-04 | 2022-02-08 | 四川启睿克科技有限公司 | Method for detecting RPA window control |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770578A (en) * | 2010-03-24 | 2010-07-07 | 上海交通大学 | Image Feature Extraction Method |
CN101866352A (en) * | 2010-05-28 | 2010-10-20 | 广东工业大学 | A Design Patent Retrieval Method Based on Image Content Analysis |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006268666A (en) * | 2005-03-25 | 2006-10-05 | Fujitsu Ltd | Automatic test system, automatic test method and program having correction function |
US20090083237A1 (en) * | 2007-09-20 | 2009-03-26 | Nokia Corporation | Method, Apparatus and Computer Program Product for Providing a Visual Search Interface |
CN101630286A (en) * | 2009-08-07 | 2010-01-20 | 金蝶软件(中国)有限公司 | Automatic testing method and automatic testing device |
US8762873B2 (en) * | 2009-10-26 | 2014-06-24 | Hewlett-Packard Development Company, L.P. | Graphical user interface component identification |
US9182981B2 (en) * | 2009-11-23 | 2015-11-10 | University Of Washington | Systems and methods for implementing pixel-based reverse engineering of interface structure |
US8549478B2 (en) * | 2009-12-02 | 2013-10-01 | Hewlett-Packard Development Company, L.P. | Graphical user interface input element identification |
CN101853157B (en) * | 2010-05-14 | 2013-04-10 | 中国科学院软件研究所 | Automatic identification method for application software GUI object |
-
2011
- 2011-06-16 CN CN201110161998.XA patent/CN102830958B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770578A (en) * | 2010-03-24 | 2010-07-07 | 上海交通大学 | Image Feature Extraction Method |
CN101866352A (en) * | 2010-05-28 | 2010-10-20 | 广东工业大学 | A Design Patent Retrieval Method Based on Image Content Analysis |
Non-Patent Citations (3)
Title |
---|
Sikuli: using GUI screenshots for search and automation;Tom Yeh et al.;《Proceeding UIST "09 Proceedings of the 22nd annual ACM symposium on User interface software and technology》;20091004;183-192 * |
一种基于MD5的近似图像检测算法研究;叶志伟 等;《计算机应用研究》;20100228;第27卷(第2期);第788-790页 * |
基于颜色内容的图像检索原理与方法;毛力 等;《情报科学》;20000630;第18卷(第6期);第552-555页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102830958A (en) | 2012-12-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102830958B (en) | A kind of method and system for obtaining interface control information | |
CN104391797B (en) | The recognition methods of GUI controls and device | |
CN104424482B (en) | Image processing equipment and image processing method | |
US20140189576A1 (en) | System and method for visual matching of application screenshots | |
US20140218385A1 (en) | System and method for visual segmentation of application screenshots | |
JP5867198B2 (en) | Area designation method and area designation apparatus | |
US10725892B2 (en) | Method and system for automated testing of a graphical user interface for customer devices | |
JP6491959B2 (en) | Information processing apparatus, information processing method, and program | |
US9804955B2 (en) | Method and apparatus for creating reference images for an automated test of software with a graphical user interface | |
CN106502533A (en) | A kind of screenshotss method and device | |
CN108121648B (en) | Interface error monitoring method | |
JP4242796B2 (en) | Image recognition method and image recognition apparatus | |
JP2008232968A (en) | Signal analysis apparatus, method and program | |
US10529453B2 (en) | Tool that analyzes image data and generates and displays a confidence indicator along with a cancer score | |
US20150170355A1 (en) | Wafer appearance inspection system and method of sensitivity threshold setting | |
JP4896909B2 (en) | Scenario generation apparatus and program | |
Ren et al. | Cross-device difference detector for mobile application gui compatibility testing | |
JP5855961B2 (en) | Image processing apparatus and image processing method | |
US11657489B2 (en) | Segmentation of continuous dynamic scans | |
CN114187658A (en) | Input operation identification method and equipment | |
JP2010271921A (en) | Skin area extraction method, skin area extraction device, and skin area extracting program | |
CN117853879A (en) | Mobile terminal application floating window barrier-free operability detection method based on computer vision | |
JP5934516B2 (en) | Inspection area display device and inspection area display method | |
JP7385192B2 (en) | Image processing device, image processing method, and computer program | |
JP2013164506A (en) | Manual preparation support device and manual preparation support method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing Patentee after: Beijing Qizhi Business Consulting Co.,Ltd. Address before: 100016 East unit, 4th floor, Zhaowei building, 14 Jiuxianqiao Road, Chaoyang District, Beijing Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220209 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing Patentee before: Beijing Qizhi Business Consulting Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220802 Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin Patentee after: 3600 Technology Group Co.,Ltd. Address before: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230627 Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: Beijing Hongxiang Technical Service Co.,Ltd. Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin Patentee before: 3600 Technology Group Co.,Ltd. |
|
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: Beijing 360 Zhiling Technology Co.,Ltd. Country or region after: China Address before: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee before: Beijing Hongxiang Technical Service Co.,Ltd. Country or region before: China |