How to test a user input dialog?

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?

@Terry_Marr

Mock test is the way …please check this

Then first example with screenshot should make you understand how to use it

Cheers

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?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.