Status: Accepted
Owner: ----
Labels: Type-Enhancement Priority-Medium Target-2.7.6 bwic
New issue 1303 by pekka.klarck: `Run Keywords` should support running
keywords with arguments
http://code.google.com/p/robotframework/issues/detail?id=1303
`Run Keywords` (issue 572) is handy especially in setups/teardowns to avoid
creating one-off keywords, but has a limitation that it cannot be used to
execute keywords with arguments. The main problem is how to separate
arguments from keywords, but we could just require keywords to be separated
with `AND`:
Run Keywords Keyword arg AND Another Keyword a1 a2
It should be possible to use `AND` any number of times. If no `AND` is
used, all arguments to `Run Keywords` should be considered keywords to
execute.
We used similar solution when `ELSE` and `ELSE IF` support was added to
`Run Keyword If` (issue 1219) and it has worked well. Everything that issue
says about potential backward-incompatibility, escaping, etc. is valid also
here. Problems `ELSE/ELSE IF` caused with dry-run (issue 1240) and list
variables (issue 1244) should also be taken into account when implementing
this issue.