Empty fields in Robot Framework
Introduction
When using the space-separated format, the number of spaces used as
a separator may vary, and thus empty values cannot
be recognized unless they are escaped.
Empty cells can be escaped either with a backslash character or with the built-in variable ${EMPTY}.
The latter is usually recommended because it is easier to understand.
Official documentation
${EMPTY}
I prefer this option; you can study an example of its use in the article Template
*** Test Cases *** Using ${EMPTY} Do Something first arg ${EMPTY} Do Something ${EMPTY} second arg
\
To simulate an empty field we use a backslash.
*** Test Cases *** Using backslash Do Something first arg \ Do Something \ second arg
|
When using the format with pipe separation (by the | pipe character) empty values must be escaped only when they are at the end of the line:
| *** Test Cases *** | | | | | Using backslash | Do Something | first arg | \ | | | Do Something | | second arg | | | | | | | Using ${EMPTY} | Do Something | first arg | ${EMPTY} | | | Do Something | | second arg |
Article author: Andrei Olegovich