How to read the error messages of RF

I have the following code:

*** Settings ***
Library  Collections

*** Variables ***
&{dict}  key=value

*** Test Cases ***
    Dictionary Should Contain Key  &{dict}  key

Now I get the error:

Keyword Collection.Dictionary Should Contain Key’ got positional argument after named arguments.

This error message is not very descriptive to me. What is the positional argument and what is the named argument?

Hi Edwin,

It’s not really clear in the documentation for collections library but it is kind of there, use Get From Dictionary or * Boolean arguments as a reference.

this line:

Dictionary Should Contain Key  &{dict}  key

needs to change to (note the $ instead of the the &)

Dictionary Should Contain Key  ${dict}  key