Unlock instant, AI-driven research and patent intelligence for your innovation.

Automatic test case generation method and system based on scene method

An automated testing and generation system technology, applied in the blockchain field, can solve problems such as low work efficiency, no verification of test data results, lack of data and verification, etc., to achieve the effect of improving writing efficiency and ensuring the quality of use cases

Pending Publication Date: 2019-12-20
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the design and scripting of automated test cases still rely on manual operations. Testers need to write automated test scripts according to the operations described in the test cases, and the traditional scenario method focuses more on business processes and operational steps. Reflect specific test data and verification of results, resulting in incomplete test cases designed with the scenario method, lack of data and verification
As a result, on the one hand, in the process of writing automated scripts manually, there is no use case as a basis for test data and result verification
On the other hand, hundreds of automated test cases need to be written manually, which is inefficient, and the writing process relies on manual understanding of the most use cases, which cannot guarantee the quality of automated test cases

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 test case generation method and system based on scene method
  • Automatic test case generation method and system based on scene method
  • Automatic test case generation method and system based on scene method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0089] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0090] At present, the design and scripting of automated test cases still rely on manual operations. Testers need to write automated test scripts according to the operations described in the test cases, and the traditional scenario method focuses more on business processes and operational steps. Reflecting the specific test data and verification of the results, the test cases designed by the scenario method are incomplete, lacking data and verification. As a r...

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 test case generation method and system based on a scene method. The method comprises: obtaining a corresponding automatic test script according to the input data type and the output data type of each atomic node in a preset scene graph, and when the automatic test script runs, executing at least one automatic test operation is executed, wherein the scene graph is a directed graph for describing a business process and each business function of the to-be-tested system; and generating an automated test case according to the scene graph, the automated test script corresponding to each node, and the input data type and the output data type of each node. According to the method, the scene method is improved, and standardized atomic operation packaging is performed on each point in the scene graph to realize automatic generation of the automatic test case, so that the writing efficiency of the automatic test case is improved, and the quality of the case isensured.

Description

technical field [0001] The present invention relates to the technical field of blockchain, and more specifically, to a method and system for generating automated test cases based on a scenario method. Background technique [0002] The scenario method is a use case design method that describes the function points or business processes of the system by using scenarios to improve the test effect. In the scenario method, the scenario diagram is used to describe the business process intuitively and graphically. scene graph (such as figure 1 Shown) is a directed graph, each point in the graph represents a system function or business process, and each edge represents an operation sequence. Multiple small business scenarios can be combined to form a large business scenario. With the beginning of the scene graph as the starting point and the end as the end point, all path combinations are the test case collection. The scenario method is the most important use case design method f...

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): G06F11/36
CPCG06F11/3684
Inventor 黄震人熊小庆张闻天
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA