For Programmers: Free Programming Magazines  


Home > Archive > Software Testing > October 2005 > VS Team System Edit Test Run Configurations









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VS Team System Edit Test Run Configurations
AndriiChuk

2005-10-26, 4:02 am

Hi guys, I have a little problem.
I have a bunch of unit tests for some sqlserver database and need to
force them work on oracle database.

I use the smart class for working with data, which can work with any
datasource depending on the param string ("sqlserver" or "oracle" etc):
DataManager.UpdateTable("sqlserver", someDataTable).
The datasource settings are provided by the configuration file:
<datasource name="sqlserver", constring=... />.

So, in my case two test run configuration will be:
1) Oracle test run configuration with db string = "oracle"
2) SqlServer test run configuration with db string = "sqlserver".
And in unit tests the following lines of code will be:
DataManager.UpdateTable(testDbString, someDataTable).

Does anybody know how to write the setup scripts, which would set such
db string parameter (testDbString)?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com