We have written automation test suites in robotium(junit based java framework for android applications). We’re planning to add the test results programmatically in testrail after running each test case.
In our setup, we have weekly releases and therefore will be running the tests weekly.For each week we create a test plan.
The API, add_result_for_case uses <run_id>/<case_id> - Needs Test run id and test case id.
However, looking around on testrail, we see that Test case id in “Test suites & cases”, and the test case id under test plan(same test case included in test plan) is different.
If i have Test case id T1. A test plan created including this test case has id C1 for the same test case.
So each time a new test plan is created a different id is generated for the same test case.
Now we are trying to automatically update the results in test plan.Do i need to manually give that test id(listed in test run) in code? Or is it sufficient to provide the fixed test case id (independent of what is listed in the test plan ).