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

API add_plan_entry required suite_id


#1

Hi,
I need to create a Test Run inside Test Plan via API.
for that I am using add_plan_entry API method where suite_id is required however i have single repo project without test suites and because of that I am stuck.
Please help.


#2

Hi @seba,

Thanks for your posting and Happy New Year! add_plan_entry also requires a suite ID even if you use the single-suite mode for your project. You can find the ID of the suite with get_suites/:project_id which only returns the single master suite/repository for your project:

http://docs.gurock.com/testrail-api2/reference-suites#get_suites

Cheers,
Tobias


#3

Hi @tgurock,

That’s not very considerate, especially as add_run/:project_id does pretty much the same thing without requiring a suite_id.


#4

I’m running into the exact same issue. How do I get the suite ID for the section? Is there anywhere in the UI that I can see this?


#5

image

Suite Id in the screenshot example is 721


#6

my issue is that I don’t use suites, I use sections. I figured this out though- for those that have a similar set up. You have to click on the test section from Test Cases tab then read the url.
testrail/index.php?/suites/view/6&group_by=cases:section_id&group_order=asc&group_id=142

see my screenshot!
Capture|690x26


#7

You have to have a suite in order to have a section. The suite id in the UI (you asked for this information) should be the same as what is in the URL.

image
The above is the URL for a case within the suite and in a section within the suite using the same suite from my previous screenshot.


#8

yup, see my reply above. thanks for the help.