At the moment my specification files are along the lines of:
Scenario Outline: Do stuff Given I am on the "<website>" And I have entered "red" into the search field When I do something Then something happens Examples: | Description | website | | Domain1 | www.domain1.com | | Domain2 | www.domain2.com | | Domain3 | www.domain3.com |
Which works ok, to a point but isn't very repeatable or extendable for other environments (e.g. dev, test, uat, rel, stg etc..).
What's best practice here?
- Get the site details from a database?
- Get the site details from config?
- Something else?
My end goal is to have a suite of repeatable acceptance tests, that can run on a box, which can be pointed to whichever combination of environments is needed at that time.