Forum Discussion

Philip_Baird's avatar
Philip_Baird
Community Expert
12 years ago

Acessing the Exception Object in a Keyword Test Catch statement


Hi, I have got my Test Scripts executing nicely in Keyword Tests within Try/Catch/Finally statements but have a question re. Catch blocks and obtaining a reference to the Exception object.


 


At the moment, my Catch simply logs that an Exception was logged, I would like to be able to somehow interrogate the Exception object and Log, say, the message or something else based on what the Exception object is and/or what it contains.


 


Is it possible to get a reference to the Exception object in a Keyword Test Catch block?


 


Regards,


Phil Baird

No RepliesBe the first to reply