Font Size: a A A

Automatic Testing For Classes In Object Oriented Design

Posted on:2008-01-29Degree:MasterType:Thesis
Country:ChinaCandidate:Y P HuangFull Text:PDF
GTID:2178360212483408Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the development of computer techniques, the complexity and scale of software have increased greatly. Software invalidation has become the main cause of the system paralyse. So the enhancement of software quality and reliability has become an important task in the field of software engineering. Software testing is an important means for the software quality ensurance. Object - oriented software testing is indispensable to the development of object - oriented software , and is the key to software quality and reliability. Class testing is the key to object - oriented software testing. Hence this thesis has taken the object-oriented software testing features and methods as its research object. In the thesis important issues have been discussed, such as the main characters of the object-oriented software testing, impact of object-oriented mechanism on the testing, testing levels of object-oriented software, and testing orders of classes. Among the eight methods,the test cases generation of state-based class testing has been chosen as our research focus.The testing for Object- Oriented software contains three levels: class level, cluster level, and system level. lgorithmic level,we can say that,is the service-based level testing too. The services testing of class is an important component part of object - oriented testing.which test can be divided into three parts according to the order of test: test based on methods of class, test based on state of class and test based on response of class states . In this paper ,we mainly discuss the service-based level testing and advance a suit of approaches on service-based level auto-testing. We realize it by three ways.Frist,we can learn automated classes , methods and some properties of the program waiting to be tested by using attributes and characters of system.reflection and system.type , we collect so much information that we can test every class or method ,and then we use the mechanism of excel.dll to memory these information. Secondly,we can read the cases from the program by the technique of XML,and then storage them in the excel form. Thirdly , we can autogenerate the testing codes by using system.codedom ,and then auto-perform these codes to complete the testing task . In this paper ,we mainly discuss the theory of these technique and how to programme using them.
Keywords/Search Tags:object - oriented, software testing, service– based testing
PDF Full Text Request
Related items