Supercharge Your Innovation With Domain-Expert AI Agents!

Generation method and system of test cases

A test case and generation system technology, applied in the field of data processing, can solve problems such as prone to errors, low efficiency, the effect of automatic test case generation and unsatisfactory test coverage, and achieve the effect of improving efficiency and saving costs

Inactive Publication Date: 2016-09-14
ZHUHAI GOTECH INTELLIGENT TECH
View PDF1 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in some current testing tools (such as testbed, c++test), the effect of automatic test case generation and test coverage are not ideal. In the development of most program products, many so-called automated testing tools are actually None of them can be fully automated, especially in the aspect of test case generation, mainly using manual design mode to complete product testing
The existing test cases are mainly black-box tests, and the instrumentation of the program is mainly manual, which is inefficient and prone to errors. To address these shortcomings

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
  • Generation method and system of test cases
  • Generation method and system of test cases
  • Generation method and system of test cases

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The core of the present invention is to provide a method and system for generating test cases, which can automatically generate test cases, make the generation of test cases more humane, save manpower, be easy to use, combine graphics, save costs, and improve efficiency.

[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. 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.

[0043] Please refer to figure 1 , figure 1 A flowchart of a m...

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 a generation method of test cases. The generation method comprises compiling source program by using a compiler, and generating stub source program; graphically displaying the source program by using the compiler, obtaining a syntax tree intermediate file, analyzing the syntax tree intermediate file, and generating a flow chart of the source program; calculating the flow chart, and obtaining a target path set of the source program; and generating the test cases by using a genetic algorithm according to the stub source program and the target path set. According to the method, the test cases can be automatically generated, so that generation of the test cases can be more user-friendly, manpower is saved, the method is simple and easy to use with graphic combination, cost is saved, and efficiency is improved. The present invention also discloses a generation system of test cases.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and system for generating test cases. Background technique [0002] Program testing exists in the entire life cycle of the program development process, the workload is heavy, and many various resources are needed in the process of testing. Because the design, execution, and analysis of test cases are very cumbersome, it takes a lot of time, and the efficiency is very low, so the cost of testing is very high. In the program development work, the proportion of program testing work is very high, usually reaching about 40%, and some with high requirements even reach 60%. Because most of the operations and processes of program testing are repetitive and massive, automation methods can be applied to program testing in the process of program development. The automation of testing can not only reduce many meaningless workloads of testers, but also improve the utilizati...

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
CPCG06F11/3684
Inventor 俞祥贤
Owner ZHUHAI GOTECH INTELLIGENT TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More