Exam UiADPv1 All QuestionsBrowse all questions from this exam
Question 95

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

    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
AndresPCOption: C

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

milindkumarOption: C

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

Birk54Option: C

C is correct. See uiparth doc