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

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 no processing, infeasible basic paths, and no consistent test case set, so as to ensure test quality and reduce complexity. and the effect of execution difficulty

Inactive Publication Date: 2011-04-06
ZTE CORP
View PDF0 Cites 0 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, but because there are logical dependencies in the code, the longer the path, the greater the probability of logical conflicts, resulting in a change in the probability of basic path infeasibility. Big
[0013] (3) In some cases, most of the basic paths will be infeasible, and independent path sets must be found again
[0014] (4) This method fails to give a complete judgment on the independence of the path

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] Figure 1A It is a test case generation method applied to white-box path testing according to an embodiment of the present invention. Such as Figure 1A As shown, 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 (such as Figure 1B shown): S1022, draw the 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 circl...

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 pathset.

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36G06F9/44
Inventor 金斌李维民蒋光明王勇
Owner ZTE CORP
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