Bug 815358 - Implement CaseRun removal from a TestRun
Summary: Implement CaseRun removal from a TestRun
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-nitrate
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Petr Šplíchal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-23 13:09 UTC by Petr Šplíchal
Modified: 2016-06-01 01:37 UTC (History)
2 users (show)

Fixed In Version: python-nitrate-1.0-1.el7
Clone Of:
Environment:
Last Closed: 2016-02-10 12:25:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Šplíchal 2012-04-23 13:09:29 UTC
Description of problem:

Bug 726133 should be fixed soon so we will be able to remove case
runs from a test run. The caseruns should be implemented using the
Container class to allow both adding and removing test cases.

    TestRun(123).caseruns.add(TestCase(123))
    TestRun(123).caseruns.remove(TestCase(123))

Or, a new property testcases similar to that in TestPlan could be
added since iterating through test run test cases is also useful
and can be more handy than doing:

    if testcase in [caserun.testcase for caserun in testrun]

So the following could resolved this use case:

    TestRun(123).testcases.add(TestCase(123))
    TestRun(123).testcases.remove(TestCase(123))

Comment 1 Petr Šplíchal 2014-03-09 21:18:27 UTC
TestRun.caseruns and TestRun.testcases containers implemented

TestRun.caseruns reimplemented using RunCaseRuns container
TestRun.testcases container added for easier iteration
Supports adding/removing test cases to/from a test run

https://github.com/psss/python-nitrate/commit/32f1e675105c74d


Note You need to log in before you can comment on or make changes to this bug.