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
Report.Log
Re: Report.Log
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...
Ciege...
- artur_gadomski
- Posts: 207
- Joined: Mon Jul 19, 2010 6:55 am
- Location: Copenhagen, Denmark
- Contact:
Re: Report.Log
Wouldn't disabling tracing screenshots help?
TestReport.EnableTracingScreenshots = false;
http://www.ranorex.com/Documentation/Ra ... nshots.htm
TestReport.EnableTracingScreenshots = false;
http://www.ranorex.com/Documentation/Ra ... nshots.htm
Re: Report.Log
You can also try: Global Settings -> Recorder Defaults -> Capture a screenshot for each stepTestReport.EnableTracingScreenshots = false;
Re: Report.Log
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.
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.