摘要
针对因果图法测试用例设计效率较低的问题,提出用因果表达式取代因果图来进行测试用例设计。制定了因果表达式的语法规则;设计了用于测试用例设计的决策表类;通过可视化设计及算法设计实现了用于多条件组合问题的测试用例设计工具。工具实现了测试输入编辑、测试用例自动生成和测试用例维护等功能。与因果图法相比,该方法不用绘制和遍历因果图,只需分析因果表达式的语法即可实现决策表的化简,能提高多条件组合问题测试用例的设计和维护效率。
Aiming at the problem of low efficiency of cause-effect graph test cases design,this paper proposed to use cause-effect expression instead of cause-effect graph to test case design.First of all,the grammatical rules of cause-effect expression were formulated.Then,we designed a decision table class for test case design.Finally,a test case design tool for multi-condition combination problems was implemented through visual design and algorithm design.The tool included features such as test input editing,test case auto-generation,and test case maintenance.Compared with cause-effect graph method,this method did not draw and traverse the cause-effect graph.The method only needed to analyze the grammar of the cause-effect expression to simplify the decision table,and improved the design and maintenance efficiency of the multi-condition combination test case.
作者
王敏
谢永平
Wang Min;Xie Yongping(College of Electronics and Information Engineering,Hubei Radio and TV University,Wuhan 430074,Hubei,China)
出处
《计算机应用与软件》
北大核心
2018年第4期21-27,共7页
Computer Applications and Software
基金
湖北省自然科学基金项目(2016CKC774)
湖北省教育厅科学研究计划立项项目(Q20174603)
关键词
因果图
因果表达式
测试用例
决策表
黑盒测试
Cause-effect graph
Cause-effect expression
Test case
Decision table
Black-box testing