Font Size: a A A

Research On Web Service Testing Model And Testing Approach Based On Agent

Posted on:2012-06-19Degree:MasterType:Thesis
Country:ChinaCandidate:S L LiuFull Text:PDF
GTID:2248330395985594Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
In recent years, because of its loosely coupled, independent, easy-invoked andother features, Web Service has been widely used in various fields. The qualityrequirement of Web Service is stricter than before. And testing is an effective way toensure the quality of Web Service. The existing testing methods can’t solve theproblem of the heterogeneous and distributed characters of Web Service directly.Agent has some characteristics, such as autonomy, initiative, reactivity, whichcan adapt to the distributed environment. The agent technology is used in Web Servicetesting in this thesis, and a Web Service testing model based on agent is proposed.Accoding to the different works, the agents are divided into different roles in thismodel, and agent could complete the test work by cooperating with other agents.Thismodel also can improve the test efficiency by decomposing, distributing the test task.This thesis also discusses the specific testing process of this test model in differenttest requirements. The analysis for the test model shows that it can not only solve thedynamic and distributed problem in Web Service testing effectively but also improvethe test efficiency.In order to improve the efficiency of the test model, this thesis presents a testcase automated generation for Web Service. This approach inclues test sequenceautomated generation and test data automated generation.The existing testing methods have some shortcomings that they need artificiallyparticipation, and the degrees of automation are not high. A standardized methodhavn’t been proposed at present. To address the issue, firstly this thesis analyses theconnection between the operations in WSDL and studies a method to find the linkbetween these operations. Secondly, a directed graph which used to express therelationship among the operations of Web Service is constructed, and then anoperation sequences generation algorithm base on the directed graph is proposed. Acase study shows that the method is feasible.A method of variation test data automated generation base on decision table ispresented to generate test data automatically. This thesis constructs the Web Servicecontract, and then uses some test strategy to generate the intial test data sets based oncontract. Four contract mutation operators are used in contract. Use test data to run onthe contract and its variation, and record the killed-mutations number of every testdata. At last, the final test data sets can be got by greedy algorithm. The experiment results show that comparing with the contract mutation method, this method reducesthe size of initial test sets, reduces the choice time and enhances test efficiency.
Keywords/Search Tags:Software testing, Web Service, Agent, Test case, Contract mutation
PDF Full Text Request
Related items