You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to add testcases to testrun using by API. Testcases should be added to the run from testplan.
I use this code for that (its a short simplified sample):
...
for testcase in self.rpc_client.exec.TestCase.filter({'plan': testplan_id}):
self.rpc_client.exec.TestRun.add_case(testrun['id'], testcase['id'])
...
I have custom order of testcases in each testplan, but in this way testcases are added to testrun in order of their creation date globaly, because cases selected from all database. May be exist the way to save custom order of testcases (how they locate in testplan), when they are added to testrun by using API?