Font Size: a A A

Research On Test Method Based On UML Interaction Overview Diagram

Posted on:2014-11-15Degree:MasterType:Thesis
Country:ChinaCandidate:Q X LiuFull Text:PDF
GTID:2268330392971530Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the maturity of software development technology and the popularity ofapplication, software quality assurance is not only facing new challenges, but alsohighlights the importance of software testing. In recent years, the development ofobject-oriented technology, the software testing based on UML has become animportant research subject.At present, the single model can only describe the system information from acertain level and lead to inadequate testing problem. For example,activity diagram isused to describe the business processes of system and sequence diagram is used todescribe the interaction information between objects of system. As UML semi-formalcharacteristics, it cannot accurately describe the system constraint information, makesthe generated test cases based on UML model completeness of severe shortage.According to the above two problems, this paper proposes UML2.0interactionoverview diagram (IOD) as the test model, which combined UML activity diagram andsequence diagram describes the business process and the interaction details of system, itis good to make up for deficiencies in the activity diagram and sequence diagram andhas opened up a new field to the software test. Currently the software test based onUML2.0interaction overview diagram is less, and the traditional test method based onactivity diagram or sequence diagram is not suitable to interaction overview diagram,therefore, this paper presents a test method based on UML interaction overviewdiagrams, and combines with the OCL constraints to generate test cases which containconstraint information, process information and object interaction information.This article is mainly combined with UML interaction overview diagram, classdiagram, and sequence diagram. Firstly,it analyses the new features and structural ofUML class diagrams and interaction overview diagrams, sequence diagrams, newfeatures and gives the formal definition, by adding the OCL constraints in classdiagrams to enhance the accuracy of UML to describe system; Secondly, it constructstestable interaction overview diagram model. Interaction overview diagram contains notonly the business process information of system, also contains the interactioninformation between objects. According to IOD process structure information constructtheNode Control Flow Graph (NCFG); according to sequence diagram which containsmessages and combination framework such as alt, loop, break, construct Message Constraint Sequence Diagram (MCSD), and final structure the testable interactionoverview diagram model. Next, it analyses the loop and concurrent structure, designstest coverage criteria, and gives the concrete steps of test clues generated; according theconstraint conditions of the test clues in combination with equivalence-partitioningmethod and boundary-value analysis method to generate test datas and complete testcases.Through the above theoretical research, this paper proposes a testing frameworkbased on UML interaction overview diagram. Analyse the XMI model of RationalSoftware Achitect (RSA) file and develope a prototype tool based on this framework.Implement the model information parsing and extracting, the testable interactionoverview diagram generation and the test clues automatically generated. At last, byexperimental examples using the tools to automatically generate test clues; theexperimental results show the feasibility and effectiveness of the proposed method.
Keywords/Search Tags:UML, Interaction Overview Diagram, Sequence Diagram, Test Clue, TestCase
PDF Full Text Request
Related items