期刊文献+

基于UML和OCL的类间交互测试用例生成算法研究 被引量:1

Research on algorithms for generating test cases of inter-classes interaction based on UML and OCL
在线阅读 下载PDF
导出
摘要 针对面向对象软件的类、封装、继承、动态连接等特性,对对象建模语言(UML模型)中的顺序图添加对象约束语言(OCL约束),做类间交互的软件测试。提出执行图EG生成算法,将顺序图SD转换为EG,解决UML2.0顺序图新增特性中的alt,loop,opt,break这4种常见组合片段及其嵌套和多态性问题;为得到最小完备的测试路径,提出EG的遍历策略和测试路径生成算法;确定测试场景,生成测试用例。经实例分析,它可以基于UML顺序图与OCL作系统地测试。 Aiming at some features in object-oriented software, such as classes, encapsulation, inheritance, dynamic connections, sequence diagram of UML design model is constrainted by OCL for testing interaction among classes. Transform_ SDToEG algorithm is proposed. A sequence diagram SD is converted to a graph called EG, short for execution Graph. In this algorithm, the new features alt, loop, opt, break four major combined fragments in UML2.0 sequence diagram and nesting among them, the polymorphism problem is solved. In order to get the smallest complete test pathes. EG traversal strategy and TraverseEG_ GenerateMinusTestPaths algorithm are presented. Finally, test scenarios are determined by testing pathes, and test cases are generated. Case analysis show that it can do software testing based on UML sequence diagram and OCL systematicly.
作者 冯秋燕
出处 《计算机工程与设计》 CSCD 北大核心 2012年第11期4219-4224,共6页 Computer Engineering and Design
关键词 对象建模语言 顺序图 对象约束语言 执行图(EG) 测试场景 测试用例 UML sequence diagram OCL execution graph (EG) test scenario test case
  • 相关文献

参考文献12

  • 1陈神.基于UML模型的软件测试技术研究与实现[D].成都:电子科技大学,2006:1-95.
  • 2ZHU Meixia, WANG Hanpin, JIN Wei, et al. Semantic analysis of UML2. 0 sequence diagram based on model transformation [C]. Proc IEEE 34th Annual Computer Software and Applications Conference Workshops. TBD Korea (South) COMPSACW, 2010, 170-175.
  • 3Alhroob A, Dahal K, Hossain A. Transforming UML sequence diagram to high level Petri Net [C]. Puerto Rico USA: Proc 2nd International Conference on Software Technology and Engineering, 2010: V1-260-V1-264.
  • 4Yang Nianhua, Yu Huiqun, Sun Hua, et al. Modeling UML sequence diagrams using extended Petri Nets [C]. Tamilnadu, India: Proc International Conference on Information Science and Applications, 2010: 1-8.
  • 5Zhe (Jessie) Li, Tom Maibaum. An approach to integration tes ting of object-oriented programs [C]. Oregon, USA: Proc Seventh International Conference onQuality Software, 2007: 268-273.
  • 6Aritra Bandyopadhyay, Sudipto Ghosh. Test input generation using UML sequence and state machines models [C]. Colorado USA: International Conference on Software Testing Verification and Validation, 2009: 121-130.
  • 7Aritra Bandyopadhyay, Sudipto Ghosh. STUDENT PAPER: Using UML sequence diagrams and state machines for test input generation [C]. Mysore India: Proc 19th International Sym posium on Software Reliability Engineering, 2008: 309-310.
  • 8Nguyen Dinh-Phuc, Luu Chung Tuyen, Truong Anh Hoang, et al. Verifying implementation of UML sequence diagrams using Java PathFinder [C]. Hanoi, Vietnam: Proc Second International Conference on Knowledge and Systems Engineering, 2010: 194-200.
  • 9Cartaxo E G, Neto F G O, Machado P D L. Test case generation by means of UML sequence diagrams and labeled transition systems [C]. Quebec, Canada: Proc IEEE International Conference on Systems, Man and Cybernetics, 2007: 1292-1297.
  • 10Philip Samuel, Joseph A T, Test sequence generation from UML sequence diagrams [C]. Washington, DC, USA: Proc ninth ACIS International Conference on Software Engi neering, Artificial Intelligence, Networking, and Parallel/ Distributed Computing, 2008: 879-887.

同被引文献3

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部