The Show As keyword is one of the
Flow Fixture Keywords. It executes a method on the
System Under Test and adds a cell to the row to display the result using one or more cell attributes.
The Raw attribute displays the result directly with no encoding.
when input is⇓
story test fixture |
check | plain test | 'sample do'
set text <b>stuff</b>
'show as' raw text | |
| 'sample do'
set text <b>stuff</b>
'show as' raw text | then output is | |
The Formatted attribute displays the result encoded with formatting preserved.
when input is⇓
story test fixture |
check | plain test | 'sample do'
set text '<b>more</b> stuff'
'show as' formatted text | set | text | <b>more</b> stuff |
show as | formatted | text |
<b>more</b> stuff |
|
| 'sample do'
set text '<b>more</b> stuff'
'show as' formatted text | then output is | set | text | <b>more</b> stuff |
show as | formatted | text |
<b>more</b> stuff |
|
The Folded attribute displays the result in a collapsible section.
when input is⇓
story test fixture |
check | plain test | 'sample do'
set text stuff
'show as' folded text | |
| 'sample do'
set text stuff
'show as' folded text | then output is | |