How do I prevent failure message to creat screenshots
Posted: Tue May 10, 2016 5:37 am
Hi Everyone,
I got the following code:
Thanks,
Felix.
I got the following code:
Report.Log(ReportLevel.Info, "Validation", "Validating AttributeEqual (Visible='True') on item 'AuComPlanetinnovationGidget.GidgetApp.MultipartLabelAlert'.", repo.AuComPlanetinnovationGidget.GidgetApp.MultipartLabelAlert.SelfInfo); try { Validate.Attribute(repo.AuComPlanetinnovationGidget.GidgetApp.MultipartLabelAlert.SelfInfo, "Visible", "True"); } catch(ValidationException e) { Report.Log(ReportLevel.Failure,"Failure",e.Message.ToString()); return; }Us result of the test run I am getting the following failure in report: How can I disable screenshots in Validate function and still have it in first Report.Log function.
Thanks,
Felix.