Ask general questions here.
Posts: 15
Joined: Fri Aug 17, 2012 3:32 pm


Post by harendra » Fri Aug 17, 2012 3:36 pm


Can i do Report.Failure(string, string) to login a FAILURE without saving the screenshot.

I know I can do it differently by Report.Log(ReportLevel.Failure, string) but this still does give in a screenshot.


User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Report.Log

Post by Ciege » Fri Aug 17, 2012 6:06 pm

I use Report.Failure(string) all the time to just report a failure to the log with no screenshot...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!


User avatar
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark

Re: Report.Log

Post by artur_gadomski » Mon Aug 20, 2012 8:04 am

Wouldn't disabling tracing screenshots help?
TestReport.EnableTracingScreenshots = false; ... nshots.htm

Posts: 53
Joined: Wed Jul 04, 2012 1:44 pm
Location: Kraków, POLAND

Re: Report.Log

Post by zator » Mon Aug 20, 2012 8:51 am

TestReport.EnableTracingScreenshots = false;
You can also try: Global Settings -> Recorder Defaults -> Capture a screenshot for each step

Posts: 15
Joined: Fri Aug 17, 2012 3:32 pm

Re: Report.Log

Post by harendra » Mon Aug 20, 2012 9:20 am

Thanks Artur, it does work, but just one more thing , trying to validate this statement.

Screenshots are always taken when the function completes its execution. Because if you turn this option to True just at the end of the function, screenshots are still taken in case of multiple lines you are writing to the report file.