Method for generating examples of white-box path test

A test case generation and path testing technology, applied in software testing/debugging, program control devices, etc., can solve problems such as infeasible basic path, no processing, and increased probability of basic path infeasibility, so as to reduce complexity and execution Difficulty, the effect of ensuring the quality of the test

Inactive Publication Date: 2007-11-21
ZTE CORP
View PDF0 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

resulting in no consistent set of test cases for the same piece of code
[0008] (3) This method does not deal with the existence of logically related codes
[0009] (4) This method is not conducive to computer automation
This increases the complexity and difficulty of testing the test cases
[0012] (2) The default logical premise of McCabe path "flipping" is that there is no correlation between code nodes, b

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 examples of white-box path test
  • Method for generating examples of white-box path test
  • Method for generating examples of white-box path test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The specific implementation manners of the present invention will be described in detail below with reference to the accompanying drawings.

[0022] FIG. 1A is a test case generation method applied to white-box path testing according to an embodiment of the present invention. As shown in Figure 1A, the test case generation method includes the following steps:

[0023] S102. Mark all the circles in the code flowchart.

[0024] Specifically, step S102 may include the following steps (as shown in FIG. 1B ): S1022, draw a code flow chart, calculate the cyclomatic complexity of the code flow chart, and determine the number of circles in the figure. S1024, the dotted line connects the entry node and the exit node of the code flowchart, and marks a closed area on the graph. S1026. Determine a closed path around each closed area, where a closed path is a circle. And S1028, determine the marked side of the circle, and use the marked side to mark the circle. Among them, the u...

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

A method for generating test sample used on path test of blank case includes labeling all circles in code flow drawing, generating master path set formed by at least one branch path passing all circles in code flow drawing, generating basic path set by utilizing master path set through circle-adding means and generating test sample according to feasible conditions of each basic path in basic path set.

Description

technical field [0001] The invention relates to software testing technology, more specifically to a test case generation method applied to white box path testing. Background technique [0002] Existing software testing methods are divided into white box testing and black box testing according to test case design. White-box testing is also called structural testing or logic-driven testing, and it is a test that starts from the control structure of the program. White box testing uses information about how the unit under test works internally, allowing testers to design and select test cases based on the internal logical structure of the program and related information, and test the logical path of the program. Based on knowledge of the internal logic of an application code, testing is based on covering all code, branches, paths, and conditions. According to the coverage standard from low to high, they are: statement coverage, decision coverage (also known as branch coverage)...

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/36G06F9/44
Inventor 金斌李维民蒋光明王勇
Owner ZTE CORP
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