Câu 44: UiSTEPv1: UiPath Software Testing Engineer Professional
When an exception is thrown during a test case execution, it is desirable to fail the test case and take a screenshot of the current state of the application. Which of the following strategies can be used to achieve this?
Nội dung câu hỏi
When an exception is thrown during a test case execution, it is desirable to fail the test case and take a screenshot of the current state of the application. Which of the following strategies can be used to achieve this?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Surround the test case in a Try CatchAdd a Verify Expression in the Catch Exception block, configured in the following way:TakeScreenshotIfFailed: False -Expression: False
- B. Surround the test case in a Try CatchAdd a Verify Expression in the Catch Exception block, configured in the following way:TakeScreenshotIfFailed: True -Expression: True
- C. Surround the test case in a Try CatchAdd a Verify Expression in the Catch Exception block, configured in the following way:TakeScreenshotIfFailed: True -Expression: False — đáp án hiện tại
- D. Surround the test case in a Try CatchAdd a Verify Expression in the Finally Exception block, configured in the following way:TakeScreenshotIfFailed: True -Expression: “1 > 2”
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.