首页 | 本学科首页   官方微博 | 高级检索  
     

应用UML顺序图的联锁测试用例生成方法
引用本文:高雪娟,武晓春.应用UML顺序图的联锁测试用例生成方法[J].计算机应用研究,2013,30(9):2740-2743.
作者姓名:高雪娟  武晓春
作者单位:兰州交通大学 自动化与电气工程学院,兰州,730070
基金项目:国家自然科学基金资助项目(61164010)
摘    要:计算机联锁软件是安全完善度等级最高的软件, 因此, 在投入使用前对联锁软件的测试是必不可少的。为生成联锁软件测试用例, 结合包含有充分测试信息的UML模型, 提出一种以UML顺序图为主要模型的软件测试用例生成方法。通过提出有向图SG生成算法, 将顺序图转换为SG; 然后基于特定的覆盖准则和采用深度优先搜索算法遍历SG, 得到场景的输入、预期输出、约束条件以及场景环境, 生成测试用例; 最后, 以进路建立过程为例验证了该方法的可行性和正确性。

关 键 词:UML顺序图  软件测试  测试用例生成  联锁

UML sequence based interlocking test case generation
GAO Xue-juan,WU Xiao-chun.UML sequence based interlocking test case generation[J].Application Research of Computers,2013,30(9):2740-2743.
Authors:GAO Xue-juan  WU Xiao-chun
Affiliation:School of Automation & Electrical Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China
Abstract:Computer interlocking software is the highest safety integrity level software, so it is essential to test it before putting it into use. In order to get interlocking software test cases, combined with UML models with sufficient testing information, this paper proposed a method of test case generation based on UML sequence diagram. By proposing generating algorithm of direc-ted graph SG, transferred sequence diagram into SG and traversed SG based on specific coverage criteria and by using depth-first algorithm. It generated the input, respected output, constraint and scenario context and these four constituted the test case. Finally, route setting example proves the feasibility and correctness of this method.
Keywords:UML sequence diagram  software test  test case generation  interlocking
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号