!2 Keywords separate several parameters
* There are keywords in the first cell and every second cell after that.
* By convention, such keywords are shown in ''italics''.
* There can be a keyword after the last argument.
* The keywords can be distributed between those cells how you like.
The following ''buy'' actions all call the same method: ''buyAtDollarWithDiscountPercent()''
!**< def
!define test1 (!|fitlibrary.specify.workflow.Keywords|
|''buy''|1|''at $''|12.00|''with discount''|10|''%''|
|''buy''|4|''at $''|10.00|''with discount''|10|''%''|
|'''check'''|''total owing $''|46.80|
)
!define test2 (!|fitlibrary.specify.workflow.Keywords|
|''buy at $ with discount %''|1||12.00||10|
|''buy at $''|1||10.00|''with discount %''|10|
|''buy at $ with discount''|1||10.00||10|''%''|
||1|''buy at $ with discount''|10.00||10|''%''|
||1||10.00||10|''buy at $ with discount %''|
|'''check'''|''total owing $''|46.80|
)
**!
|!-fitlibrary.spec.SpecifyFixture-!|
|${test1}|!-
fitlibrary.specify.workflow.Keywords |
buy |
1 |
at $ |
12.00 |
with discount |
10 |
% |
buy |
4 |
at $ |
10.00 |
with discount |
10 |
% |
check |
total owing $ |
46.80 |
-!|
|!-fitlibrary.spec.SpecifyFixture-!|
|${test2}|!-
fitlibrary.specify.workflow.Keywords |
buy at $ with discount % |
1 |
|
12.00 |
|
10 |
buy at $ |
1 |
|
10.00 |
with discount % |
10 |
buy at $ with discount |
1 |
|
10.00 |
|
10 |
% |
|
1 |
buy at $ with discount |
10.00 |
|
10 |
% |
|
1 |
|
10.00 |
|
10 |
buy at $ with discount % |
check |
total owing $ |
46.80 |
-!|