I am writing tests for a webui, and have access to a WebGrid (actually Zalenium) stack to send my web ui tests to. We have requirements to test against different browsers on different platforms. Our implementation currently supports configuring from (really anywhere) the browser/platform used by the test using selenium capabilities. We are using Cucumber implemented with Java.
My question is how to best encompass all the tests across all browser/ platform combinations I want to test in a single run?
I know I could do something like:
Scenario Outline: Basic ui test
Given browser "<browser>" on platform "<platform>"
When user does something
Then something happens
Examples:
| browser | platform |
| firefox | linux |
...
But this has several downsides:
- That examples table needs to be kept consistent across many, many scenarios
- Makes using examples more complex for actual parameters as designed (need to have the browser combinations set for each combination of actual example data)
Is there a way to rerun tests with different configurations outside of these examples? An option would be to simply run the test suite multiple times configured with a different browser/platform but I would prefer to keep it all in one run for reporting purposes.