Search code examples
collectionsrobotframeworkkeywordrobotframework-ide

How to make elements of the list by robot framework in RED appears in autocomplete when we call the list?


I want to get an autocomplete displayed that contain elements that belongs to that list. They should appear when i call the created list by robot framework elements in the autocomplete list that is displayed should be the contentof the list [A,B,C,D] not just the list named [List]

Library    Collections    
    List 
          @{list} =    Create List   A    B    C    D 

How to make that with robot framework ?

  • Another question : can each element have a definition like keywords without being keyword but just an element from the list ? enter image description here

Solution

  • The auto complete functionality in RED is rather straight forward. Variables that declared in either the *** Variables *** section or through the declaration of keywords like Create List or Create Variable.

    The difference between the autocomplete scenario's is that the one created in the variable section contains more information. See the two images below:

    Variable Section Variable Section

    Keyword Created enter image description here