I have a Parent Workflow A and a Child Workflow B. I’ve created a mocked version of B, called B_Mocked. When testing Workflow A, I want B_Mocked to be called instead of B. How can I achieve this in UiPath?
Hi!
Just create a new test case using the A workflow, and once it gets created, within the test case just manually modify the path in the invoke workflow, it should be appear with the workflow A, but just change it using your mock relative path
Regards
@fernando_zuluaga Thank you for the reply.
I am new to UiPath, Do you have any documentation / page where I can refer this?
SO, Basically I am calling Workflow A frmo my Unit testcase, how can I modify the path of child workflow which is inside the Workflow A at runtime
That is not possible, you must do that befere start debugging or running the file, I think in your case would be a better idea to create a new test case using the your mock file already created
OR
bring within the test case implementation a fork logic (hardcoded, dynamized, reacting on input arguments / variables)
We assume compatibility is set to Windows (and not Legacy).
Then also have a look here:
taken from: UiPath Community 2023.10 Release - Studio & StudioX