Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6739445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:29:25+00:00 2026-05-26T11:29:25+00:00

The below is rewarded with a complaint that Remove Directory requires 1 or 2

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:29:26+00:00Added an answer on May 26, 2026 at 11:29 am

    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:

    Starting from Robot Framework 2.7.6, keywords can also be run with arguments using upper case AND as a separator between keywords. The keywords are executed so that the first argument is the first keyword and proceeding arguments until the first AND are arguments to it. First argument after the first AND is the second keyword and proceeding arguments until the next AND are its arguments. And so on.

    The code in the question can thus be expressed like this:

    | Suite Precondition | Run Keywords | 
    |                    |   ...        | Validate SUT Installations
    |                    |   ...        | AND | Launch Derby Server
    |                    |   ...        | AND | Copy file ${jddInstallDir}/conf/jdd-conf-basic.xml to ${jddInstallDir}/conf/jdd-conf.xml
    |                    |   ...        | AND | Remove Directory  | ${dcsLshLocation}
    

    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:

    User keywords must nevertheless be used if the executed keywords need
    to take arguments.

    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:

    | 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} |
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is my shell script that I am trying to execute using PLINK on
Below is code to an inherited ComboBox. The issue is that the ComboBox is
Below is my form. Using jQuery I load a <select> element based on value
Below is a VBA function that I created for use in Excel for converting
below is my code that plots a function, and I need to move the
Below is a block of code that runs in a separate thread from my
Below is the code so far that I am working on, It will be
Below is my full code for my site's drag and drop, that saves positions
Below is a thumbnail type image that is on a post from http://doctype.com/ ,
Below is a Win32 Console App procedure that demonstrates the dependence of various pointers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.