kenny_trytek
14 years agoOccasional Contributor
"Unknown Name" Exception in Log.Picture Call
I have a keyword test that is run by a script and needs to perform logging actions from the script. I have two variables in the keyword test that accommodate this need, "testResultScreenshot" and "testResultText".
Both the screenshot and text are set during the keyword test run, so just after the run a method can be called that will perform logging operations. However, when I call "Log.Picture(test.Variables.testResultScreenshot, test.Variables.testResultText);", I get an "Unknown name" exception. Here are the exception details in the caught exception object:
description: Unknown name
message: Unknown name
name: RangeError
number: -2147352570
An example of the methods being used to get the log info are
test.Variables.testResultScreenshot = NameMapping.Sys.IEXPLORE.pageEditor.Picture();
test.Variables.testResultText = "Exception caught. Test " + test.Variables.name + " failed.";
What are the possible causes of this exception? I didn't find anything in the documentation about this error.
Both the screenshot and text are set during the keyword test run, so just after the run a method can be called that will perform logging operations. However, when I call "Log.Picture(test.Variables.testResultScreenshot, test.Variables.testResultText);", I get an "Unknown name" exception. Here are the exception details in the caught exception object:
description: Unknown name
message: Unknown name
name: RangeError
number: -2147352570
An example of the methods being used to get the log info are
test.Variables.testResultScreenshot = NameMapping.Sys.IEXPLORE.pageEditor.Picture();
test.Variables.testResultText = "Exception caught. Test " + test.Variables.name + " failed.";
What are the possible causes of this exception? I didn't find anything in the documentation about this error.