Font Size: a A A

A Method Of Automatic Test Data Generation Based On Extended WSDL

Posted on:2011-01-31Degree:MasterType:Thesis
Country:ChinaCandidate:S G LiFull Text:PDF
GTID:2178360302997790Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the development of times and technology, SOA is popular with people because of its nature of loosely coupled, highly integrated, the normative data and data reusability. As a way to achieve SOA, Web services pull in a new model of Web application development, deployment and integration, whose core technology is XML, WSDL, SOAP and UDDI. To ensure the quality of Web services, there must be a valid test. Generating test data quickly and easily is one of the key elements to Web service's quality.On the basis of lucubrating on Web services, software testing technology, test cases generated automaticly technology, we founed that there were many problems when we generated test cases automaticly for Web services. For example, it would only generate a single type of data for test cases; those test cases were not enough for finding most of the debugs; the amount of test cases was too huge; test cases partly depended on people's subjectivity, etc. Web services is transparent to its quoter, so this paper presents a new method which is based on extended WSDL to solve problems of generating test data automatically for Web Services. This method can generate test data efficiently.The main efforts of this paper were as followings:1. Studied SOA and Web services's concepts and technology, and analysed the defects of relevant technology.2. Studied the WSDL which was generated by Web services atuomaticly and expanded the definition of WSDL.To achieve this aim, we added the dataDescription element to the type element. So the extended WSDL can describe the base type, explicit constraints and implicit constraints of the data.3. Generated simple test data. The simple test data were generated by the method of equivalence class partition method, boundary value analysis, random method, etc. At the same time, we defined the validity of the data.4. Generated complex test data. There were three kinds of complex test data:the choice type,the all type and the sequence type. The sequence type is used widely, so we gave it a recountal. In this paper the IPO algorithem was applied to generate test data for Web services, and some constraint were added to the validity of complex test data. At last, we gave the extended IPO algorithem which was generated by sorting the parameters to generate the complex test data.5. We developed a test tool named WSTDGT (Web Service Test Data Generation Tool) to validate the feasibility and effectiveness of this paper's idea. After that, we did some correlative simulation experiments and comparative experiments.The results showed that:The mothed can generate the simple test data and complex test data easily and effectively, and can effectively prevent the inaccurate caused by artificially weighted and the combinatorial explosion.
Keywords/Search Tags:WSDL, Test Data, Web Services, Software Testing
PDF Full Text Request
Related items