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

Method and system for automatically generating test use case based on unified modeling language activity graph

A test case and modeling language technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as failure to generate test cases

Inactive Publication Date: 2009-06-24
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF0 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to propose a method and system for automatically generating test cases based on the unified modeling language activity diagram, so as to solve the problem that test cases cannot be generated in combination with scenarios

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 system for automatically generating test use case based on unified modeling language activity graph
  • Method and system for automatically generating test use case based on unified modeling language activity graph
  • Method and system for automatically generating test use case based on unified modeling language activity graph

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] figure 1 It is a flow chart of Embodiment 1 of the method for automatically generating test cases based on the unified modeling language activity diagram of the present invention, including:

[0023] Step 11, converting the UML activity diagram into a set comprising a node set and an edge set, the UML activity diagram is used to describe the required activities of the software under test and the constraints between the activities;

[0024] Step 12, extracting the path from the start node to the leaf node from the node set to obtain the path set;

[0025] Step 13, taking the edge set and the path set in the set as test cases.

[0026] UML is a language for visual modeling of software-intensive systems. For example, a standard language for describing, visualizing, and documenting the products of an object-oriented development system is UML. UML is a standard graphical representation, it is not object-oriented analysis and design, nor is it a method, it is just a set of...

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 relates to a method and a system based on a test case generated automatically by a unified modeling language activity diagram, wherein, the method comprises steps as follows: the unified modeling language activity diagram is converted to a set consisting of a node set and an edge set; the unified modeling language activity diagram is used to describe the operating procedure of a software to be tested; a path from a start node to a leaf node is extracted from the node set to get a path set; and the edge node and the path node in the set are used as the test case. The system comprises a converting module, an extracting module and a generating module. By adopting the scheme, the operation procedure of the software to be tested is shown by the UML activity diagram, the UML activity diagram is converted to the set, and the test case is generated by the combination of the scheme and a scene, therefore, the problem that the test case can't be generated through the combination of the prior art and the scene is solved.

Description

technical field [0001] The present invention relates to the technical field of software testing, in particular to a method and system for automatically generating test cases based on Unified Modeling Language (Unified Modeling Language, UML) activity diagrams. Background technique [0002] A test case is a set of test inputs, execution conditions, and expected results prepared for a special purpose, used to test a program path or verify whether a specific requirement is met. A test case is a description of the test activities related to the test goal executed in a certain order, and determines the "how" of the test. The test case is regarded as the smallest test execution unit for effectively discovering software defects, and is also regarded as the test specification of the software. In software testing work, the design of test cases is very important, and it is the basis for the correctness and effectiveness of test execution. How to effectively design test cases has alw...

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
IPC IPC(8): G06F9/44G06F17/30
Inventor 王哲煊
Owner BEIJING XINWANG RUIJIE NETWORK TECH 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