期刊文献+

一种Web服务的测试数据自动生成方法 被引量:50

A Method of Automated Test Data Generation for Web Service
下载PDF
导出
摘要 软件测试是保证Web服务质量的重要技术手段.测试数据生成是Web服务测试的重要内容.测试数据的质量将直接影响Web服务测试的效率和成本.文章基于合约式设计的 Web服务测试技术,提出一种 Web服务的测试数据自动生成方法.首先根据WSDL文档采用随机法自动生成初始测试数据,然后使用合约变异技术进行测试数据的选择,据此可以生成一组达到一定合约变异充分度的有效测试数据,从而提高 Web服务的测试质量和效率.最后实现了一个Web服务的测试数据自动生成工具原型,并通过实验验证了方法的有效性. Software testing is one of the most important techniques used to assure the quality of Web Services at present. Test data generation is an important topic in Web Services testing. The quality of test data will influence the efficiency and cost during Web Services testing. Based on the design by contract testing technology for Web Services, this paper presents a method of automated test data generation for Web Services. Firstly, according to the description information and contracts in WSDL document of Web Services, the initial test data are generated automatically by random method. Then the test data are selected by means of contract mutation testing. The algorithms about initial test data generation and test data selection are presented. In order to improve the quality and efficiency of Web Services testing, this method can generate a test suite meeting a certain contract mutation score. Finally, a prototype has been developed on the Microsoft. NET platform. For the same Web Service with different contracts, the experiments are carried out on this prototype. The contract mutation score of generated test data is compared with the statement coverage score and condition coverage score. The results have shown that the method is effective in automated test data generation for Web Services.
出处 《计算机学报》 EI CSCD 北大核心 2005年第4期568-577,共10页 Chinese Journal of Computers
基金 国家自然科学基金(60373003) 国家"九七三"重点基础研究发展规划项目基金(2002CB312003) 国家"八六三"高技术研究发展计划项目基金(2004AA112070)资助.
关键词 WEB服务 软件测试 测试数据生成 合约 变异测试 Web service software testing test data generation contract mutation testing
  • 相关文献

参考文献18

  • 1杨芙清,梅宏,吕建,金芝.浅论软件技术发展[J].电子学报,2002,30(12A):1901-1906. 被引量:163
  • 2单锦辉,王戟,齐治昌.面向路径的测试数据自动生成方法述评[J].电子学报,2004,32(1):109-113. 被引量:46
  • 3姜瑛 辛国茂 单锦辉 等.一种基于合约式设计的测试技术研究.软件学报,2004,15:130-137.
  • 4Fabbri S.C.P.F., Maldonado J.C., Sugeta T., Masiero P.C. Mutation testing applied to validate specifications based on statecharts. In: Proceedings of the 10th International Symposium on Software Reliability Engineering, Florida, USA, 1999, 210~219
  • 5Mandrioli D., Morasca S., Morzenti A. Generating test cases for real-time systems from logic specifications. ACM Transactions on Computer Systems, 1995, 13(4): 365~398
  • 6Lee S.C., Offutt J. Generating test cases for XML-based Web component interactions using mutation analysis. In: Proceedings of the 12th International Symposium on Software Reliability Engineering, Hong Kong, China, 2001, 200~209
  • 7Offutt J., Xu W. Generating test cases for web services using data perturbation. ACM SIGSOFT Software Engineering Notes, 2004, 29(5): 1~10
  • 8Tracey N.J. A search-based automated test-data generation framework for safety-critical software[Ph.D. dissertation]. Department of Computer Science, University of York, 2000
  • 9Aichernig B.K. Mutation testing in the refinement calculus. Formal Aspects of Computing, 2003, 15(2~3): 280~295
  • 10Kovcs G., Pap Z., Viet D.L., Wu-Hen-Chang A., Csopaki G. Applying mutation analysis to SDL specifications. In: Proceedings of Specification and Description Language 2003, Stuttgart, Germany, LNCS 2708, 2003, 269~284

二级参考文献2

共引文献210

同被引文献595

引证文献50

二级引证文献203

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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