Hi,
Even if this post is a duplicate of Muthu's one, I'm replying here
because he hijacked his own thread asking a totally unrelated
question.
As Matt wrote, it's not supported in Cucumber. I believe there is a
way of addressing your problem though. You never explained what
application you are working on so I can give you only a generic
advice.
If you need to test your software in different environments, in my
opinion you should NOT use Scenario Outlines but instead pass an
environment variable with the name of the environment to use (perhaps
defaulting it to some value).
Let's say your web application needs to be compatible with four
browsers. As your features should express business needs, they should
not mention what browser the test should be using. I'm sure the
business assumes that all four browsers are fully supported! It is a
constraint, that should always be satisfied, just like performance,
security, etc.
When you run the features, your step definitions or hooks will create
the correct browser depending on the environment variable (i.e. drive
Chrome if BROWSER=chrome, Internet Explorer if BROWSER=ie, ...).
During development, you want a quick response, so you might want to
use a headless browser. This might be the default environment, when
the environment variable is undefined.
Before checking in the code, probably the developers should run the
full test suite with a reference browser (pick one that is available
on all dev boxes, that the business values most and that supports all
the features of your app).
The continuous integration server would then build the application and
execute features with ALL browsers (one run each, with different
environment variables).
As Oleg wrote, if a functionality is not supported by a browser, you
can tag the scenarios unsupported with something like @no-ie and
exclude scenarios tagged like that when running your features with IE.
It should be the exception rather than the rule though.
Paolo