Font Size: a A A

An Approach To Generate Scenarios Of Integration Testing Based On UML

Posted on:2009-09-05Degree:MasterType:Thesis
Country:ChinaCandidate:Q LiFull Text:PDF
GTID:2178360272974105Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the development of information and technology, the scale of software isbecoming wider and wider, and in software engineering one of the most concernedproblem is how to guaranteeing and improving the quality of software. As softwaretesting is one of the key technologies which guarantee the quality of software, it caneffectively find out the bugs and failures in software.As UML model is widely used,software testing based on UML get more attention. This paper makes a deep research on generating integration testing scenarios method based on UML design pattern and the testing of polymorphic in software.Based on two-layer testing's uniform view offered by integration testing clues,a framework for generating integration testing scenarios is put forward in order to solve the problems of extracting testing scenarios in different hierarchies.The framework is just composed of solutions.Each detail for extracting integration scenarios will be systemly showed in the framework.First of all,in the hierarchy between system use cases, integration clues easily result in combined blast,and bring more redundant clues generated.So, on the basis of the characteristics of use case diagram and activity diagram, the paper introduces bussiness logic among use cases.Consequently,The activity diagram of sequency and dependency among use cases(UCSDAD) is constructed.Because the diagram includes the bussiness logic information of use cases,the redundancy of scenarios is effectively reduced, meanwhile the probability of combined blast is reduced.Then the DD path is used as the guide line for UCSDAD testing coverage criteria.The approach achieves upper request for determinant coverage criteria,and further control the redundancy of clues,thus the problems,which are encountered in the generation cross of integration testing scenarios among use scenarios, are effectively solved.Second, Because the UML sequence diagram emphasize on graphicly expressing the interaction of objects, generating test case from UML sequence diagram directly is not convenient. So we need to chang UML sequence diagram to a equivalent form and generate test case base on this form.firstly, this paper propose the PCIRCFG(Polymorphic Class Interprocedural Restricted Control-Flow Graph)model and give a formal description of it because of the shortness of IRCFG(Interprocedural Restricted Control-Flow Graph)model.then also propose three kinds of coverage criteria based on PCIRCFG model. Test cases can be generated from PCIRCFG and coverage criterias.Third ,according to the framework of generating integration testing clues,the pages implemented a tool for extracting integation testing scenarios.the tool is based on PowerDesigner which is a mature tool of business model and analyze a model document to automatically withdraw integration testing scenarios.as result, the tool proved the possibility of the method in this paper.At last,the example of library management system proved the usefulness of the mothod of extracting integration testing scenarios which is based on UML model in this paper.
Keywords/Search Tags:UML, integation testing, testing scenarios, Polymorphic Class Interprocedural Restricted Control-Flow Graph
PDF Full Text Request
Related items