Поделиться через


Dynamic and Configurable Coded UI Tests

I was working with a customer this week that needed some help with Coded UI tests in Visual Studio. In a nut shell, they needed two things.

  1. Pull some configurable data values from a data source to be used in the Coded UI tests. These values could change depending on the environment (dev, test, staging, production).
  2. Store a key/value pair to be used in later tests. For example, maybe access a web service that returns a dynamic value. We would need to keep that value available to be used in a test down the line.

For a solution, along side some shared code, I thought we could use a SQL Database Project in Visual Studio. So I went ahead and created a small project to do just this. After being inspired by Scott Hanselman's Blog Post I decided to put the code out on GitHub for anyone else who may run across the same need. Currently the code is pretty simple and straight forward but it gets the job done. Please take a look and feel provide feedback or suggest changes as you see fit. 

 

https://github.com/MellehNad/DynamicCodedUITests