Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for testing graphical user interface

A technology of graphical user interface and testing method, applied in the direction of software testing/debugging, can solve the problems of cumbersome and huge workload, and achieve the effect of improving test accuracy, reducing maintenance, and high test coverage.

Inactive Publication Date: 2010-02-24
HUAWEI DIGITAL TECH (CHENGDU) CO LTD
View PDF0 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] During the research and practice of the prior art, the inventors of the present invention found that the method of the prior art 2 reduces the workload of developing and modifying the test logic, but because the testers need to maintain a large amount of test data, its The workload is also tedious and huge

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
  • Method and apparatus for testing graphical user interface
  • Method and apparatus for testing graphical user interface
  • Method and apparatus for testing graphical user interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0077] Embodiment 2, a graphical user interface control testing device, the structural diagram is as follows Image 6 shown, including:

[0078] The first unit 610 is configured to search for the control object to be tested according to the control name;

[0079] The second unit 620 is configured to identify the control category corresponding to the control object found by the first unit 610;

[0080] The third unit 630 is configured to acquire random test data according to the categories of controls identified by the second unit 620 and use the acquired random test data to test the controls.

[0081] Wherein, the controls found by the second unit are classified as: controls with index numbers;

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 present invention discloses a method and apparatus for testing graphical user interface. According to the embodiment of the invention, GUI controls are assorted, and a control object to be testedis searched according to a control name; a corresponding control type of the control object is recognized; and random testing data are obtained according to the control type obtained by the recognition and the control is tested by using the accidental testing data. Automatic tests are applied to the GUI controls by using random numbers, such that the maintenance of a data pool is reduced comparedwith a tranditional data drive mode, and the expandability and maintenability of GUI automatization embodiments are improved. The testing data are generated randomly, and a testing coverage rate is linearly increased along with times of performing the test embodiments, thereby, compared with tranditional static testing embodiment, the more the testing times are, the higher the testing coverage rate is, the easier a complete test is performed, which improve testing accuracy.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a graphical user interface testing method and testing device. Background technique [0002] With the widespread application of GUI (Graphical User Interface) in software, GUI has become an indispensable way for users to interact with software, and testing theories and techniques specifically for GUI have emerged as the times require. GUI automated testing technology is to use scripts to simulate human manual testing, so as to reduce the labor load of manual testing and improve software quality. [0003] A GUI testing method in prior art 1 is an automated test based on a recording / playback mechanism, specifically: use a testing tool to quickly record the entire testing process, and the script recorded last time can be executed to playback the entire testing process during the next test, In order to achieve the purpose of test automation. [0004] And this GUI test metho...

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 HUAWEI DIGITAL TECH (CHENGDU) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products