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

Test case generation method based on data code separation technology

A test case generation and separation technology technology, applied in the field of test case generation based on data code separation technology, can solve the problems of no source code intelligent analysis, high security requirements, affecting test case efficiency, etc., to improve test efficiency and simplify Working hours, the effect of simplifying writing time

Active Publication Date: 2013-04-03
交控技术装备有限公司
View PDF2 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, this design method has high security requirements and does not intelligently analyze the source code, which affects the efficiency of test case generation

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
  • Test case generation method based on data code separation technology
  • Test case generation method based on data code separation technology
  • Test case generation method based on data code separation technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0035] The present invention proposes a test case generation method based on data code separation technology. figure 1 , the method includes:

[0036] S1. Preprocess the program source code and generate a program control flow diagram;

[0037] S2, generate a path matrix A according to the program control flow graph, and set a corresponding priority factor β for each predicate in each path P;

[0038] S3. Reversely sort the paths according to the priority factor β to obtain a matrix A';

[0039] S4. For the matrix A', select the path P i , when the selected path P i When the rank of the formed matrix A″ is equal to the rank of the path matrix A, the path selection ends;

[0040] S5. According to the path P i The type of predicate in which the test data is generat...

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 a test case generation method based on the data code separation technology. The test case generation method comprises the following steps: S1, pre-processing program source codes and generating a program control flow graph; S2, generating a path matrix A according to the program control flow graph and setting corresponding priority factors Beta to all predicates in all paths P; S3, reversely ordering the paths according to the priority factors Beta to obtain a matrix A'; S4, as for the matrix A', selecting a path Pi to calculate test data, and finishing path selection when the order of a matrix A'' constituted by the selected path Pi equals to the order of the path matrix A; S5, generating test data according to the types of predicates in the path Pi; and S6, generating a test case according to the test data and the path Pi. The test case generation method realizes intelligent code analysis, reduces working hours for manual design of both test cases and test data, shortens the test script writing time and improves the test efficiency.

Description

technical field [0001] The invention relates to software testing technology, in particular to a test case generation method based on data code separation technology. Background technique [0002] With the time constraints of the software development cycle, resource constraints and the increasing complexity of the software, the white-box testing of general large-scale application software cannot be fully completed by hand alone. Especially in the iterative development process, each component under each version needs to be continuously verified. This resulted in the data code separation system and automated white box testing techniques. Because the scripting work is a tedious work, the white-box test script based on the control model is usually used to automatically generate the algorithm. The benefits of this design method mainly include the following two aspects: 1. Graph-based minimum path coverage algorithm , which can improve the test efficiency and save resources under...

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/36G06F9/44
Inventor 何玺胜胥志洪
Owner 交控技术装备有限公司
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