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