fitnessefitnesse-slim

Can FitNesse page tags be used in page?


Is there a way in FitNesse to access page tags from inside the page?

I need to change database connection strings at test start-up and would like to use a tag as a switch.


Solution

  • I would recommend that you create multiple top level suites, one for each environment (e.g. one for testing locally and one for Azure) that defines the environment specific settings using wiki symbols (i.e. !define ...). The tests that are to be executed in all environments can be defined is separate suite that is included in each environment's suite using a symbolic link. The tests in the shared suites use the wiki symbols to get the values for the environment they are included in.