Font Size: a A A

Automatic Test Cases Generation Based On Extended WSDL

Posted on:2010-11-30Degree:MasterType:Thesis
Country:ChinaCandidate:X L YuanFull Text:PDF
GTID:2178360275952703Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Web service adopts Service-Oriented Architecture and introduces a new kind of development, deployment and integration mode of Web application.Standards based on XML are its core,e.g. WSDL,SOAP and UDDI.Because of loose coupling,easy integration and criterion,Web service becomes more and more important.To guarantee service quality,Web service must be tested.Test automation is the key to improve quality and efficiency of test,and test automation's key lies on the automation of test cases generation.This paper introduces SOA,Web service and their correlation firstly,then introduces the concept of software test and summarizes automatic test case generation technologies.Based on these researches,this paper purposes automatic test cases generation based on extended WSDL.The generated test cases include test data and operation sequences.This paper extends "types" element by adding "simpleType" element to describe basic type and facet restrictions,which adopts description in XML Schema.And then the test data can be generated by these elements effectively.At the same time,this paper proposes a more comprehendible abstract mode by adding structure description based on the prevenient modes.Generated test data based on extended WSDL include test data for simple types and complex types.Test data for simple types are generated by data type and facet restriction.Test data for complex types are generated by adjusting generation strategy by weight of complex data types' sub-elements and relevant combination rules, so validity of test data is guaranteed and amount is reduced.Moreover,this paper extends WSDL document's "operation" element by adding "preop" element to describe pre-positive operation. Operation sequences are generated by analyzing operation dependency of extended WSDL,can be used to test complex operation flows.Otherwise,this paper introduces four kinds of test coverage criterions and analyzes correlation of these criterions.Lastly,this paper designs and develops a test cases generation tool based on extended WSDL-TCGTBEW.The experiments show that this method can generate test cases based on extended WSDL efficiently,which can improve the quality and efficiency of Web service test.
Keywords/Search Tags:Web service, WSDL, Test data, Operation sequence, Test coverage criterion
PDF Full Text Request
Related items