Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

API v2 - Create test plan with all test cases marked as "Used for Regression"


#1

Hi.
I need to create a test plan via API containing all test cases marked as “Used for Regression” (and no others).
Is there an easy way to do this? Or is it possible at all? I can’t figure it out from the documentation.

Thanks.
Flaviu


#2

Hi Flaviu,

Thanks for your posting. I assume “Used for Regression” is a custom field, is this correct? Yes, this is possible and I would recommend the following approach in this case:

I hope this helps!

Cheers,
Tobias


#3

Thanks.
Yeah, that’s what I ended up doing.
get_case_fields was the key for knowing how to filter the cases based on the custom field.

Cheers,
Flaviu


#4

Hi Flaviu,

Thanks for your reply and good to hear this works for you! Please let me know in case any further questions come up, happy to help. If “Used for Regression” (and its configuration) doesn’t change frequently, you can also look up the configuration in the Administration > Customizations and don’t necessarily need to use get_case_fields but this is also an an option of course.

Cheers,
Tobias