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

[API] want to update assigntoid for a particular section


#1

Dear admin,

I want to update all test cases (assignto id) in a section to particular id. can you guide me. thanks in advance.


#2

Hello,

We already answered this via email and here’s our original reply again:

You can call get_cases for the related test suite (of the test run) which includes the section IDs. The idea for the implementation/mapping would be:

get_tests -> id, case_id
get_cases -> id (case_id), section_id

Once you have the case and section IDs, you can compute the list of test IDs and then assign those tests using add_results (one call per section/user):

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

I hope this helps and please let me know in case you have any further questions!

Regards,
Tobias