|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.domain.campaign.TestSuite
@Entity public class TestSuite
| Constructor Summary | |
|---|---|
TestSuite()
|
|
| Method Summary | |
|---|---|
void |
bindTestPlanItems(List<IterationTestPlanItem> items)
Binds the test plan items to this test suite |
void |
bindTestPlanItemsById(List<Long> itemIds)
Binds the test plan items to this test suite using their id to retrieve them from the iteration. |
TestSuite |
createPastableCopy()
returns a copy of a test Suite without it's test plan. |
List<IterationTestPlanItem> |
createPastableCopyOfTestPlan()
returns an ordered copy of the test-suite test plan -test plans items that are not linked to a test case are not copied -the copy of a test plan item is done using IterationTestPlanItem.createCopy() |
IterationTestPlanItem |
findFirstExecutableTestPlanItem()
|
IterationTestPlanItem |
findNextExecutableTestPlanItem(long testPlanItemId)
finds next item (that last execution has unexecuted step) or (has no execution and is not test case deleted) can return item linked to test-case with no step |
AttachmentList |
getAttachmentList()
|
String |
getDescription()
|
IterationTestPlanItem |
getFirstTestPlanItem()
|
Long |
getId()
|
Iteration |
getIteration()
|
String |
getName()
|
List<IterationTestPlanItem> |
getTestPlan()
Warning : that property builds a new list every time. |
boolean |
isFirstExecutableTestPlanItem(long itemId)
Determines if the item is the first of the test plan of the test suite |
boolean |
isLastExecutableTestPlanItem(long itemId)
|
void |
rename(String newName)
|
void |
reorderTestPlan(int newIndex,
List<IterationTestPlanItem> movedItems)
Since the test plan of a TestSuite is merely a view on the backing iteration, we will reorder here the test plan accordingly. |
void |
setDescription(String description)
|
void |
setName(String name)
|
void |
unBindTestPlan(List<IterationTestPlanItem> items)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestSuite()
| Method Detail |
|---|
public Long getId()
getId in interface org.squashtest.csp.core.domain.Identifiedpublic String getName()
public void setName(String name)
public void rename(String newName)
public String getDescription()
public void setDescription(String description)
public Iteration getIteration()
public AttachmentList getAttachmentList()
public List<IterationTestPlanItem> getTestPlan()
#addTestPlan(List)) or the other one)
public IterationTestPlanItem getFirstTestPlanItem()
public void bindTestPlanItems(List<IterationTestPlanItem> items)
items - public void unBindTestPlan(List<IterationTestPlanItem> items)
public void bindTestPlanItemsById(List<Long> itemIds)
itemIds -
public void reorderTestPlan(int newIndex,
List<IterationTestPlanItem> movedItems)
public List<IterationTestPlanItem> createPastableCopyOfTestPlan()
returns an ordered copy of the test-suite test plan
-test plans items that are not linked to a test case are not copied
-the copy of a test plan item is done using IterationTestPlanItem.createCopy()
public TestSuite createPastableCopy()
returns a copy of a test Suite without it's test plan.
a copy of the test plan can be found at createPastableCopyOfTestPlan()
public boolean isLastExecutableTestPlanItem(long itemId)
public boolean isFirstExecutableTestPlanItem(long itemId)
public IterationTestPlanItem findNextExecutableTestPlanItem(long testPlanItemId)
testPlanItemId -
TestPlanItemNotExecutableException - if no item is found
IllegalArgumentException - if id does not correspond to an item of the test suitepublic IterationTestPlanItem findFirstExecutableTestPlanItem()
{@link - TestPlanItemNotExecutableException}
{@link - EmptyTestSuiteTestPlanException}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||