Font Size: a A A

The Research Of Auto Web Service Test Based On Regular Expression Extension

Posted on:2013-08-26Degree:MasterType:Thesis
Country:ChinaCandidate:Z H HaoFull Text:PDF
GTID:2248330374475067Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In recent years, with the continuous development of architecture SOA, as a wayto implement Service Oriented Architecture, Web service technology has attractedmuch attention due to its loose coupling, high integration, data standardization anddata reusability etc, as a result, it s widely used in information industry. In order toensure the quality of Web service, strict and effective test must be taken. The key isthe generation of test data, so generating test data quickly and effectively becomes thekey approach to ensure the quality of Web service.Based on the research of the web service technology, software testing technology,the regular expression technology, automatic generation of test cases and alsoaccording to the problems of the current Web service automatic test technology--suchas limit of constraint expression ability, set of test case is huge, subjective factors intest case and so on, this paper presents a method to generate test cases automaticallybased on extension of WSDL. This method not only make WSDL have rich semanticcompetence, but also generate test data effectively.Firstly, the method of this paper extends the constraint description of the inputparameters of the operation of Web service with regular expression. Then, the methoduses equivalence partitioning method and random method to generate test data foreach input parameter according to the regular expression extended. Then, this paperdeveloped an improved algorithm named IPOC which based on the constraint relationof parameters and used this algorithm to generate combinatorial test data for eachoperation of Web service to cover all pairwise combinations, this algorithm can ensurethe validity of test data and also reduce the number of test cases.Finally, this paper designed a simple system to generate test cases automaticallybased on the extension of regular expressions to WSDL, and did many experiment tovalidate the feasibility and validity of the solution designed in this paper. The resultsof experiment show that the solution can effectively generate test cases of Web service and reduce the number of test cases.
Keywords/Search Tags:Regular expression, Web service, Test, WSDL, IPOC
PDF Full Text Request
Related items