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

Custom fields of type 'Multi-select' don't appear in case metadata. #59

Closed
terrysimons opened this issue Sep 4, 2021 · 1 comment
Closed

Comments

@terrysimons
Copy link

It looks like my custom Multi-select fields aren't showing up in the api.cases.get_cases(project_id=project['id'], suite_id=suite['id']) dictionary.

I verified that this appears to be a Multi-select issue by creating a new Multi-select variable and verifying that it doesn't show up in the output, and then creating a new Checkbox item and verifying that it does show up.

Steps to reproduce are:

Create a custom item of type Multi-select and query a test case that it is an attribute of using:

import pprint;
project_id = <project_id>
suite_id = <suite_id>

for case in api.cases.get_cases(project_id=project_id, suite_id=suite_id):
    pprint.pprint(case)
@terrysimons
Copy link
Author

This is actually due to a quirk of the options for these fields only showing up at the project level, not on a test run.

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