I want to get all test case tested by a user.is there a way to get that through API?
you can use
get_cases with the filters
this is for test cases - or do you need that for tests ?
then i guess it would http://docs.gurock.com/testrail-api2/reference-results, where you need to do the filtering on client side
Hi sorry for the confusing, actually my question is -
Say there are test cases which are tested by users , meaning they would update the status passed,failed etc on testcases. Now through API I need to get what all test cases are passed or failed or retested or blocked by that particular user through out the testrail,from the 1st test case he tested till the latest he tested?
For this what API would help me to fetch the details,in testrail manually we get it by setting tested_by filter ,but I need to achieve it through API.
Kindly help me out,please any API that would fetch the tested by details
first i think we need to clarify some terminology. Results are added to tests, not test cases. The test is the realisation of a testcase in a testrun.
So I assume your setup is:
Given a test run, you want all test results from a user with the status. So all tests, she executed with some result, right ?
This seems to require multiple steps.
- Find out the id of the user in question. With http://docs.gurock.com/testrail-api2/reference-users you can ask for all users and then filter the one, or you can ask for the user by email
- Then you can use http://docs.gurock.com/testrail-api2/reference-results#get_results with the filters you like to set (userid, status etc)
does this help ?