Automatic nonstandard control testing method and device

An automated testing, non-standard technology, applied in the computer field, can solve the problems of increasing the burden of automated testing, waste of resources, etc., to save resources, reduce the burden, and improve efficiency.

Active Publication Date: 2013-10-30
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 25 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
  • Automatic nonstandard control testing method and device
  • Automatic nonstandard control testing method and device
  • Automatic nonstandard control testing method and device

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 an automatic nonstandard control testing method and device and belongs to the field of computers. The automatic nonstandard control testing method includes acquiring an image user interface image of a nonstandard control to be tested of software to be tested in advance; determining the practical display position of the image user interface image of the nonstandard control to be tested in a current screen according to the image user interface image of the nonstandard control to be tested acquired in advance; simulating users to operate the image user interface image of the nonstandard control to be tested at the practical display position so as to test the nonstandard control to be tested. The automatic nonstandard control testing device comprises an acquiring module, a determining module and a simulating module. The automatic nonstandard control testing method and device can save resources.

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