Tuesday, 27 August 2013

How to prompt user for input at runtime - coded UI automated testing

How to prompt user for input at runtime - coded UI automated testing

Coded UI Test in Visual Studio Permium 2010 - C#
I have a bunch of coded UI test and for one of them I would like to prompt
the user to enter an access code, which will then be used later in the
automated testing.
These are data driven tests, however the access code is not available
before the testing starts. One of the automated steps is to register a
user online where they receive an access code via email.
I'd like to have a prompt come up during the test where the user can enter
in the access code before the automated test continues.
I considered querying the database to get the access code, but this isn't
an option as the code is stored in active directory and the tester
machines won't have access to that, so I'm forced to do this. Any advice
would be greatly appreciated. Thanks!

No comments:

Post a Comment