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

Sections and subsections


#1

Hi

I’m using Python script to extract sections name from TestRail. I’m quite new to extractions of test cases from TestRail using Python script but in Sections API is the a difference between sections and subsections?

For further explanations my project looks something like this:

Test project

  • Test plan
    – Test run
    — Section
    — Section
    ---- Sub-section
    – Test run
    — Section

#2

Hi Lilja,

Thanks for your post! The sections API wouldn’t have a separate method for subsections, and you would be able to identify a subsection if it includes a parent_id in the response when using the get_section and get_sections methods. You would also be able to create a subsection using the add_section method by including the parent_id request field. Hope this helps!

Regards,
Marco