Method and apparatus for environment-variable driven software testing
AssigneeSun Microsystems, Inc.
InventorsMicheal E. Janniro, Robert B. Jervis, Donald G. Miller, Jr.
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorsMicheal E. Janniro, Robert B. Jervis, Donald G. Miller, Jr.
Estimating the term…
An apparatus and method for testing software is disclosed. A test base is constructed on a storage device by creating a plurality of directories connected to form a hierarchical directory structure. Files associated with software programs to be tested are stored in directories within the hierarchical directory structure. Such files may include source code files, test input files and expected output files. Environment files and environment configuration files that specify values for environment variables are also stored in the test base. A test is run by invoking a test engine and passing to the test engine the name of an environment file and the name of a test. The test engine modifies the values of environment variables based on the specified environment file prior to executing the specified test. After modifying the environment based on the specified environment file and prior to executing the test, the test engine further modifies the environment based on any applicable environment configuration files. The test engine determines which environment configuration files are applicable to a test based on the location of the environment configuration files in the test base relative to the location of the directory that contains the files associated with the test. In addition to single test operations, the test engine may perform a series of tests based on a test list. The test apparatus also includes a tool for storing the results of past tests, and a tool for generating test lists in which tests are ordered based on the results of past tests. Multiple tests are performed simultaneously by distributing the test processes among a plurality of processors.
An apparatus for performing a test on software in a computer system, wherein said computer system has an initial environment, the apparatus comprising:
A method for performing a test on software in a specified environment in a computer system, the computer system including a storage device containing a test base, the test base including a plurality of directories connected to form a hierarchical directory structure, wherein a first directory of said plurality of directories corresponds to said test, wherein a plurality of environment configuration files are stored in said plurality of directories, the method comprising the steps of:
A method for performing a test on software using a test base on a computer-readable storage device, the method comprising the computer-implemented steps of:
A method for performing a second series of tests on a plurality of software programs based on results of a first series of tests performed on said plurality of software programs, the method comprising the computer implemented steps of:
A method for selecting a subset of tests to run on software programs, wherein said subset of tests are a subset of a plurality of tests, the method comprising the steps of:
An apparatus for performing a test on software in a computer system having a processor, wherein said computer system has an initial environment, the apparatus comprising:
Dependencies are inferred from the claim text.