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
Run your code to see terminal output.
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.