No keyword with name '${body}= Create Dictionary' found

前端 未结 1 1812
一整个雨季
一整个雨季 2021-01-29 11:59
*** settings ***

Library  RequestsLibrary
Library  Collections
Library  OperatingSystem
Library  SeleniumLibrary

*** Variables ***

${username}     XXXXXX

${password}         


        
相关标签:
1条回答
  • 2021-01-29 12:46

    You must follow space separated format.

    In following code line (and others) you seem to only use 1 space between variable and keyword ${body}= Create Dictionary.
    That's why robot can not parse the code correctly and the error is raised.
    Expand that code to use at least 2 space separation.
    You should try the code like this.
    ${body}= Create Dictionary username=${username} password=${password}

    And of course revise rest of the code accordingly.

    I also recommend you study the user guide.
    It contains a lot of useful information.

    0 讨论(0)
提交回复
热议问题