A Method of Automated Test Data Generation for Web Service

A Method of Automated Test Data Generation for Web Service
复制标题

DOI:
--
复制
发表时间:
2005
期刊:
Chinese Journal of Computers
影响因子:
--
通讯作者:
Jiang Ying
Jiang Ying
中科院分区:
其他
文献类型:
--
作者:
Jiang Ying

文献摘要

被引文献

相似文献

软件测试是目前保证Web服务质量的重要技术之一。测试数据生成是Web服务测试中的一个重要主题。测试数据的质量直接影响Web服务测试的效率和成本。基于Web服务契约测试技术的设计,提出了一种Web服务测试数据自动生成的方法。首先,根据Web服务WSDL文档中的描述信息和契约,采用随机方法自动生成初始测试数据。然后采用契约变异测试的方法对测试数据进行筛选。给出了初始测试数据生成和测试数据选择的算法。为了提高Web服务测试的质量和效率,该方法能够生成满足一定契约变异分数的测试用例集。最后,在Microsoft平台上开发了一个原型系统。NET平台。针对同一个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.