fitSharp
Show As Keyword
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
checkplain test'sample do'
set text <b>stuff</b>
'show as' raw text
sample do
set text <b>stuff</b>
show as raw text stuff
'sample do'
set text <b>stuff</b>
'show as' raw text
then output is
sample do
set text <b>stuff</b>
show as raw text stuff

The Formatted attribute displays the result encoded with formatting preserved.

when input is
story test fixture
checkplain test'sample do'
set text '<b>more</b> stuff'
'show as' formatted text
sample do
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
sample do
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
checkplain test'sample do'
set text stuff
'show as' folded text
sample do
set text stuff
show as folded text
stuff
'sample do'
set text stuff
'show as' folded text
then output is
sample do
set text stuff
show as folded text
stuff
Copyright © 2022 Syterra Software Inc. All rights reserved.