Skip to main content

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.feature.file.name

The current feature file name including file extension.

gwen.feature.file.simpleName

The current feature file name excluding file extension.

gwen.feature.file.path

The current feature file path (as provided to Gwen on command line).

gwen.feature.file.absolutePath

The current absolute feature file path.

gwen.feature.language

The current language used in the feature.

gwen.feature.name

The current feature name (as specified in Feature clause).

gwen.feature.displayName

The current feature name as displayed in all outputs (including any [x of y] occurrence)

gwen.feature.eval.status.keyword

The current evaluation status (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.lowerCased

The current evaluation status in lower case (pending, passed or failed).

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.message

The current evaluation status message if the evaluation status is 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.csvEscaped

The current evaluation status message escaped for CSV. Non blank if the evaluation status is Failed, blank otherwise.

gwen.feature.eval.started

The date and time when the feature started (in format of default locale)

gwen.feature.eval.finished

The date and time when the feature finished (in format of default locale)

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.msecs

Provides access the elapsed duration since the beginning of a feature execution in milliseconds.

gwen.feature.eval.duration.secs

Provides access the elapsed duration since the beginning of a feature execution in seconds.

Rule Level

gwen.rule.name

The current rule name (as specified in Rule clause).

gwen.rule.eval.status.keyword

The current rule level evaluation status (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.lowerCased

The current rule level evaluation status in lower case (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.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.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.csvEscaped

The current rule level evaluation status message escaped for CSV. Non blank if the evaluation status is Failed, blank otherwise.

gwen.rule.eval.started

The date and time when the Rule started (in format of default locale)

gwen.rule.eval.finished

The date and time when the Rule finished (in format of default locale)

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.msecs

Provides access the elapsed duration since the beginning of a rule execution in milliseconds.

gwen.rule.eval.duration.secs

Provides access the elapsed duration since the beginning of a rule execution in seconds.

Scenario Level

gwen.scenario.name

The current scenario name (as specified in Scenario clause).

gwen.scenario.displayName

The current Scenario name as displayed in all outputs (including any [x of y] occurrence)

gwen.scenario.eval.status.keyword

The current scenario level evaluation status (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.lowerCased

The current scenario level evaluation status in lower case (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.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.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.csvEscaped

The current scenario level evaluation status message escaped for CSV. Non blank if the evaluation status is Failed, blank otherwise.

gwen.scenario.eval.started

The date and time when the Scenario started (in format of default locale)

gwen.scenario.eval.finished

The date and time when the Scenario finished (in format of default locale)

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.msecs

Provides access the elapsed duration since the beginning of a scenario execution in milliseconds.

gwen.scenario.eval.duration.secs

Provides access the elapsed duration since the beginning of a scenario execution in seconds.

Examples Level

gwen.examples.name

The current examples name (as specified in Examples clause).

gwen.examples.eval.status.keyword

The current examples level evaluation status (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.lowerCased

The current examples level evaluation status in lower case (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.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.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.csvEscaped

The current examples level evaluation status message escaped for CSV. Non blank if the evaluation status is Failed, blank otherwise.

gwen.examples.eval.started

The date and time when the Examples started (in format of default locale)

gwen.examples.eval.finished

The date and time when the Examples finished (in format of default locale)

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.msecs

Provides access the elapsed duration since the beginning of an examples execution in milliseconds.

gwen.examples.eval.duration.secs

Provides access the elapsed duration since the beginning of an examples execution in seconds.

StepDef Level

gwen.stepDef.name

The currently executing StepDef name (as resolved at runtime).

gwen.stepDef.displayName

The current StepDef name as displayed in all outputs (including any [x of y] occurrence)

gwen.stepDef.eval.status.keyword

The current StepDef level evaluation status (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.lowerCased

The current StepDef level evaluation status in lower case (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.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.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.csvEscaped

The current StepDef level evaluation status message escaped for CSV. Non blank if the evaluation status is Failed, blank otherwise.

gwen.stepDef.eval.started

The date and time when the StepDef started (in format of default locale)

gwen.stepDef.eval.finished

The date and time when the StepDef finished (in format of default locale)

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.msecs

Provides access the elapsed duration since the beginning of a StepDef execution in milliseconds.

gwen.stepDef.eval.duration.secs

Provides access the elapsed duration since the beginning of a StepDef execution in seconds.

Web Session

gwen.web.sessionId

The current web session ID.

Loop Iteration

gwen.iteration.number

The current iteration number (starting at 1) inside a ForEach or Until/While loop.

gwen.iteration.index

The current iteration index (starting at 0) inside a ForEach or Until/While loop.

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.index

The index (starting at 0) of the current record being processed when using a data feed.

Data Table Record

gwen.table.record.number

The current record number (starting at 1) being processed in a data table

gwen.table.record.index

The current record number (starting at 1) being processed in a data table

Accumulated Errors

gwen.accumulated.errors

Provides access to accumulated error messages in the form of string (numbered list).

gwen.accumulated.errors:JSONArray

Provides access to accumulated errror messages in the form of a JSON array.