Robotframework Robot框架如何使用变量库名称调用关键字

Robotframework Robot框架如何使用变量库名称调用关键字,robotframework,Robotframework,我有两个相似的远程库,它们具有相同的关键字 Library Remote 172.18.92.194:50000 WITH NAME Client1 Library Remote 172.18.92.194:50000 WITH NAME Client2 我希望创建测试用例,从这个库中运行 差不多吧 Connect to FTP server active mode [Arguments] ${Client} ${Client}.ftp connect

我有两个相似的远程库,它们具有相同的关键字

Library    Remote    172.18.92.194:50000    WITH NAME Client1
Library    Remote    172.18.92.194:50000    WITH NAME Client2
我希望创建测试用例,从这个库中运行 差不多吧

Connect to FTP server active mode
[Arguments]    ${Client}
${Client}.ftp connect active mode     host    user    password

问题是RF在使用语法库名称调用关键字时没有解析变量的内容。关键字

Robot在调用这样的关键字时不会解析变量。但是,您可以使用Run关键字,如下所示:

Connect to FTP server active mode
    [Arguments]   ${Client}
    Run keyword   ${Client}.ftp connect active mode    host    user    password