!**< def
!define body (|''expand''|user|''with''|pass|
|''with''|//input[@id="userName"]|''enter text''|@{user}|
|''with''|//input[@id="password"]|''enter text''|@{pass}|
|''submit''|//form|
)
!define test (|!-fitlibrary.DefineAction-!|
|${body}|
!|fitlibrary.specify.definedAction.DefinedActionUnderTest|
|''set expand defined actions''|true|
|''expand''|rick|''with''||
|''expected test results''|4|''right''|0|''wrong''|0|''ignored''|0|''exceptions''|
)
**!
!3 To request that the resulting call of a defined action is expanded even if it passes
Use the action ''set expand defined actions'', which takes true or false. This can be included in the storytest or can be called in the fixture.
|!-fitlibrary.spec.SpecifyFixture-!|
|${test}|!-
fitlibrary.DefineAction |
with |
//input[@id="userName"] |
enter text |
@{user} |
with |
//input[@id="password"] |
enter text |
@{pass} |
|
fitlibrary.specify.definedAction.DefinedActionUnderTest |
set expand defined actions |
true |
expand |
rick |
with |
|
Defined action call:
with |
//input[@id="userName"] |
enter text |
rick |
with |
//input[@id="password"] |
enter text |
|
|
expected test results |
4 |
right |
0 |
wrong |
0 |
ignored |
0 |
exceptions |
-!|