Forum Discussion
You can create your own event handler and only use it where the images are not sensitive.
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
- Jaime3 years agoOccasional Contributor
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
Related Content
- 6 years ago
- 5 years ago
Recent Discussions
- 17 hours ago