Font Size: a A A

The Research And Implementation Of User-Oriented Software Component Test

Posted on:2009-03-17Degree:MasterType:Thesis
Country:ChinaCandidate:X H HuangFull Text:PDF
GTID:2178360242995233Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
As an important part in the software engineering, software testing is the primary instrumentality to guarantee the quality and reliability of the software. The evolution of the software development technology relatively causes the development of the software testing technology. Component-based software engineering nowadays becomes a popular method of software engineering. Some characteristics of component-based system make it unsuitable to be tested by traditional testing way. Researching new software testing technology which is suitable for component-based system is becoming an important subject in software testing field.This paper represents the research of user-oriented testing for component-based system. The research allows generating test cases from a customer's specification and using these test cases to validate which component is the most suitable component for a specified system. This paper also represents a framework for user-oriented software component test. This framework uses a deployment test to test the candidate components. And the framework implements the reuse of test cases through virtual component.The main works and contribution of this paper are listed as follows:1) The characteristics of component-based system were analyzed, the component testing technology based on UML was researched and the testing strategy of UML-based test was introduced. The testability and testing strategy of generating test cases from UML sequence diagrams were analyzed in detail.2) On the test cases generating, the UML sequence diagrams with OCL have been used. Firstly, we provide a method for checking completeness, correctness and consistency of the sequence diagram. Secondly, we derive test specifications and event series from the sequence diagrams. And finally, according to test criterion, we create test cases via Category-Partition Method.3) A user oriented framework for component deployment testing is given. And a relevant model which includes generating test cases from UML sequence diagram, running the test cases and analyzing the testing result and exporting reports have been set up. This model can generate test cases without any real component available. It decouples the test case generation and the implements details.4) An integrated system for component testing was implemented. We use FTP client component as an example to validate the system. And the example generated test cases from UML sequence diagram and have test different FTP client component to find the most suitable component.
Keywords/Search Tags:component-based system, test case generation, UML sequence diagram, OCL
PDF Full Text Request
Related items