GUI testing method based on UML activity diagrams

A testing method and technology of activity diagram, applied in the direction of software testing/debugging, etc., can solve the problems of long test time consumption and low test coverage rate, and achieve the effect of shortening the test time required, increasing the coverage rate, and reducing the number

Inactive Publication Date: 2014-04-16
EAST CHINA NORMAL UNIV
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to overcome the defects of low test coverage and long test time consumption in the prior art, the present invention provides a GUI automated test method based on UML activity diagrams

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
  • GUI testing method based on UML activity diagrams
  • GUI testing method based on UML activity diagrams

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be further described in detail in conjunction with the following specific embodiments and accompanying drawings. The process, conditions, experimental methods, etc. for implementing the present invention, except for the content specifically mentioned below, are common knowledge and common knowledge in this field, and the present invention has no special limitation content.

[0020] figure 1 It is a flowchart of a GUI testing method based on UML activity diagrams according to an embodiment of the present invention. Such as figure 1 As shown, the GUI testing method based on UML activity diagram of the present invention includes: user behavior modeling step S11, script library construction step S12, test script generation step S13, test execution step S14 and result analysis step S15. Each step is described in detail below.

[0021] User behavior modeling step S11 , in this step, according to software development requirements, the possible ope...

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 provides an automatic GUI testing method based on UML activity diagrams. The method includes the first step of carrying out user behavioral modeling, and carrying out modeling on possible operation behaviors of a user on a GUI to generate corresponding UML activity diagrams, the second step of establishing a script library, wherein the script library includes all functions and parameters needing to be called in the test executing process, and the functions and the parameters are in one-to-one correspondence with activities in the UML activity diagrams generated in the user behavioral modeling step, the third step of generating testing scripts, performing traversal on the UML activity diagrams generated in the user behavioral modeling step to obtain feasible execution sequences, and according to the execution sequences and the mapping relation between the UML activity diagrams and the function in the script library to generate the testing scripts, the fourth step of executing testing, calling the testing scripts to automatically execute the testing and recording execution process and execution results, and the fifth step of analyzing the results, obtaining the testing coverage rate according to the execution results of the corresponding scripts, and analyzing occurrence reasons of program errors through playback.

Description

technical field [0001] The invention relates to a testing method for a graphical user interface (GUI), in particular to a GUI testing method based on a UML (Unified Modeling Language, Unified Modeling Language) activity diagram. Background technique [0002] At present, there are two commonly used GUI testing methods, namely recording / replaying and random testing. [0003] Recording / playback means that experienced testers manually execute the test process, and use relevant tools to record the execution process of the program to be tested. Once a program execution error occurs, the cause of the problem can be found out by replaying the test process. However, the effectiveness of recording / playback testing depends on the experience of testers, it is difficult to guarantee test coverage, and it also requires a lot of labor. As programs become more complex and the industry is under increasing pressure to bring products to market as quickly as possible, the traditional method of...

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 EAST CHINA NORMAL UNIV
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