Hi,
I have 2 basic questions that I haven't been able to locate anything searching the forums:
1) How is Ranorex logging turned off? I have tried "Report.Setup(RepportLevel.None, "", false), but I get a compiler error.
2)Is there any way to redirect "Report.Screenshot" to a specific folder location?
Thanks for any help!
Eric
Logging and Screenshots
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Logging and Screenshots
Hello Eric,
You can change the report settings in the Properties window from the test suite.
If you want to use the Report.Setup() method in the user code from specific recording you have to use this line:
Regards,
Bernhard
Ranorex Support Team
You can change the report settings in the Properties window from the test suite.
If you want to use the Report.Setup() method in the user code from specific recording you have to use this line:
Report.Setup(ReportLevel.None, null, false);If you use this, a report will be generated, but there will be no messages from the recording in it.
Regards,
Bernhard
Ranorex Support Team
You do not have the required permissions to view the files attached to this post.
Re: Logging and Screenshots
Thanks for the response.
But, is there a way to take screenshots when the Report is turned off?
Also, can the screenshot be renamed and redirected to a user-defined folder location?
Eric
But, is there a way to take screenshots when the Report is turned off?
Also, can the screenshot be renamed and redirected to a user-defined folder location?
Eric
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Logging and Screenshots
Hi,
Yes, you can create and save them to a specific directory even if the report is turned off.
Here is a code:
Hope this will help.
Regards,
Markus
Ranorex Support Team
Yes, you can create and save them to a specific directory even if the report is turned off.
Here is a code:
Imaging.CaptureImage(repo.Calculator.Close.Element).Save(@"C:/image.jpg"); // you can take any Elementand the link to our online API: Imaging Class.
Hope this will help.
Regards,
Markus
Ranorex Support Team