A .NET version is included with fitSharp. Recently, development has been restarted on the Java version so it may contaiin new features that are not in the .NET version.
We can use DbFit by including the following in a Suite Configuration File.
<suiteConfig> <ApplicationUnderTest> <addNamespace>dbfit.fixture</addNamespace> <addAssembly>C:\apps\fitSharp\dbfit.dll</addAssembly> <!-- choose one or more of the following --> <addAssembly>C:\apps\fitSharp\dbfit.sqlserver.dll</addAssembly> <addAssembly>C:\apps\fitSharp\dbfit.mysql.dll</addAssembly> <addAssembly>C:\apps\fitSharp\dbfit.oracle.dll</addAssembly> <addAssembly>C:\apps\fitSharp\dbfit.sybase.dll</addAssembly> </ApplicationUnderTest> </suiteConfig>To open a database connection using the connection strings in the .NET application configuration file, we can use:
| connect using config | myConnectionName |