I have an automated test that runs against a Silverlight application. At some points I connect to the database to verify that the data persisted correctly. In these cases, I write code in a test step to connect to the database. I use a hard coded connection string in my coded step. The only problem is that my Silverlight application may be using different databases depending on the environment. (i.e. QA, Dev, Production) I do not want to change my connection string (in every coded step) every time I go against a different database. Is there a better way to easily change my connection string when I am running my automated test? Maybe there is a global setting or configuration file that I may use to put these values. What is the best way to handle this situation? Please let me know.