计算机应用 ›› 2011, Vol. 31 ›› Issue (07): 1756-1758.

• 计算机软件技术 • 上一篇    下一篇

面向服务软件的蜕变测试方法

路晓丽1,2,董云卫2   

  1. 1. 西北大学 公共管理学院,西安 710069
    2. 西北工业大学 计算机学院,西安 710043
  • 收稿日期:2010-12-14 修回日期:2011-01-28 发布日期:2011-07-01 出版日期:2011-07-01
  • 通讯作者: 路晓丽
  • 作者简介:路晓丽(1973-),女,陕西西安人,副教授, 博士,主要研究方向:软件测试;董云卫(1968-),男,陕西西安人,教授,博士,主要研究方向:软件的设计、验证和仿真测试。
  • 基金资助:

    构件化嵌入式软件的测试方法及其工具研究;面向服务架构的信息系统的应用研究

Testing of service-oriented software: a metamorphic testing approach

Xiao-li LU1,2,Wei-yun DONG1   

  1. 1. College of Computer Science,Northwestern Polytechnic University,Xi’an Shaanxi 710043,China
    2. School of Public Administration,Northwestern University,Xi’an Shaanxi 710069,China
  • Received:2010-12-14 Revised:2011-01-28 Online:2011-07-01 Published:2011-07-01
  • Contact: Xiao-li LU

摘要: 在面向服务软件的测试过程中,由于在服务发现之前不可知的交互对象和同一个服务可能会有不同实现,往往出现程序执行结果不能提前预知的Oracle问题。为了有效地解决面向服务软件测试中的Oracle问题,基于面向服务架构(SOA)的特点,提出将蜕变测试方法用于面向服务软件的单元测试和集成测试过程中,依据面向服务软件每个服务的自身性质构造蜕变关系,设计蜕变测试类执行测试用例并验证蜕变关系是否保持,如果蜕变关系被违反了,则发现和报告缺陷,从而有效地支持面向服务软件的测试。

关键词: 软件测试, 面向服务架构, 蜕变测试, 蜕变关系

Abstract: During the process of service-oriented software testing, Oracle problem that the program result is unpredictable comes into existence frequently because of issues like the unknown communication partners before the service discovery and the potential existence of non-identical implementations of the same service. In this paper, based on the benefits of the SOA environments, Metamorphic Testing (MT) approach was applied in the phase of unit testing and integration testing of service-oriented software. Metamorphic Relation (MR) can be built according to the service properties. A metamorphic testing class can invoke relevant services to execute test cases and use their metamorphic relations to detect failures. Any violation of any relevant metamorphic relation indicates a failure.

Key words: software testing, Service-Oriented Architecture (SOA), Metamorphic Testing (MT), Metamorphic Relation (MR)