WatiN Testing and Connection Strings Fiasco
Posted
by azamsharp
on Stack Overflow
See other posts from Stack Overflow
or by azamsharp
Published on 2010-05-27T15:26:15Z
Indexed on
2010/05/27
15:31 UTC
Read the original article
Hit count: 281
integration-testing
|watin
I have a separate project which performs watiN tests. The project is in the form of class library project. When I run test it launches the browser and then uses the Web.config of the Web Application Project which I am testing. The Web.config of web application project has the Dev connection string which should not be used for testing.
What are different ways that I can take and tell my WatiN to use the App.config that is inside the WatiN project and not the Web application project?
Here are couple of options that I have:
1) Replace the connection string at runtime. 2) Replace the connection string at pre-build event or something.
© Stack Overflow or respective owner