Method for generating test case by using flow chart

A technology of test cases and flow charts, applied in the direction of program control devices, etc., can solve the problems of difficult control of program data flow direction and logical relationship, increase of program development and maintenance costs, increase of program bugs, etc., to facilitate testing and debugging, and easy to understand and design, the effect of simplifying complexity

Inactive Publication Date: 2015-03-18
ZHEJIANG UNIV
View PDF1 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Although the traditional visual programming method can improve the efficiency of software development and shorten the development cycle, there are still the following problems: First, for many project developers, they pay more attention to the realization of program functions during the development process. Expansion, the data flow direction and logical relationship of the program will be difficult to control, increasing the probability of program bugs
In addition, for programs implemented by general programming methods (including visual and non-visual languages), if there is no complete program design manual and accurate flowchart support, later maintenance personnel will need to spend a lot of time and energy reading the code to understand it. process and logical relationship, which greatly increases the cost of program development and later maintenance

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 for generating test case by using flow chart
  • Method for generating test case by using flow chart
  • Method for generating test case by using flow chart

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0028] 1. Graphic editing rules

[0029] The flow chart of the test case needs to be checked for legality, and the flow chart that does not conform to the rules cannot generate a test case. If the flowchart editor detects a wire that does not meet the rules, it sets the wire as a dashed line and does not allow the user to run the test case.

[0030] (1) Constraints of primitives: Constraints of primitives need to control the properties of the connecting lines of the test steps. In the flowchart editor, the flowchart represents the order in which the test cases are run. Therefore, the entire flowchart should be topologically sortable, which requires that connections starting from other nodes except the loop control node cannot generate loops. In addition, since the current test case is running in a single thread, there are no parallel test ste...

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 discloses a method for generating a test case by using a flow chart. The method comprises the steps that : all graphic elements are read through in the flow chart after validity check is carried out for the flow chart to obtain graphic element IDs at both ends of connection lines; a directed graph adjacent matrix with start points and end points, start nodes and end nodes of all the connection lines is established; test units are generated by starting from a StartID in a topological order for every graphic element except connection line graphic elements and are added to the test case in order; subsequent node IDs are checked by utilizing the adjacent matrix till an end node EndID is checked; the test units are mapped to test steps; after the test steps are generated, the corresponding test step is carried out from the start nod in the test case by mapping each time when each test unit is obtained, thereby corresponding operation is run till the end nod is met. The method is characterized in that a program logic process and a program data flow direction are manifested in the form of a flowchart in the executing process of the text case; the method is easy for understanding and design.

Description

technical field [0001] The invention relates to a method for generating a test case using a flowchart. Background technique [0002] The main idea of ​​visual programming technology is to program interactively with graphical tools and reusable components. It encapsulates the existing or new module code in a standard interface package, and as an object in the visual programming editing tool, it is represented and controlled by icons. The package in visual programming technology may be composed of a statement, function module or database program in a certain language, thus obtaining a high degree of platform independence and portability. In the visual programming environment, users can also construct visual control components by themselves, or refer to visual control components constructed in other environments that conform to the package interface specification, which increases the efficiency and flexibility of programming. [0003] Although the traditional visual programmi...

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): G06F9/44
Inventor 李红姜旭锋季乔卡邓俊叶晗顾宗华吴朝晖
Owner ZHEJIANG 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