Exception Handling.

Best practices, code snippets for common functionality, examples, and guidelines.
theraviz
Posts: 111
Joined: Sun Apr 14, 2019 9:46 am

Exception Handling.

Post by theraviz » Fri Apr 08, 2022 10:08 am

Hi,

I have a testcase with 100 iterations. I have to capture screenshot at the end of each iteration. But in some cases when the test fails screenshot is not being captured.

Is it possible to take a screenshot at the moment test fails for whatever reason it may be? Kindly let me know.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Exception Handling.

Post by odklizec » Fri Apr 08, 2022 10:14 am

Hi,

Is the screenshot action used in Teardown section of given testscase? Modules in Teardown section are performed regardless of failure.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration