且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何查找是否已定义变量?

更新时间:2023-11-27 23:09:04

您可以调用

You can call Get Variables to get a dictionary of all variables, then check whether the variable you're interested in is in the dictionary.

*** Test cases ***
Example
    ${foo}=        set variable  hello, world
    ${variables}=  Get variables

    Should be true      "\${foo}" in $variables
    Should not be true  "\${bar}" in $variables