I have a workflow which pops up an input dialog, accepts user input, then does something to that and returns it out of the workflow. I want to create a data-driven test for the workflow, where I pass in various possible user inputs, and test the outputs. The problem is, when I run the tests, the input dialog pops up, and the test freezes because it’s expecting input. How do I automate the filling in of the dialog with my test data and clicking OK, so the test can continue?
I found a way to run the tests by surrounding the input dialog activity in the original workflow with an if statement and skipping opening it if an argument isTest is true. But I’d like a way to create tests without altering the original workflow. Is there a way to do this?
Hi yes, thanks for that. One more question, can you convert an already built test case into a mock test case? Or does that have to be done at test case creation time only?