How do I re-run a webtest that requires unique values?
I have a multi-page webtest that registers a new user. The username entered by the user must be unique.
I imagine that I could do this with a coded webtest by calling a routine that generates the username for me.
Is it possible to record such a test and somehow have it use a unique value for username each time it is run?
There are a few choices here in a non-coded test:
- write a pre-request callback that sets generates the user name in code
- data bind the user name to a canned set of usernames. Checkouot the walkthrough for an example of how to do databinding. You would have to re-generate the user names after each test, or reset the database that the usernames are in.