作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (14): 76-78. doi: 10.3969/j.issn.1000-3428.2007.14.027

• 软件技术与数据库 • 上一篇    下一篇

基于状态的EJB构件集成测试

张毅坤,夏 辉,施凤鸣   

  1. (西安理工大学计算机科学与工程学院,西安 710048)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-07-20 发布日期:2007-07-20

Integration Test of EJB Component Based on State

ZHANG Yikun, XIA Hui, SHI Fengming   

  1. (School of Computer Science and Engineering, Xi’an University of Technology, Xi’an 710048)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-07-20 Published:2007-07-20

摘要: 针对构件源代码的不可知性问题,该文提出了从构件规格说明、接口中提取两类测试信息,生成构件状态测试用例,通过测试这两类“测试信息”进行构件属性分析和状态判定,通过“属性-状态”依赖关系,划分属性关联关系中理想状态空间,并构造测试树,利用不同的覆盖准则生成测试用例。

关键词: EJB构件, 测试树, 测试用例

Abstract: Aiming at the problem that component resource code is unidentified, this paper abstracts two kinds of test information from component specification and interface, and then generates component state test cases. Component attributes and states can be analyzed through test information. Attribute-relationship and ideal state space can be obtained from attribute-state relationship. Test tree is constructed and test cases are generated by different coverage criteria.

Key words: EJB component, test tree, test case

中图分类号: