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

Get_runs method request


#1

Hello Everybody,
get_runs suppose to return all test runs that are not part of test plan , but why do we have in get_plan response contents plan_id ?


#2

I mean in get_run response instead of get_plan . sorry


#3

Hi Kadi,

Thanks for your posting. The run related fields are always the same, regardless of if they are part of a plan or not. The plan_id attribute will always be null for runs returned by get_runs (and non-null for runs returned by get_plan).

I hope this helps!

Cheers,
Tobias


#4

I use get_runs but i have both run with plan id and run without plan id
so i am really confused now


#5

It’s quite simple actually :slight_smile: get_runs wouldn’t returns runs that are part of a plan, so plan_id would always be null in this case. Runs returned by get_plan are obviously part of a plan so plan_id would be the ID of the plan you asked for (get_plan/:plan_id).

I hope this helps!

Cheers,
Tobias


#6

Thank you @tgurock urock, now it works.
Another question, is that possible to get custom field content for a specific case


#7

i got it by get_case/id


#8

For test runs, you would use get_tests to get all tests inside a run and this also includes the case custom fields:

http://docs.gurock.com/testrail-api2/reference-tests

I hope this helps!

Cheers,
Tobias