rf-practice
Dictionaries

Context

Dictionaries let you group related data under named keys. They are useful for representing records, configuration objects, or any set of values that belong together logically.

Theory

Dictionary variables are defined with the &{NAME} syntax and contain key=value pairs. Individual values are accessed with ${NAME}[key]. This makes it easy to pass around structured data without creating many separate scalar variables.

Task

  • Create a *** Variables *** section.
  • Define a dictionary variable &{USER} with keys name=Alice and role=tester.
  • Create a test case named Dictionary Test that verifies both values.

Checks

Defines a *** Variables *** section
Defines a dictionary variable named USER
USER has name=Alice
USER has role=tester
Has a test case named Dictionary Test
Uses Should Be Equal to verify values
Dictionary Test passes