Save more than 3 screenshots on error
-
- Posts: 14
- Joined: Tue Nov 08, 2016 4:24 pm
Save more than 3 screenshots on error
Currently, Ranorex will save a screenshot when an error occurs. It also the screenshots of the two actions prior to the error occurring. Is there a way to make it save more screenshots without explicitly calling the screenshot method?
Re: Save more than 3 screenshots on error
Hi tmcpherson,
Creating screenshots via adding a new action or within code would be the only way to achieve your goal.
There currently exists no setting for reporting screenshots for all or for multiple actions.
regards,
qwertzu
Creating screenshots via adding a new action or within code would be the only way to achieve your goal.
There currently exists no setting for reporting screenshots for all or for multiple actions.
regards,
qwertzu
-
- Posts: 14
- Joined: Tue Nov 08, 2016 4:24 pm
Re: Save more than 3 screenshots on error
That's disappointing. Thanks for the info.
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Save more than 3 screenshots on error
Hello tmcpherson,
In order to set the number of tracing screenshots hold per module, you can use the following line of code:
Tracing screenshots are stored and shown in the report in case the module fails and so this code sample should be exactly what you need.
regards,
Stephan
In order to set the number of tracing screenshots hold per module, you can use the following line of code:
Code: Select all
Ranorex.Core.Reporting.TestReport.TracingScreenshotCountLocal=3;
regards,
Stephan
-
- Posts: 14
- Joined: Tue Nov 08, 2016 4:24 pm
Re: Save more than 3 screenshots on error
That is exactly what I needed. Thanks!