Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use dictionary variables in testcase names. #84

Open
burrk opened this issue Dec 12, 2022 · 0 comments
Open

Unable to use dictionary variables in testcase names. #84

burrk opened this issue Dec 12, 2022 · 0 comments

Comments

@burrk
Copy link

burrk commented Dec 12, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant