Skip to content

Unable to use dictionary variables in testcase names. #84

Open
@burrk

Description

@burrk

From: https://robotframework.slack.com/archives/CJSNFRZMK/p1670879176898089 + thread

I discovered I can have the datadriver provide column values as a dictionary of arguments to a template instead of a long list of variables! https://github.com/Snooz82/robotframework-datadriver#dictionary-variables

What I have not been able to figure out is how to use the dictionary values to create a unique testcase name.
For example if I have CSV file setup with:
*** Test Cases ***,[Tags],${ARGS}[SYSTEM_ID],${ARGS}[CATEGORY]

And the example testcase as:

*** Test Cases ***
${ARGS.CATEGORY}    id    category

All the testcases get the name ${ARGS.CATEGORY} ,
AND with ${ARGS}[CATEGORY], each testcase gets a name along the lines of {'SYSTEM_ID': 'id', 'CATEGORY': 'category'}[CATEGORY], but at least they are unique,

What is the correct syntax to get this to work?
Thank-you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions