Patent ID: 9274922
Filing Date: 2016-03-01
CPC Classification: G06F

Claim Text:
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 specific function under test; setting, by the processor, an expected result parameter corresponding to the specific function under test and the known system environment; issuing, by the processor, a call to execute the specific function under test, wherein the specific function under test is called by a higher-level module and the specific function under test is a lower-level module than the higher level module that called the specific function under test and the expected result parameter is passed through multiple levels of nesting modules and assigned to the specific function under test when the specific function under test is called, wherein the expected result parameter is an added parameter to an invocation statement of a function in a call stack; comparing, by the specific function under test, the assigned expected result value to an actual result value; determining, by the specific function under test, an error based on the actual result value being different from the assigned expected result value; performing, by the specific function under test, a low-level diagnostic based on the determined error, wherein the performing of the low-level diagnostic comprises a capturing of a current system environment immediately following the error which includes performing a storage dump, recording a plurality of trace data, and collecting a plurality of problem documentation in retained memory; and receiving, by the processor, a return value from the specific function under test based on the issued call.