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

Fixes to keep the scripts working after TestRail 7.5 upgrade #30

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

isabelrios
Copy link
Collaborator

Two issues breaking our tooling after the upgrade:

  • New metadata added to test cases end point
  • Mandatory default value for custom_sub_test_suites

Tests that did not have a sub test suite were causing the script to fail. I have set the default value to Other ([7)]

@isabelrios isabelrios requested a review from rpappalax April 4, 2024 08:31
Copy link
Collaborator

@rpappalax rpappalax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

row = []
suit = case['suite_id']
subs = case['custom_sub_test_suites']
subs = case.get("custom_sub_test_suites", [7])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed with Isabel. Gonna land this now and later add an enum.
Note, this values, once defined in TestRail become a reference and won't be changing, hence we hard-code them here.

Example:
OTHER = 7
subs = case.get("custom_sub_test_suites", [OTHER])

@isabelrios isabelrios merged commit b35714a into master Apr 4, 2024
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants