Hi,
I am using ranorex API in my visual studio solution. Whenever something goes wrong, test script is failed and in report I can see the failure reason. I want to know the state of UI at the time of failure.
Is it possible to enable some settings through code which will capture the screenshot whenever any failure/error takes place?
I know ranorex api has one method - Report.Screenshot(). But I have to call it at all places wherever I feel the error can occur. It will not cover all the scenarios as I am not aware, in future at which all places error can occur?
Regards,
Deepak Gupta
Take screenshot of UI at the time of failure
-
- Posts: 19
- Joined: Sat Feb 13, 2016 5:04 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Take screenshot of UI at the time of failure
Hi Deepak,
Taking screenshots in case of an error is an Test Suite feature. Since you are not using a Test Suite, you would need to create your own error handling. This could be done by using Report.Screenshot within a try-catch block.
I hope this information helps you solving your intention.
Regards,
Markus (S)
Taking screenshots in case of an error is an Test Suite feature. Since you are not using a Test Suite, you would need to create your own error handling. This could be done by using Report.Screenshot within a try-catch block.
I hope this information helps you solving your intention.
Regards,
Markus (S)