Font Size: a A A

Based On Metadata Test Case Generation For Component

Posted on:2008-04-07Degree:MasterType:Thesis
Country:ChinaCandidate:Y H MaFull Text:PDF
GTID:2178360215480736Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Besides Object-Oriented technology, component technology has become another popular methodology in the development of modern software systems. Component testing is a primary instrument for guaranteeing component quality. With the rapid development of component technology, component testing deserves more attention. However, some new characteristics of component, such as inheritance and encapsulation, restrict the application of conventional testing methods in component testing. One of the chief challenges faced by component testing is the absence of related testing information, which induces that component tester is incapable to acquire adequate information and can not generate effective test cases to check components sufficiently. At the same time, metadata, which is defined to describe other data, can provide associated information about data content, coverage scope, quality, management manner, owner and provision ways etc. Therefore, it is significant to develop a new and effective component testing approach based on metadata.After a survey of major research approaches in component testing and metadata theory, this thesis analyzes shortages of existent component testing approaches and the feasibility of applying metadata to component testing, and then presents a test case generation approach based on metadata for component. Extracting the information related to testing from metadata to generate component test case provides a new and feasible approach for component testing. Experimental results show that test cases developed by this approach can efficiently detect requirement and functional faults in component. The contributions in this thesis are mainly focused on the following aspects:1. An expression method of component metadata is proposed. We need such an expression method by which the information related to component testing is abstracted conveniently. This information provides support for the research of component testing approach. However, existing component metadata lacks the corresponding information for testing. Therefore, this paper proposed an improved expression method of component metadata. On the base of our research in component characteristics, the improved expression method proposed in this thesis overcomes the disadvantages of the original expression for component metadata. It defines the specific contents included in component metadata, discusses the detailed approach to describe component metadata using XML, and implements the algorithms of querying and acquiring component metadata.2. A test case generation approach for component based on metadata is presented. According to this approach, the method invocation sequences are derived from component metadata, test method sequences of component are generated with the help of UML sequence diagram, and then test cases are designed according to test method sequences to check the component.3. We verify the efficiency of the proposed test case generation approach based on metadata for component. Using an Email Component as example, according to the test case generation approach based on metadata for component, 20 test cases were developed, and three kinds of software defaults are detected. In addition, we compare this approach with others. Experimental results show that this approach is effective and promising. The test cases developed can remarkably reveal requirement faults and functional defects in component. Applying metadata in test case generation of component can enhance the efficiency of component.
Keywords/Search Tags:Component, Component testing, Metadata, UML Sequence Diagram, Test method sequence
PDF Full Text Request
Related items