计算机应用 ›› 2011, Vol. 31 ›› Issue (09): 2444-2448.DOI: 10.3724/SP.J.1087.2011.02444

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

基于变异的Web复合服务测试数据选择方法

张美花,姜瑛   

  1. 昆明理工大学 信息工程与自动化学院,昆明 650051
  • 收稿日期:2011-03-10 修回日期:2011-04-25 发布日期:2011-09-01 出版日期:2011-09-01
  • 通讯作者: 姜瑛
  • 作者简介:张美花(1985-),女,河南濮阳人,硕士研究生,主要研究方向:软件工程、软件测试;
    姜瑛(1974-),女,浙江余姚人,副教授,博士,CCF会员,主要研究方向:软件工程、软件构件与测试。
  • 基金资助:
    国家自然科学基金资助项目(60703116;61063006);云南省教育厅科学研究基金重点项目(2010Z017)

Method of test data selection for Web services composition based on mutation

ZHANG Mei-hua,JIANG Ying   

  1. Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming Yunnan 650051
  • Received:2011-03-10 Revised:2011-04-25 Online:2011-09-01 Published:2011-09-01
  • Contact: JIANG Ying

摘要: Web服务集成测试的测试数据数量巨大,影响了测试的质量和效率。提出一种基于变异技术的Web复合服务测试数据选择方法,根据BPEL(Business Process Execution Language)文档获取复合服务的路径集,采用接口变异算子和路径变异算子生成变异体,根据初始测试数据杀死变异体的能力选择有效的测试数据。通过实验验证了方法的有效性,选择出的测试数据数量较少且有效。

关键词: Web服务, 集成测试, 接口变异, 路径变异, 测试数据选择

Abstract: The amount of test data for integration of Web services is quite huge, which influences the quality and efficiency of testing. A method of test data selection for Web services composition based on mutation technology was proposed. The paths were generated from BPEL (Business Process Execution Language) document. Then interface mutation operator and path mutation operator were used to generate mutants. The effective test data was selected according to the ability of the initial test data that kills the mutants. The experimental results show that the method is effective and the selected test data are less but more effective.

Key words: Web service, integration testing, interface mutation, path mutation, test data selection

中图分类号: