Forum Discussion
Hi Marsha_R!
Thank you - although, I am now able to generate an event that grabs a screenshot on Log.Error. But I can't seem to find how to make an event only apply to tagged tests... Any ideas?
Thank you so much!!!
Jaime
Playing around with code...
function EventControl1_OnLogError(Sender, LogParams)
{
If (@functional.Exists){
Log.Picture(Sys.Desktop.Picture(), "Capture Image on Failure", "", pmHighest);
}
}
// Seems to not recognize the tag of @functional. Ideas? Thanks!!!
- Marsha_R3 years agoModerator
A tag is more like a label than an object. It doesn't have properties like Exists.
https://support.smartbear.com/testcomplete/docs/scripting/tags.html
- Jaime3 years agoOccasional Contributor
Thanks Marsha...
Any ideas on how to turn on post images just on one script (non-keyword, but a javascript unit instead)?
Thx!
Jaime
- Marsha_R3 years agoModerator
If it's in one unit, then how about Try/Catch?
https://support.smartbear.com/testcomplete/docs/scripting/handling-exceptions.html
Related Content
- 2 years ago
Recent Discussions
- 17 hours ago