Robot Framework : ${SPACE} behavior while using it from command line

From the command line you must use command line processing rules. In this case, a single space is what you need to represent a single space. Because the command line uses spaces to separate arguments, you must quote the string so that the space is preserved.

Either of the following will work, and you can use either double quotes or single quotes as long as they are balanced:

robot -v 'cmdstring:New Profile' ...
robot -v cmdstring:'New Profile' ...

Another way if you’re using a bash-like shell is to use the backslash to escape the space:

robot -v cmdstring:New\ Profile ...

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top