The below is rewarded with a complaint that Remove Directory requires 1 or 2 arguments and I gave it none. I’m using 2.6.3, and dcsLshLocation is a variable (and adding an x in front doesn’t change the error). I’m using the Java version of all this.
*** Settings ***
| Documentation | http://jira.basistech.net:8080/browse/JEST-226
| Resource | src/main/resources/jug-shared-keywords.txt
| Force Tags | integration |
| Suite Precondition | Run Keywords |
| | ... | Validate SUT Installations |
| | ... | Launch Derby Server |
| | ... | Copy file ${jddInstallDir}/conf/jdd-conf-basic.xml to ${jddInstallDir}/conf/jdd-conf.xml
| | ... | Remove Directory | ${dcsLshLocation} |
| Suite Teardown | Run Keywords | Shutdown Derby
| Test Timeout | 20 minutes
When this question was originally written, Run Keywords could only run keywords that do not take arguments. That is no longer true. From the documentation:
The code in the question can thus be expressed like this:
The following is the original answer to the question, which others may still find useful. It is still relevant for versions of robot framework prior to 2.7.6.
When you use
Run Keywords, you cannot run keywords that take arguments. Admittedly the documentation is a bit unclear, but this is what it says:What it should say is that, when you use
Run Keywords, each argument is the name of a keyword to run. This keyword cannot take any arguments itself because robot can’t know where the arguments for one keyword ends and the next keyword begins.Remember that
...simply means that the previous row is continued on the next, so while it looks like each row is a separate keyword with arguments, it’s not. You example is the same as: