I want to test different queries, in fitnesse using dbfit, on a table present in different environment. Each environment has a different connection string. So instead of creating multiple pages for each environment(which is again a tedious task since each time a single change in the query may lead to change in all the test pages), I would like to store the connection string in a single file(may be text or excel sheet) and read the connection string out of it according to the requirement.
Can anyone help me out on how to proceed?
I'm not sure if the following is perfect fit for your requirements but I have an own "configuration" page for each database. Then I simply
includethe configuration page in the each of the test pages:You can switch the database during the test simply by including new configuration as the example below demonstrates: