UiADPv1 Exam QuestionsBrowse all questions from this exam

UiADPv1 Exam - Question 95


Which part of a test case that is using BDD (Behavioral-Driven Development) template structure supports the Surround with mock feature?

Show Answer
Correct Answer: C

In a Behavior-Driven Development (BDD) test case structure, the 'When' part is where the action or event that is being tested occurs. The 'Surround with mock' feature is used to mock or simulate the behavior of certain dependencies during the action phase of the test. Therefore, this feature primarily supports the 'When' part of the test case to ensure that the action is tested in isolation from its dependencies.

Discussion

3 comments
Sign in to comment
AndresPCOption: C
Feb 15, 2024

C is the correct one: In a Given-When-Then test case structure, Surround with mock is only available for activities within When. https://docs.uipath.com/studio/standalone/2022.10/user-guide/mock-testing

Birk54Option: C
Feb 20, 2024

C is correct. See uiparth doc

milindkumarOption: C
Feb 29, 2024

https://docs.uipath.com/studio/standalone/2022.10/user-guide/mock-testing