This is a gallery of common fixtures using procedures.
when input is⇓
story test fixture |
check | plain test | define bobname
set name Bob
define changethename newname
set name newname
return name
define isnamed
return name
action
start 'sample domain'
press bobname
check 'is named' Bob
enter changethename Ted
|'sample column'
changethename isnamed?
Bob Bob
|'sample row domain'
'is named'
Bob
Carol
|'sample calculate domain'
thename '' change
Bob '' Bob
do
with new 'sample domain'
changethename Bob
check isnamed Bob
|'sample setup domain'
changethename
Bob |
define | changethename | newname |
sample column | changethename | isnamed? | Bob⇓ | Bob⇓ |
sample row domain | is named | Bob⇓ | Carol missing |
Ted surplus |
sample calculate domain | thename | | change | Bob | | Bob⇓ |
sample setup domain | changethename | Bob⇓ |
|
| define bobname
set name Bob
define changethename newname
set name newname
return name
define isnamed
return name
action
start 'sample domain'
press bobname
check 'is named' Bob
enter changethename Ted
|'sample column'
changethename isnamed?
Bob Bob
|'sample row domain'
'is named'
Bob
Carol
|'sample calculate domain'
thename '' change
Bob '' Bob
do
with new 'sample domain'
changethename Bob
check isnamed Bob
|'sample setup domain'
changethename
Bob | then output is |
define | changethename | newname |
sample column | changethename | isnamed? | Bob⇓ | Bob⇓ |
sample row domain | is named | Bob⇓ | Carol missing |
Ted surplus |
sample calculate domain | thename | | change | Bob | | Bob⇓ |
sample setup domain | changethename | Bob⇓ |
|