Browse Prior Art Database

Javabeans Test Case

IP.com Disclosure Number: IPCOM000013289D
Original Publication Date: 2002-Jul-01
Included in the Prior Art Database: 2003-Jun-18
Document File: 5 page(s) / 54K

Publishing Venue

IBM

Abstract

1. KEY IDEAS We present a novel approach to software testing by treating a test case as a software components that can be reused, customized and assembled offline during code development or dynamically at run time. Specifically, we treat a test case as a JavaBean, which can be customized using a Java Bean Development Kit (BDK) or during actual testing by loading the test cases within a run time testing framework which supports the functions expressed in a BDK. Reusability is gained primarily through the mechanism of class inheritance. Basic functionality shared by most test cases is supported in a super class JavaBeans Test Case which testers extend and specialize for their own special test environment. 2. CLAIMS 2.1Broadest Claims

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 21% of the total text.

Page 1 of 5

Javabeans Test Case

1. KEY IDEAS

We present a novel approach to software testing by treating a test case as a software components that can be reused, customized and assembled offline during code development or dynamically at run time. Specifically, we treat a test case as a JavaBean, which can be customized using a Java Bean Development Kit (BDK) or during actual testing by loading the test cases within a run time testing framework which supports the functions expressed in a BDK. Reusability is gained primarily through the mechanism of class inheritance. Basic functionality shared by most test cases is supported in a super class JavaBeans Test Case which testers extend and specialize for their own special test environment.

2. CLAIMS
2.1Broadest Claims

· Program Language: Test Cases and the supporting testing framework are coded in the Java programming language. Ideally the same test code can run on all target machines. The Java programming language is extremely portable since it runs on all systems that support a Java Virtual Machine and most major computer vendors support Java. When the application under test is written in C or C++ code, Java provides a standardize procedure for accessing the C or C++ code. This means that testing these non-Java environments with a Java based solution is possible, however portability is restricted.

· JavaBeans Test Case: A test case is a JavaBean that extends the Runnable class and implements Serializable.

· Test Case versioning: JavaBean test properties, i.e. variables, may be modified prior to testing or during testing. Prior to testing, the properties may be customized interactively using a Java BDKs or simply by extending the test case class and altering the properties. During actual testing, the properties may be modified programmatically since properties are expressed as public members (public setter and getter methods). Or they may be modified interactively with a run time testing framework, which supports the functions expressed in a BDK. Since a test case is serializable a particular version can be saved and re-loaded from a host file system.
· Reuse: Test case reuse is gained primarily through the mechanism of class inheritance. Basic functionality shared by most test cases is supported in a super class JavaBeans Test Case which testers extend and specialize for their own special test environment.

· Test Execution: JavaBeans Test Case execution is simplified since JavaBeans are simply Java Classes and these classes can by dynamically loaded from the file system using a Java class loader, a common Java function.

· Test Administration: Test administration is simplified since JavaBeans test cases are individual Java files. The test cases can be managed organized and archived like any standard file. Also Java Doc provides a simplified and standardized documentation facility that can be used to easily document the test cases which compromise a test suite.

· JavaBeans Test Case Assembly...