Automatic testing method of QT-based application program

An automated testing and application technology, applied in the direction of software testing/debugging, can solve problems such as test failures and incorrect results, and achieve the effect of reducing the burden and the probability of errors

Inactive Publication Date: 2017-01-11
北京华大九天科技股份有限公司
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This testing method has some drawbacks: first, it requires testers to edit and parameterize the script; second, the playback process of the automated test is coordinate-sensitive, and the coordinate positions of the interface and its controls must be Consistent, otherwise it may lead to test failure or incorrect results; finally, for some non-standard controls in the interface, it needs to have a corresponding identification method

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 testing method of QT-based application program
  • Automatic testing method of QT-based application program
  • Automatic testing method of QT-based application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments.

[0028] The embodiment of the present invention provides a QT-based application automation testing method, see figure 1 , the method flow provided by this embodiment includes:

[0029] The first step is to record test cases.

[0030] by figure 2 Take the GUI application shown as an example. The application includes a button ButtonA and an edit control EditB. The control name of ButtonA is ButtonA, the class name is QPushButton, and the relative coordinate is P A , the control name of EditB is EditB, the class name is QLineEdit, and the relative coordinate is P B , the control name of the main interface of the application is MainDialog, and the class name is QDialog.

[0031] The tester's recording operation...

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 an automatic testing method of a QT-based application program, and belongs to the software automatic testing field. For a QT application program, a QT event is intercepted and captured in a recording process, related information of the event is recorded, and to-be-tested information in an application program running process is saved. In a playback process, the event information recorded in the recording process is analyzed, a unique control is found by using attribute information of the control, the QT event is simulated, and is sent to an event queue for automatic running, and the to-be-tested information in the application program running process is saved. Finally, a difference of the to-be-tested information in the recording process and in the playback process is compared. According to the method provided in the present invention, recording and playback operations can be completed by only simply running the application program, the playback process is coordinate insensitive, and a test result is not affected by a position change of the control in an interface. Further, the method uses a unified and effective control identifying method, to reduce burden and an error probability caused by identifying different controls.

Description

technical field [0001] The invention belongs to the field of software automation testing, in particular to a QT-based application program automation testing method. Background technique [0002] As the scale of computer software continues to expand, there are more and more graphical user interface (GUI, Graphical User Interface) applications. In order to ensure the reliability of software, manual testing or automated testing is usually performed for GUI applications. [0003] Since manual testing takes up a lot of time and energy of the testers and repeats tedious testing work, there are problems such as low testing efficiency, mistesting, and missed testing. Therefore, more and more GUI applications are quickly and comprehensively tested by means of automated testing technology, thereby improving software quality, shortening the software release cycle, and enabling testers to get rid of tedious repetitive testing work. [0004] At present, the widely used automated testin...

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 北京华大九天科技股份有限公司
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