You could use table transformers: http://jbehave.org/reference/stable/tabular-parameters.html

Examples:
{transformer=env}
|action|num|response|
|about|55|200|
|home|46|401|

where "env" is registered as a custom transformer that reads an env variable and correspondigly adapts the table content.

Is it only the table content that changes?

On 11/09/2012 16:14, M J wrote:
So, I have a story file that has parameters set for the story. I.E.

Given I do [action]
When The var is [num]
Then The server sends a [response] response

Examples:
|action|num|response|
|about|55|200|
|home|46|401|

Here's my issue, it works fine in dev but when I move my code to Production, the values have to change. Is there an easy way to set these variables across the environments without manually changing them when I deploy?

I.E.

Dev:

Examples:
|action|num|response|
|about|55|200|
|home|46|401|

Prod:

Examples:
|action|num|response|
|about|60|200|
|home|93|401|

Thanks, MJ

Reply via email to