首页 | 官方网站   微博 | 高级检索  
     

在带OCL约束的状态图下测试线索的自动生成*
引用本文:曾一,徐攀登,柴艳欣,邹明,丁娜.在带OCL约束的状态图下测试线索的自动生成*[J].计算机应用研究,2011,28(3):988-990.
作者姓名:曾一  徐攀登  柴艳欣  邹明  丁娜
作者单位:重庆大学计算机学院,重庆,400030
摘    要:保证软件质量的前提下如何减少测试用例规模是测试设计的关键技术之一。提出一种带OCL约束的状态图测试线索的自动生成方法。该方法自动解析类图和带OCL约束的状态图的XML模型文件,获取相应的状态节点邻接表,再结合状态对-事件约束集合生成带OCL约束的测试线索。实例研究表明,通过OCL约束冲突判断可避免不可行测试线索的生成,减少测试用例数目,达到降低测试成本的目的。实验结果证明了该方法的可行性和有效性。

关 键 词:OCL  XML  类图  状态图  测试线索  约束冲突
收稿时间:2010/8/26 0:00:00
修稿时间:2010/9/27 0:00:00

Test sequence automate generation from state diagram with OCL constraints
ZENG Yi,XU Pan-deng,CHAI Yan-xin,ZOU ming,DING Na.Test sequence automate generation from state diagram with OCL constraints[J].Application Research of Computers,2011,28(3):988-990.
Authors:ZENG Yi  XU Pan-deng  CHAI Yan-xin  ZOU ming  DING Na
Affiliation:ZENG Yi,XU Pan-deng,CHAI Yan-xin,ZOU ming,DING Na(College of Computer Science,Chongqing University,Chongqing 400030,China)
Abstract:Without influencing the quality of software, how to reduce test case scale is one of the key techniques for design testing. This paper proposes an effective generation approach to test sequence from State diagram with OCL constraints. Constitute corresponding adjacency list of State nodes is acquired by automatically analyzing XML model file of Class diagram & State diagram with OCL constraints. Then, test sequence with OCL constraints are generated based on state adjacency list & StatusCouple-Event set. The case research indicated that, the generation of infeasible testing sequence can be avoided through OCL restrict conflict judgement, and that it can effectively reduce the number of test case, so as to achieve the objective of reducing the test cost. This method is verified to be feasible and effective by experimental results.
Keywords:OCL(object constraint language)  XML  class diagram  state diagram  test sequence  constraint conflict  
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号