在 robotframework 中是否可以将关键字传递给变量?

In robotframework is it possible to pass keywords to variables?

我正在尝试的是:

*** Settings ***
Library    DateTime

*** Variables ***
${DATE}    get current date    result_format=%Y-%m-%d
${TODAY}    today is ${DATE}

但是,当尝试 运行 我得到以下信息:

[ ERROR ] Error in file '~/test.robot': Setting variable '${TODAY}' failed: Variable '${DATE}' not found.

变量table不能调用关键字。你只能给它静态值。

来自 robot framework user guide(强调我的):

The most common source for variables are Variable tables in test case files and resource files. Variable tables are convenient, because they allow creating variables in the same place as the rest of the test data, and the needed syntax is very simple. Their main disadvantages are that values are always strings and they cannot be created dynamically. If either of these is a problem, variable files can be used instead.