Browse Prior Art Database

Use of a Java Interface to define multiple test arguments Disclosure Number: IPCOM000013276D
Original Publication Date: 2000-Nov-01
Included in the Prior Art Database: 2003-Jun-18

Publishing Venue



Using A Java* Interface To Define Multiple Test Arguments This article discloses the details of an invention to statically define multiple test arguments using a Java Interface. Such an interface as defined and supported by the applicable test harness enables engineers who write testcases to pre-define test arguments directly in their testcases, ensuring their use in future invocations of the testcase. As part of the Tivoli’s** Java Execution Framework (JEF), the interface in question is defined to provide a common place where engineers can collect a set of default test arguments that will always be used for testcase execution. The interface consists of a two dimensional String array, as shown in Fig. 1. It is intended to be used with JEF’s abstract JEFTestCase class or the IJEFTest interface. For each set of arguments the testcase will be invoked once and the arguments defined for that invocation will be appropriately parsed and placed into the String[][] argv array for the applicable methods of the testcase. This is done by the JEF Test Harness by introspecting the testcase and invoking its methods directly with these each new set of arguments. If a testcase implements this interface and has the public static String testArguments variable defined, then it is used. An engineer would use this interface if they had a set of arguments that under normal conditions should always be passed into the testcase e.g. to perform regression testing, bounds checking, etc...). An example of the format of such an interface definition in a testcase is given in Fig. 2. The user can easily extend the number of testcase invocations and arguments later by updating the contents of this array in the source code and recompiling. Therefore, as new conditions arise