Skip to content

Maintain the order of testcases when adding them to a testrun from a testplan when working through the API #3947

@KaiLey669

Description

@KaiLey669

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions