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

A method and device for automatic testing of non-standard controls

An automated testing, non-standard technology, applied in the computer field, can solve problems such as resource waste and increase the burden of automated testing, and achieve the effects of reducing burden, saving resources, and improving efficiency

Active Publication Date: 2017-07-25
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The existing technology needs to dynamically calculate the coordinates of virtual objects in the interface. When the number of non-standard controls to be tested is relatively large, the number of virtual objects to be set and maintained will increase accordingly, and the workload of dynamically calculating coordinates will also increase accordingly. The burden of automated testing causes waste of resources

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 device for automatic testing of non-standard controls
  • A method and device for automatic testing of non-standard controls
  • A method and device for automatic testing of non-standard controls

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] see figure 2 , Embodiment 1 of the present invention provides an automated testing method for non-standard controls, the method comprising:

[0059] 101: Acquiring in advance a GUI image of a non-standard control to be tested in the software to be tested.

[0060] 102: According to the pre-acquired GUI image of the non-standard control to be tested, determine the actual display position of the GUI image of the non-standard control to be tested on the current screen.

[0061] 103: At the actual display position, simulate the user's operation on the GUI image of the non-standard control to be tested, so as to test the non-standard control to be tested.

[0062] The beneficial effect brought by the technical solution provided by the embodiment of the present invention is: by pre-acquiring the GUI image of the non-standard control to be tested in the software to be tested; according to the pre-acquired GUI image of the non-standard control to be tested, determine the Measu...

Embodiment 2

[0064] see image 3 , Embodiment 2 of the present invention provides an automated testing method for non-standard controls, the method comprising:

[0065] 201: Acquire in advance a GUI image of a non-standard control to be tested in the software to be tested.

[0066] Among them, the tester intends to test a software with non-standard controls. The tester should first obtain the GUI image of the non-standard control to be tested in the software to be tested.

[0067] Further, there are two acquisition methods. The first one is acquisition through the UI resource package of the software to be tested. Testers match the GUI image of the non-standard control to be tested from the UI resource pack of the software to be tested, and export the GUI image directly after the matching is successful.

[0068] The second type is obtained through image aids. First, the tester starts the software by clicking an icon or other means. After the software is started, a series of UI will be ...

Embodiment 3

[0098] see Figure 4 , Embodiment 3 of the present invention provides a non-standard control automatic testing device, the device includes:

[0099] The acquisition module 301 is configured to acquire in advance the GUI image of the non-standard control to be tested in the software to be tested.

[0100] The determination module 302 is configured to determine the actual display position of the GUI image of the non-standard control to be tested on the current screen according to the pre-acquired GUI image of the non-standard control to be tested.

[0101] The simulation module 303 is configured to simulate the user's operation on the GUI image of the non-standard control to be tested at the actual display position, so as to test the non-standard control to be tested.

[0102] The beneficial effect brought by the technical solution provided by the embodiment of the present invention is: by pre-acquiring the GUI image of the non-standard control to be tested in the software to be ...

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 non-standard control automatic testing method and device, which belong to the field of computers. The method includes: obtaining in advance the image user interface image of the non-standard control to be tested in the software to be tested; according to the pre-acquired image user interface image of the non-standard control to be tested, determining the image user The actual display position of the interface image on the current screen; at the actual display position, a user is simulated to operate the image user interface image of the non-standard control to be tested, so as to test the non-standard control to be tested. The device includes: an acquisition module, a determination module and a simulation module. Through the technical scheme of the invention, resources can be saved.

Description

technical field [0001] The invention relates to the field of computers, in particular to an automatic testing method and device for non-standard controls. Background technique [0002] Objects of UI (User Interface, user interface) automation testing mainly include controls based on GUI (Graphical User Interface, graphical user interface), such as buttons, text boxes, and check boxes. Controls are divided into standard controls and non-standard controls. Standard controls are provided by the API (Application Programming Interface, application programming interface) of the operating system; non-standard controls are drawn by each application provider themselves. [0003] At present, most UI automation testing tools only support testing standard controls, but cannot test non-standard controls. This is because these UI automation testing tools are implemented through the API and can only recognize the standard controls provided by the API. In order to test non-standard contr...

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): G06F11/36
Inventor 陈力李晓波
Owner TENCENT TECH (SHENZHEN) CO LTD