摘要
在面向服务软件的测试过程中,由于在服务发现之前不可知的交互对象和同一个服务可能会有不同实现,往往出现程序执行结果不能提前预知的Oracle问题。为了有效地解决面向服务软件测试中的Oracle问题,基于面向服务架构(SOA)的特点,提出将蜕变测试方法用于面向服务软件的单元测试和集成测试过程中,依据面向服务软件每个服务的自身性质构造蜕变关系,设计蜕变测试类执行测试用例并验证蜕变关系是否保持,如果蜕变关系被违反了,则发现和报告缺陷,从而有效地支持面向服务软件的测试。
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.
出处
《计算机应用》
CSCD
北大核心
2011年第7期1756-1758,共3页
journal of Computer Applications
基金
国家863计划项目(2008AA01Z142)
陕西省教育厅资助项目(2010JK299)
关键词
软件测试
面向服务架构
蜕变测试
蜕变关系
software testing
Service-Oriented Architecture(SOA)
Metamorphic Testing(MT)
Metamorphic Relation(MR)