QuestionQ147

Advanced UI automation

A requirement of the organization’s testing strategy is to attach a screenshot to a test-case execution whenever it fails. How can this be accomplished?

  • A Surround the Verify activity in a Try Catch and use a Take Screenshot activity in the Catch block
  • B Use the Attach Document activity and set its AttachmentType property to Screenshot.
  • C Use a Take Screenshot activity and set its AttachToExecution property to True.
  • D Use one of the Verify activities and set its TakeScreenshotIfFailed property to True.
Explanation

UiPath Verify activities provide the TakeScreenshotIfFailed property. When it is set to True, the activity captures a screenshot of the target process if the verification fails, associating the failure evidence with the test execution.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!