Report.Log

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

Report.Log

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

Hi,

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.

Regards
Harendra

User avatar
Ciege
Ranorex Guru
Posts: 1335
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!

Ciege...

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

Re: Report.Log

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

Wouldn't disabling tracing screenshots help?
TestReport.EnableTracingScreenshots = false;
http://www.ranorex.com/Documentation/Ra ... nshots.htm

zator
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

harendra
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.