摘要
基本路径测试法是一种白盒测试方法,文章将程序流程图映射成流图,探讨了程序的3种基本结构映射成流图的方法,计算了流图的环形复杂度并确定了基本测试路径,从而为每条基本路径设计了测试用例。实践证明,基本路径测试法适用于执行路径较多的程序,通过选择有代表性的路径进行测试,可有效提高测试效率。
The basic path testing method is a white box testing method.This article maps the program flowchart to a flowchart,explores the method of mapping three basic structures of the program to a flowchart,calculates the circular complexity of the flowchart,determines the basic testing path,and designs test cases for each basic path.Practice has proven that the basic path testing method is suitable for programs with multiple execution paths.By selecting representative paths for testing,it can effectively improve testing efficiency.
作者
明德廷
李娟
王兴宇
谭亮
MING Deting;LI Juan;WANG Xingyu;TAN Liang(College of Computer and Information Engineering,Jiangxi Agricultural University,Nanchang 330045,China)
出处
《计算机应用文摘》
2024年第7期74-76,81,共4页
Chinese Journal of Computer Application
关键词
基本路径
白盒测试
流图
环形复杂度
basic path
white box testing
flow chart
ring complexity