It is common to Mock integrations, classes, libraries, etc. in unit tests to force a specific behavior/scenario and to then assert that your code handles that scenario appropriately. Does anyone have ideas for how to mock an Activity in UiPath?
For example, I have a workflow that has an Add Queue Item activity. Based on if this is successful or not, the code will behave differently (this activity might fail if there is already a Queue Item with the same Reference in a Queue that has Unique References enabled). I want to test what happens in the success scenario and the failure scenario. There are many other scenarios where mocking an activity would be helpful for writing a unit test.
I’ve adopted this Test Framework which I like quite a bit. I’ve posted my question on that component as well but it’s not specific to just that framework so I’m posting here as well.
It may not be possible to mock activities at this time but I’d love to hear ideas and see if anyone else has interested in this.