A testing method, device and system for graphical interface application

A graphical interface and testing method technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., to solve problems such as inability to obtain the internal information of the software under test

Active Publication Date: 2019-01-29
SHENZHEN PANGO MICROSYST CO LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a testing method, device and system for graphic interface application to solve the problem that the existing testing method cannot obtain the internal information of the software under test

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 testing method, device and system for graphical interface application
  • A testing method, device and system for graphical interface application
  • A testing method, device and system for graphical interface application

Examples

Experimental program
Comparison scheme
Effect test

test Embodiment 2

[0030] figure 1 The schematic structural diagram of the test system provided for the first embodiment of the present invention is represented by figure 1 It can be seen that in this embodiment, the test system provided by the present invention includes: a test device 1 and a test case 2. When the test device 1 detects that the application to be tested is working, it embeds the test case 2 into the application to be tested; in the application to be tested, Use the test case to capture and record the input events of the application under test; in the application under test, use the test case to play back the input event and monitor whether the application under test is abnormal.

[0031] Such as figure 1 As shown, in some embodiments, the test device 1 of the graphical interface application in the above-mentioned embodiments includes:

[0032] The embedding module 11 is configured to embed the test case into the application to be tested when it is detected that the application...

no. 2 example

[0040] figure 2 The flow chart of the testing method provided for the second embodiment of the present invention, by figure 2 It can be seen that in this embodiment, the test method for graphical interface applications provided by the present invention includes:

[0041] S201: Embedding a test case into the application to be tested when it is detected that the application to be tested is working;

[0042] S202: In the application to be tested, use a test case to capture and record input events of the application to be tested;

[0043] S203: In the application to be tested, use the test case to play back the input event, and monitor whether the application to be tested is abnormal.

[0044] In some embodiments, the application to be tested in the above embodiments is a Qt-based graphical interface application, and the operation events include events generated by the window system of the application to be tested or Qt itself for responding to user input operations.

[0045]...

no. 3 example

[0050] This embodiment provides a kind of tool of automatic testing to the software written based on Qt; The test of software graphical interface is a troublesome problem, because there are a lot of user's interactive operation wherein, the error that these operations cause can't be easy to repeat usually It needs multiple manual attempts to confirm, and it is not conducive to the automated testing of software. The present invention saves the records in a file by recording the events generated by the software window system, replays these event records when the software is run next time, and simultaneously tries to capture whether there is any abnormality and report it out, thus achieving the goal of GUI automatic testing Purpose.

[0051]Specifically, the present embodiment provides a C++ test module (library) as a test case, which can be embedded in an application program to record or replay a series of events. The event is generated by the window system or Qt itself to respo...

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 provides a testing method, apparatus and system for a graphic interface application. The testing method comprises: when it is detected that a to-be-tested application operates, embedding a testing example into the to-be-tested application; in the to-be-tested application, capturing and recording an input event of the-be-tested application by using the testing example; and in the to-be-tested application, replaying the input event by using the testing example, and monitoring whether the to-be-tested application has an exception. By implementing the method, apparatus and system provided by the present invention, an internal record of an application can be embedded, or a series of events can be replayed, but implementation details are invisible to to-be-tested programs, and any interference will not be caused to the to-be-tested programs; and by recording events generated in a software window system, storing records in a file, replaying the event records when software is operated next time, and attempting to capture whether an exception is generated and reporting the exception, the purpose of a GUI automatic test is achieved.

Description

technical field [0001] The invention relates to the field of application testing, in particular to a testing method, device and system for graphical interface applications. Background technique [0002] Qt is a popular C++ graphical user interface framework, and many application software are developed based on Qt, both on Windows and Linux operating systems. Software needs to be continuously tested and improved during the development process. Unlike batch software testing, graphical interface testing is a troublesome problem for the software testing team, because there are many interactive operations by users, which cause Usually, the error cannot be easily reproduced and located, and it needs multiple manual attempts to confirm, which increases the workload of the tester and is not conducive to the automated testing of the software. [0003] Existing GUI (Graphical User Interface, graphical interface) testing tools record the behavior of the software under test from the ou...

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/30G06F11/36
CPCG06F11/302G06F11/3065G06F11/3466G06F11/3688
Inventor 杨若海黄国勇
Owner SHENZHEN PANGO MICROSYST 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