Method and apparatus for executing unit tests in application host environment
First Claim
1. A method of testing a program operating in a first environment, the program having a plurality of units, including at least one unit under test, the method comprising:
- a) executing a test agent in a second environment, the test agent specifying a test to be performed to test at least one unit under test; and
b) executing, in response to executing the test agent, a specified test in the first environment, the test generating a test result indicative of a performance characteristic of the unit under test.
2 Assignments
0 Petitions
Accused Products
Abstract
A development environment in which unit tests are prepared. The unit tests run in a host environment for more complete and accurate testing of program units. The development environment uses a test execution shim to access an adapter running in the host environment. The host adapter may invoke other program objects that run specific tests. Such objects may late bind to the unit under test. An accessor class may facilitate late binding to the specific unit under test while allowing tests authored in the development environment to use context sensitive information needed to access the unit under test.
53 Citations
20 Claims
-
1. A method of testing a program operating in a first environment, the program having a plurality of units, including at least one unit under test, the method comprising:
-
a) executing a test agent in a second environment, the test agent specifying a test to be performed to test at least one unit under test; and
b) executing, in response to executing the test agent, a specified test in the first environment, the test generating a test result indicative of a performance characteristic of the unit under test. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method of testing a program operating in a first environment, the program having a plurality of units, at least one of the units being a unit under test, the method comprising:
-
a) loading the program in the first environment;
b) exposing an interface of an object in the first environment;
c) using the object to load a test adapter in response to information provided through the interface; and
d) using the test adapter to execute a test of the at least one unit under test. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer-readable medium having computer-executable instructions for performing steps implementing a software system providing a development environment in which a test program may be developed for testing a unit of a program operating in one of a plurality of host environments, the computer-executable instructions performing the steps of:
-
a) creating a test agent; and
b) creating one of a plurality of host adapters, each host adapter configured to be used by the test agent to invoke execution of a test program in one of the plurality of host environments. - View Dependent Claims (18, 19, 20)
-
Specification