html tool

2018年11月29日星期四

No keyword with name "Set To Dictionary" found.



写成这样
 36     ${ta}    Create Dictionary     
 37     Set To Dictionary    ${ta}    a=b
还是提示
No keyword with name 'Set To Dictionary' found.


如下都没有介绍如何可以好,

https://stackoverflow.com/questions/29167928/getting-error-while-using-set-to-dictionary-keyword-in-robot-framework
https://github.com/robotframework/robotframework/issues/2320
https://stackoverflow.com/questions/29167928/getting-error-while-using-set-to-dictionary-keyword-in-robot-framework

最后改成这样吧
 33     ${waf_server_dic_tmp}=    Create Dictionary    ip=&{waf_server_dic}[ip]    port=${port}
 34     BuiltIn.log    ${waf_server_dic_tmp}  

ok了

【后记:
找到原因了是没有导入使用库的原因,加入如下就ok了
Library  Collections
看了一下源码,定义没有在BuildIn中,所以无法默认加载

没有评论:

发表评论