期刊文献+

基于类间依赖集约简的类簇测试用例生成算法 被引量:1

Generating test cases of cluster-level based on classes dependencies reduction
下载PDF
导出
摘要 针对类簇中类间依赖关系以及类间消息交互产生的错误而导致测试冗余和测试遗漏的问题,提出一种类间依赖集约简的类簇测试用例生成算法。形式化定义了类间继承依赖、聚集依赖和关联依赖这3种依赖关系,建立类簇测试模型。定义类簇模式和用户(领域专家)解释集,并在用户解释集中依据每一个类对象的若干实例广义相等建立等价类,得出用户解释集幂集的1个子集即匹配划分集。据匹配消去算法求出类的最大匹配集,证明该集合就是所求类的最大非平凡非依赖集;提出一种交互差组合约简算法,计算类的最大非平凡非依赖集的补集,约简得到类的最小交叠集,并证明其就是类的最小非平凡依赖集,即类的组合测试用例;对其中每一个类的组合元素进行组合测试,并与其余类交互测试,得出类的交互测试序列。 To resolve the problem of redundancy and pretermission in the cluster-level testing due to errors of classes dependency relationship and classes message interaction, an algorithm for generating test cases of cluster-level based on classes dependencies reduction was proposed. Three classes dependency relations, i.e., inheritance dependency, aggregation dependency and association dependency, were defined by using the method for formalization, and a test model for cluster-level was constructed. An equivalence relationship in user interpretation set was built by generalized equation among some objects that were instantiations of the corresponding class. An algorithm named matching elimination was presented to obtain the maximal matching set of one or more classes equal to the maximal independency set of the corresponding class. An approach named interaction difference combination reduction was presented for computing the complement set of the maximal independency set of a class to get the minimum overlap set of the corresponding class, whose equivalency with the minimum dependency set of the corresponding class was proved too, and combination test cases and the interaction test sequences among classes were obtained.
出处 《中南大学学报(自然科学版)》 EI CAS CSCD 北大核心 2010年第1期238-244,共7页 Journal of Central South University:Science and Technology
基金 国家自然科学基金资助项目(10871031) 湖南省科技计划项目(2008CK3075)
关键词 类簇测试模型 用户解释集 匹配划分集 类间依赖关系 依赖集约简 cluster-level test model user interpretation set matching partition set classes dependency relation reduction dependency set
  • 相关文献

参考文献16

  • 1McGregor J D, Sykes D A. A practical guides to testing object-oriented software[M]. London: Prentice Education Inc, 2001.
  • 2CHEN Huo-yan, LI Chuang, Tse T H. Transformation of UML interaction diagrams into contract specifications for object-oriented testing[C]//Proceedings of 2007 IEEE International Conference on Systems, Man, and Cybernetics. Montreal. 2007: 1298-1303.
  • 3Christian E, Christoph G, Vladimir K. Integrating verification and testing of object-oriented software[C]//Proceedings of 2nd International Conference on Tests and Proofs. Prato, 2008: 182-191.
  • 4Martena V, Orso A, Pezze M. Interclass testing of object-oriented software[C]//Proceedings of the 8th IEEE international Conference on Engineering of Complex Computer Systems (ICECCS'02). California, 2002:135-144.
  • 5Kung D, Hsia P. A reverse engineering approach for software testing of object-oriented programs[C]//IEEE Symp on Application Specific Systems Technology. Richardson, Texas and Software Engineering and 1999: 18-25.
  • 6Kung D, Gao J, Hsia P, et al. On regression testing of object-oriented programs[J]. Journal of Systems Software, 1996, 32(1): 21-40.
  • 7Tai K C, Daniels F J. Test order for interclass integration testing of object-oriented software[C]//Proceedings of the 21 st International Computer Software and Applications Conference (COMPSAC'97). Washington, 1997: 602-607.
  • 8Jorgensen P C. Software testing: a craftsman's approach second edition[M]. Florida: Chemical Rubber Press Limited Liability Company, 2003.
  • 9Mathur A P. Foundations of software testing[M]. Hongkong: Pearson Education Asia Ltd, 2008.
  • 10Tari Z, Stokes J, Spaccapietra S. Object normal forms and dependency constraints for object-oriented schemata[J]. ACM Trans on Database Systems, 1997, 22(4): 513-569.

二级参考文献11

共引文献124

同被引文献6

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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