user_j_e
14 years agoOccasional Contributor
function.caller and USEUNIT
I am running tests on a remote machine using TestExecute.
I was thinking I could do a Log.SaveResultsAs() and save the results locally so management can view the errors in a browser.
I wanted to save the file name of results as the function.caller + ".mht".
However the function.caller does not seem to span USEUNIT
For example when these two functions are in the same USEUNIT and I run test();
function test()
{
called();
}
function called()
{
Log.Message(called.caller);
}
It prints the "function test() .... ";
If I call the "Called" function from a different USEUNIT it does not print the function.
Is there another way I can get the original caller name ? I only plan on doing the Log.SaveresultsAs() for errors.
Thanks.
I was thinking I could do a Log.SaveResultsAs() and save the results locally so management can view the errors in a browser.
I wanted to save the file name of results as the function.caller + ".mht".
However the function.caller does not seem to span USEUNIT
For example when these two functions are in the same USEUNIT and I run test();
function test()
{
called();
}
function called()
{
Log.Message(called.caller);
}
It prints the "function test() .... ";
If I call the "Called" function from a different USEUNIT it does not print the function.
Is there another way I can get the original caller name ? I only plan on doing the Log.SaveresultsAs() for errors.
Thanks.