Font Size: a A A

Based On The Contract Component Test Data Generation And Multiplexing Method

Posted on:2010-01-13Degree:MasterType:Thesis
Country:ChinaCandidate:H W ZhangFull Text:PDF
GTID:2208330332478252Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
If the reusable software components can be used in quantity during software development process, it can not only increase productivity, reduce production costs, shorten development cycles, but also improve the flexibility and standardization of software systems. The high quality of component is the prerequisite that it can be reused successfully. Component testing is an important technique to assure component quality.The function of component is usually presented as its interfaces. Duo to the inherent characteristics of component, it must be tested adequately by component developers and component reusers. Test data generation is an important part in component testing, which has a direct impact on the efficiency and cost of testing.This dissertation generates and reuses test data based on component contract. For the different types of contract, we use different methods to generate test data. For the simple contract, we use the method of equivalence class partition, random values and boundary value selection. For the complex contract, we firstly use them to constitute the linear equations, and then use Gauss elimination method to solve linear equation to gain the relevant test data. In order to improve the testing efficiency and assure the testing quality, we present a method of contract-based test data reuse, which reuse previous test data according to the relationship between initial contract and new contract. We need to distinguish various types of contracts while reusing the test data.In this dissertation, we use B/S architecture to implement a contract-based component testing tool supporting test data generation and reuse. This tool can be used by component developers and component reusers. Component developers can generate test data based on initial contract; component reusers can generate test data or reuse previous test data to new contract. After the test data generation, testers can use contract mutation technique to reduce the mount of test data. After the test data executed, the practical result can be obtained. This tool can reduce testing costs, lighten the work power of testers, which can provide a better support to component testing.Finally, large numbers of experiments are executed to verify the effectiveness of our method and the availability of the testing tool.
Keywords/Search Tags:Component testing, Contract, Test data generation, Test data reuse
PDF Full Text Request
Related items