LOW- LEVEL CHECKING OF CONTEXT-DEPENDENT EXPECTED RESULTS
First Claim
1. A processor-implemented method for diagnostic testing using an expected result parameter, the method comprising:
- establishing, by a processor, a known system environment associated with a function under test;
setting, by the processor, an expected result parameter corresponding to the function under test and the known system environment;
issuing, by the processor, a call to execute the function under test;
comparing, by the function under test, an expected result value to an actual result value;
determining, by the function under test, an error based on the actual result value being different from the expected result value;
performing, by the function under test, a low-level diagnostic based on the determined error; and
receiving, by the processor, a return value from the function under test based on the issued call.
1 Assignment
0 Petitions
Accused Products
Abstract
A processor-implemented method for diagnostic testing using an expected result parameter is provided. The processor-implemented method may include establishing a known system environment associated with a function under test and setting the expected result parameter corresponding to the function under test and the known system environment. A call is issued by the processor to execute the function under test. Before returning to the caller, the function under test compares an expected result value to an actual result value. The function under test determines an error based on the actual result value being different from the expected result value and performs a low-level diagnostic based on the determined error. Then the processor receives a return value from the function under test based on the issued call.
-
Citations
20 Claims
-
1. A processor-implemented method for diagnostic testing using an expected result parameter, the method comprising:
-
establishing, by a processor, a known system environment associated with a function under test; setting, by the processor, an expected result parameter corresponding to the function under test and the known system environment; issuing, by the processor, a call to execute the function under test; comparing, by the function under test, an expected result value to an actual result value; determining, by the function under test, an error based on the actual result value being different from the expected result value; performing, by the function under test, a low-level diagnostic based on the determined error; and receiving, by the processor, a return value from the function under test based on the issued call. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer system for writing data to a local site and a remote site, the computer system comprising:
one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the program instructions comprising; program instructions to establish a known system environment associated with a function under test; program instructions to set an expected result parameter corresponding to the function under test and the known system environment; program instructions to issue a call to execute the function under test; program instructions to compare an expected result value to an actual result value; program instructions to determine an error based on the actual result value being different from the expected result value; program instructions to perform a low-level diagnostic based on the determined error; and program instructions to receive a return value from the function under test based on the issued call. - View Dependent Claims (10, 11, 12, 13, 14)
-
15. A computer program product for writing data to a local site and a remote site, the computer program product comprising:
one or more computer-readable storage devices and program instructions stored on at least one of the one or more tangible storage devices, the program instructions comprising; program instructions to establish a known system environment associated with a function under test; program instructions to set an expected result parameter corresponding to the function under test and the known system environment; program instructions to issue a call to execute the function under test; program instructions to compare an expected result value to an actual result value; program instructions to determine an error based on the actual result value being different from the expected result value; program instructions to perform a low-level diagnostic based on the determined error; and program instructions to receive a return value from the function under test based on the issued call. - View Dependent Claims (16, 17, 18, 19, 20)
Specification