A Method of Automated Test Data Generation for Web Service

JIANG Ying,XIN Guo-Mao,SHAN Jin-Hui,ZHANG Lu,XIE Bing,YANG Fu-Qing
DOI: https://doi.org/10.3321/j.issn:0254-4164.2005.04.015
2005-01-01
Chinese Journal of Computers
Abstract: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.
What problem does this paper attempt to address?