!**< def
!define body (|''login''|user|''with''| password |''fails''|
|''with''|//input[@id="userName"]|''enter text''|@{user}|
|''with''|//input[@id="password"]|''enter text''|@{password}|
|''submit''|//form|
)
!define test (
!|fitlibrary.specify.definedAction.DefinedActionUnderTest|
|define action|
|${body}|
|''with''|//input[@id="userName"]|''enter text''|USER|
|''login''|rick|''with''|password|''fails''|
|''expected test results''|5|''right''|3|''wrong''|0|''ignored''|0|''exceptions''|
)
*!
|!-fitlibrary.spec.SpecifyFixture-!|
|${test}|!-
fitlibrary.specify.definedAction.DefinedActionUnderTest |
define action |
login |
user |
with |
password |
fails |
with |
//input[@id="userName"] |
enter text |
@{user} |
with |
//input[@id="password"] |
enter text |
@{password} |
|
with |
//input[@id="userName"] |
enter text |
USER |
login |
rick |
with |
password |
fails |
Defined action call:
with |
//input[@id="userName"] |
enter text |
rick |
with |
//input[@id="password"] |
enter text |
password |
|
expected test results |
5 |
right |
3 |
wrong |
0 |
ignored |
0 |
exceptions |
-!|