您没有传递字典,而是传递了看起来像字典的字符串。解决方案是创建一个适当的字典并将其传递给其中。Robot为此使用了一个Create
Dictionary关键字。
*** Settings ***| Library | Collections*** Test Cases ***| Example| | ${headers}= | Create dictionary| | ... | header1 | value1| | ... | header2 | value2| | CreateSession | SendCustomHeader | http://myhost.com | | ... | header=${headers} | verify=False
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)