Implicit Values
The following values are implicitly available to all feature and meta files at runtime by reference and interpolation.
Feature Level
gwen.profile.name
The name of the currently running profile (or blank if default).
gwen.profile.name
gwen.feature.file.simpleName
The current feature file name excluding file extension.
gwen.feature.file.simpleName
gwen.feature.file.path
The current feature file path (as provided to Gwen on command line).
gwen.feature.file.path
gwen.feature.displayName
The current feature name as displayed in all outputs (including any [x of y] occurrence)
gwen.feature.displayName
gwen.feature.eval.status.keyword
The current evaluation status (Pending
, Passed
or Failed
).
gwen.feature.eval.status.keyword
Pending
, Passed
or Failed
).gwen.feature.eval.status.keyword.upperCased
The current evaluation status in upper case (PENDING
, PASSED
or FAILED
).
gwen.feature.eval.status.keyword.upperCased
PENDING
, PASSED
or FAILED
).gwen.feature.eval.status.keyword.lowerCased
The current evaluation status in lower case (pending
, passed
or failed
).
gwen.feature.eval.status.keyword.lowerCased
pending
, passed
or failed
).gwen.feature.eval.status.isPassed
true
if the current evaluation status is not Failed
, false
otherwise.
gwen.feature.eval.status.isPassed
true
if the current evaluation status is not Failed
, false
otherwise.gwen.feature.eval.status.isFailed
true
if the current evaluation status is Failed
, false
otherwise.
gwen.feature.eval.status.isFailed
true
if the current evaluation status is Failed
, false
otherwise.gwen.feature.eval.status.message
The current evaluation status message if the evaluation status is Failed
, blank otherwise.
gwen.feature.eval.status.message
Failed
, blank otherwise.gwen.feature.eval.status.message.escaped
The current evaluation status message with all new line and special characters escaped (using Java escaping rules). Non blank if the evaluation status is Failed
, blank otherwise.
gwen.feature.eval.status.message.escaped
Failed
, blank otherwise.gwen.feature.eval.status.message.csvEscaped
The current evaluation status message escaped for CSV. Non blank if the evaluation status is Failed
, blank otherwise.
gwen.feature.eval.status.message.csvEscaped
Failed
, blank otherwise.gwen.feature.eval.started
The date and time when the feature started (in format of default locale)
gwen.feature.eval.started
gwen.feature.eval.finished
The date and time when the feature finished (in format of default locale)
gwen.feature.eval.finished
gwen.feature.eval.duration
Provides access the elapsed duration since the beginning of a feature execution in human readable format. Example: 12s 345ms
gwen.feature.eval.duration
gwen.feature.eval.duration.msecs
Provides access the elapsed duration since the beginning of a feature execution in milliseconds.
gwen.feature.eval.duration.msecs
gwen.feature.eval.duration.secs
Provides access the elapsed duration since the beginning of a feature execution in seconds.
gwen.feature.eval.duration.secs
Rule Level
gwen.rule.eval.status.keyword
The current rule level evaluation status (Pending
, Passed
or Failed
).
gwen.rule.eval.status.keyword
Pending
, Passed
or Failed
).gwen.rule.eval.status.keyword.upperCased
The current rule level evaluation status in upper case (PENDING
, PASSED
or FAILED
).
gwen.rule.eval.status.keyword.upperCased
PENDING
, PASSED
or FAILED
).gwen.rule.eval.status.keyword.lowerCased
The current rule level evaluation status in lower case (pending
, passed
or failed
).
gwen.rule.eval.status.keyword.lowerCased
pending
, passed
or failed
).gwen.rule.eval.status.isPassed
true
if the rule scenario level evaluation status is not Failed
, false
otherwise.
gwen.rule.eval.status.isPassed
true
if the rule scenario level evaluation status is not Failed
, false
otherwise.gwen.rule.eval.status.isFailed
true
if rule level the current evaluation status is Failed
, false
otherwise.
gwen.rule.eval.status.isFailed
true
if rule level the current evaluation status is Failed
, false
otherwise.gwen.rule.eval.status.message
The current rule level evaluation status message if the evaluation status is Failed
, blank otherwise.
gwen.rule.eval.status.message
Failed
, blank otherwise.gwen.rule.eval.status.message.escaped
The current rule level evaluation status message with all new line and special characters escaped (using Java escaping rules). Non blank if the evaluation status is Failed
, blank otherwise.
gwen.rule.eval.status.message.escaped
Failed
, blank otherwise.gwen.rule.eval.status.message.csvEscaped
The current rule level evaluation status message escaped for CSV. Non blank if the evaluation status is Failed
, blank otherwise.
gwen.rule.eval.status.message.csvEscaped
Failed
, blank otherwise.gwen.rule.eval.started
The date and time when the Rule started (in format of default locale)
gwen.rule.eval.started
gwen.rule.eval.finished
The date and time when the Rule finished (in format of default locale)
gwen.rule.eval.finished
gwen.rule.eval.duration
Provides access the elapsed duration since the beginning of a rule execution in human readable format. Example: 12s 345ms
gwen.rule.eval.duration
gwen.rule.eval.duration.msecs
Provides access the elapsed duration since the beginning of a rule execution in milliseconds.
gwen.rule.eval.duration.msecs
gwen.rule.eval.duration.secs
Provides access the elapsed duration since the beginning of a rule execution in seconds.
gwen.rule.eval.duration.secs
Scenario Level
gwen.scenario.displayName
The current Scenario name as displayed in all outputs (including any [x of y] occurrence)
gwen.scenario.displayName
gwen.scenario.eval.status.keyword
The current scenario level evaluation status (Pending
, Passed
or Failed
).
gwen.scenario.eval.status.keyword
Pending
, Passed
or Failed
).gwen.scenario.eval.status.keyword.upperCased
The current scenario level evaluation status in upper case (PENDING
, PASSED
or FAILED
).
gwen.scenario.eval.status.keyword.upperCased
PENDING
, PASSED
or FAILED
).gwen.scenario.eval.status.keyword.lowerCased
The current scenario level evaluation status in lower case (pending
, passed
or failed
).
gwen.scenario.eval.status.keyword.lowerCased
pending
, passed
or failed
).gwen.scenario.eval.status.isPassed
true
if the current scenario level evaluation status is not Failed
, false
otherwise.
gwen.scenario.eval.status.isPassed
true
if the current scenario level evaluation status is not Failed
, false
otherwise.gwen.scenario.eval.status.isFailed
true
if scenario level the current evaluation status is Failed
, false
otherwise.
gwen.scenario.eval.status.isFailed
true
if scenario level the current evaluation status is Failed
, false
otherwise.gwen.scenario.eval.status.message
The current scenario level evaluation status message if the evaluation status is Failed
, blank otherwise.
gwen.scenario.eval.status.message
Failed
, blank otherwise.gwen.scenario.eval.status.message.escaped
The current scenario level evaluation status message with all new line and special characters escaped (using Java escaping rules). Non blank if the evaluation status is Failed
, blank otherwise.
gwen.scenario.eval.status.message.escaped
Failed
, blank otherwise.gwen.scenario.eval.status.message.csvEscaped
The current scenario level evaluation status message escaped for CSV. Non blank if the evaluation status is Failed
, blank otherwise.
gwen.scenario.eval.status.message.csvEscaped
Failed
, blank otherwise.gwen.scenario.eval.started
The date and time when the Scenario started (in format of default locale)
gwen.scenario.eval.started
gwen.scenario.eval.finished
The date and time when the Scenario finished (in format of default locale)
gwen.scenario.eval.finished
gwen.scenario.eval.duration
Provides access the elapsed duration since the beginning of a scenario execution in human readable format. Example: 12s 345ms
gwen.scenario.eval.duration
gwen.scenario.eval.duration.msecs
Provides access the elapsed duration since the beginning of a scenario execution in milliseconds.
gwen.scenario.eval.duration.msecs
gwen.scenario.eval.duration.secs
Provides access the elapsed duration since the beginning of a scenario execution in seconds.
gwen.scenario.eval.duration.secs
Examples Level
gwen.examples.eval.status.keyword
The current examples level evaluation status (Pending
, Passed
or Failed
).
gwen.examples.eval.status.keyword
Pending
, Passed
or Failed
).gwen.examples.eval.status.keyword.upperCased
The current examples level evaluation status in upper case (PENDING
, PASSED
or FAILED
).
gwen.examples.eval.status.keyword.upperCased
PENDING
, PASSED
or FAILED
).gwen.examples.eval.status.keyword.lowerCased
The current examples level evaluation status in lower case (pending
, passed
or failed
).
gwen.examples.eval.status.keyword.lowerCased
pending
, passed
or failed
).gwen.examples.eval.status.isPassed
true
if the current examples level evaluation status is not Failed
, false
otherwise.
gwen.examples.eval.status.isPassed
true
if the current examples level evaluation status is not Failed
, false
otherwise.gwen.examples.eval.status.isFailed
true
if examples level the current evaluation status is Failed
, false
otherwise.
gwen.examples.eval.status.isFailed
true
if examples level the current evaluation status is Failed
, false
otherwise.gwen.examples.eval.status.message
The current examples level evaluation status message if the evaluation status is Failed
, blank otherwise.
gwen.examples.eval.status.message
Failed
, blank otherwise.gwen.examples.eval.status.message.escaped
The current examples level evaluation status message with all new line and special characters escaped (using Java escaping rules). Non blank if the evaluation status is Failed
, blank otherwise.
gwen.examples.eval.status.message.escaped
Failed
, blank otherwise.gwen.examples.eval.status.message.csvEscaped
The current examples level evaluation status message escaped for CSV. Non blank if the evaluation status is Failed
, blank otherwise.
gwen.examples.eval.status.message.csvEscaped
Failed
, blank otherwise.gwen.examples.eval.started
The date and time when the Examples started (in format of default locale)
gwen.examples.eval.started
gwen.examples.eval.finished
The date and time when the Examples finished (in format of default locale)
gwen.examples.eval.finished
gwen.examples.eval.duration
Provides access the elapsed duration since the beginning of an examples execution in human readable format. Example: 12s 345ms
gwen.examples.eval.duration
gwen.examples.eval.duration.msecs
Provides access the elapsed duration since the beginning of an examples execution in milliseconds.
gwen.examples.eval.duration.msecs
gwen.examples.eval.duration.secs
Provides access the elapsed duration since the beginning of an examples execution in seconds.
gwen.examples.eval.duration.secs
StepDef Level
gwen.stepDef.displayName
The current StepDef name as displayed in all outputs (including any [x of y] occurrence)
gwen.stepDef.displayName
gwen.stepDef.eval.status.keyword
The current StepDef level evaluation status (Pending
, Passed
or Failed
).
gwen.stepDef.eval.status.keyword
Pending
, Passed
or Failed
).gwen.stepDef.eval.status.keyword.upperCased
The current StepDef level evaluation status in upper case (PENDING
, PASSED
or FAILED
).
gwen.stepDef.eval.status.keyword.upperCased
PENDING
, PASSED
or FAILED
).gwen.stepDef.eval.status.keyword.lowerCased
The current StepDef level evaluation status in lower case (pending
, passed
or failed
).
gwen.stepDef.eval.status.keyword.lowerCased
pending
, passed
or failed
).gwen.stepDef.eval.status.isPassed
true
if the current StepDef level evaluation status is not Failed
, false
otherwise.
gwen.stepDef.eval.status.isPassed
true
if the current StepDef level evaluation status is not Failed
, false
otherwise.gwen.stepDef.eval.status.isFailed
true
if StepDef level the current evaluation status is Failed
, false
otherwise.
gwen.stepDef.eval.status.isFailed
true
if StepDef level the current evaluation status is Failed
, false
otherwise.gwen.stepDef.eval.status.message
The current StepDef level evaluation status message if the evaluation status is Failed
, blank otherwise.
gwen.stepDef.eval.status.message
Failed
, blank otherwise.gwen.stepDef.eval.status.message.escaped
The current StepDef level evaluation status message with all new line and special characters escaped (using Java escaping rules). Non blank if the evaluation status is Failed
, blank otherwise.
gwen.stepDef.eval.status.message.escaped
Failed
, blank otherwise.gwen.stepDef.eval.status.message.csvEscaped
The current StepDef level evaluation status message escaped for CSV. Non blank if the evaluation status is Failed
, blank otherwise.
gwen.stepDef.eval.status.message.csvEscaped
Failed
, blank otherwise.gwen.stepDef.eval.started
The date and time when the StepDef started (in format of default locale)
gwen.stepDef.eval.started
gwen.stepDef.eval.finished
The date and time when the StepDef finished (in format of default locale)
gwen.stepDef.eval.finished
gwen.stepDef.eval.duration
Provides access the elapsed duration since the beginning of a StepDef execution in human readable format. Example: 12s 345ms
gwen.stepDef.eval.duration
gwen.stepDef.eval.duration.msecs
Provides access the elapsed duration since the beginning of a StepDef execution in milliseconds.
gwen.stepDef.eval.duration.msecs
gwen.stepDef.eval.duration.secs
Provides access the elapsed duration since the beginning of a StepDef execution in seconds.
gwen.stepDef.eval.duration.secs
Web Session
Loop Iteration
gwen.iteration.number
The current iteration number (starting at 1) inside a ForEach or Until/While loop.
gwen.iteration.number
gwen.iteration.index
The current iteration index (starting at 0) inside a ForEach or Until/While loop.
gwen.iteration.index
Input Data Record
gwen.data.record.number
The number (starting at 1) of the current record being processed when using a data feed.
gwen.data.record.number
gwen.data.record.index
The index (starting at 0) of the current record being processed when using a data feed.
gwen.data.record.index
Data Table Record
gwen.table.record.number
The current record number (starting at 1) being processed in a data table
gwen.table.record.number
gwen.table.record.index
The current record number (starting at 1) being processed in a data table
gwen.table.record.index
Accumulated Errors
gwen.accumulated.errors
Provides access to accumulated error messages in the form of string (numbered list).
gwen.accumulated.errors
gwen.accumulated.errors:JSONArray
Provides access to accumulated errror messages in the form of a JSON array.
gwen.accumulated.errors:JSONArray