Supercharge Your Innovation With Domain-Expert AI Agents!

Boundary Value Testing Method and System in Structure Testing

A technology of structural testing and testing methods, applied in the direction of software testing/debugging, etc., can solve the problem of not paying attention to whether the value is on the boundary, etc.

Inactive Publication Date: 2016-10-19
BEIJING UNIV OF POSTS & TELECOMM
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, these traditional coverage testing techniques are all based on the control flow graph, and the points and edges on the control flow graph are the coverage elements, so it is only required to generate a test case for the coverage element, regardless of whether the value is on the boundary, It is difficult for traditional coverage testing to detect errors in boundary values

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
  • Boundary Value Testing Method and System in Structure Testing
  • Boundary Value Testing Method and System in Structure Testing
  • Boundary Value Testing Method and System in Structure Testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0019] figure 1 A flow chart of the boundary value testing method in the structure testing of the present invention is shown.

[0020] refer to figure 1 , the boundary value testing method in the structure testing of the embodiment of the present invention comprises:

[0021] Step S1, select a specific boundary coverage criterion according to the semantics of the sentences and the semantics of the expressions in the tested file.

[0022] Step S2, acquiring the statement boundary value and expression boundary value of the tested file according to the boundary coverage criterion.

[0023] In this embodiment, the statement node is obtained from the control flow graph of the structural test, and then the statement boundary value is obtained according to the boundary coverage criterion. Moreover, each boundary value of the jump statement in the structure ...

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 relates to a boundary value testing method and system in structure tests. The method includes 1, selecting special boundary covering rules according to the semantic of statements and expressions in tested files; 2, acquiring a statement boundary value and expression boundary value of the tested files according to the special boundary covering rules; 3, select corresponding feasible paths for the statement boundary value and expression boundary value; 4, generating test cases according to the feasible paths, comparing the test cases, and acquiring boundary value testing results accordingly. According to the boundary value testing method and system in the structure tests, the special boundary covering rules are selected according to different statements and expressions, the corresponding boundary values can be found rapidly, and the boundary values of the statements and expressions in the structure tests can be tested.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular, to a boundary value testing method in structural testing. Background technique [0002] Boundary value testing is proposed for functional testing. In 1979, Myers GJ. proposed that the boundary of the input domain is more error-prone than the middle, so the boundary value analysis is regarded as a test case generation technology that supplements the division of equivalence classes, that is, instead of selecting any element of the equivalence class, it is to select Price class boundaries. In 1997, Reid used 17 modules in real projects to conduct experiments to compare the error detection effects of boundary value, statement coverage, branch coverage, random and other testing methods. Experimental results show that Boundary Value outperforms all other methods, finding almost all bugs in 17 modules; for 14 of them, 50,000 random test cases are needed to get a test effect com...

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/36
Inventor 宫云战李峰黄俊飞金大海王雅文
Owner BEIJING UNIV OF POSTS & TELECOMM
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