cukes
cukes copied to clipboard
Scenario descriptions does not convert example variables
Problem
After tests are completed, if there were some text on the next line after keywords 'Feature', 'Scenario', 'Scenario Outline' and 'Examples', then it will be turned into "description" json tag in according generated report part. Like here:
Scenario Outline: Cukes test with <key> and <value>
Some text w/o keyword that will be set as report 'description' value,
key is <key>
* variable "user" is created with value "user" and 3 random chars long postfix
Examples: subheading of examples
Some text w/o keyword that will be concatenated to scenario section 'description' value
value is <value>
|key|value|
|ke1|valu1|
After report is created, it will have that kind of line:
...
"name": "Cukes test with ke1 and valu1",
"description": "Some text w/o keyword that will be set as report 'description' value, \nkey is <key>,\nSome text w/o keyword that will be concatenated to scenario section 'description' value\nvalue is <value>"
...
Issue:
If there is possibility to use <examples>
variables in scenario name, is it possible to implement <examples>
variables usage in scenario description?