应用UML顺序图的联锁测试用例生成方法  被引量:5

UML sequence based interlocking test case generation

在线阅读下载全文

作  者:高雪娟[1] 武晓春[1] 

机构地区:[1]兰州交通大学自动化与电气工程学院,兰州730070

出  处:《计算机应用研究》2013年第9期2740-2743,共4页Application Research of Computers

基  金:国家自然科学基金资助项目(61164010)

摘  要:计算机联锁软件是安全完善度等级最高的软件,因此,在投入使用前对联锁软件的测试是必不可少的。为生成联锁软件测试用例,结合包含有充分测试信息的UML模型,提出一种以UML顺序图为主要模型的软件测试用例生成方法。通过提出有向图SG生成算法,将顺序图转换为SG;然后基于特定的覆盖准则和采用深度优先搜索算法遍历SG,得到场景的输入、预期输出、约束条件以及场景环境,生成测试用例;最后,以进路建立过程为例验证了该方法的可行性和正确性。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.

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

分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象