@Entity @Indexed public class TestSuite extends Object implements Identified, Copiable, TreeNode, BoundEntity, AttachmentHolder, MilestoneMember
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NAME_SIZE |
| Constructor and Description |
|---|
TestSuite() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(NodeVisitor visitor) |
void |
bindTestPlanItem(IterationTestPlanItem item) |
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 |
createCopy()
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() |
Boolean |
doMilestonesAllowCreation() |
Boolean |
doMilestonesAllowEdition() |
IterationTestPlanItem |
findFirstExecutableTestPlanItem() |
IterationTestPlanItem |
findFirstExecutableTestPlanItem(String testerLogin) |
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
|
IterationTestPlanItem |
findNextExecutableTestPlanItem(long testPlanItemId,
String testerLogin)
finds next item (that last execution has unexecuted step) or (has no execution and is not test case deleted) and that is assigned to the current user if he is a tester.
|
AttachmentList |
getAttachmentList()
Should return the container for this object's attachments.
|
Long |
getBoundEntityId() |
BindableEntity |
getBoundEntityType() |
String |
getDescription() |
IterationTestPlanItem |
getFirstTestPlanItem() |
IterationTestPlanItem |
getFirstTestPlanItem(String testerLogin) |
Long |
getId() |
Iteration |
getIteration() |
Set<Milestone> |
getMilestones() |
String |
getName() |
Project |
getProject() |
List<IterationTestPlanItem> |
getTestPlan() |
boolean |
isFirstExecutableTestPlanItem(long itemId)
Determines if the item is the first of the test plan of the test suite
|
boolean |
isFirstExecutableTestPlanItem(long itemId,
String testerLogin)
Determines if the item is the first of the test plan of the test suite
|
boolean |
isLastExecutableTestPlanItem(long itemId) |
boolean |
isLastExecutableTestPlanItem(long itemId,
String userLogin) |
boolean |
isMemberOf(Milestone milestone) |
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 |
setTestPlan(List<IterationTestPlanItem> testPlan) |
void |
unBindTestPlan(IterationTestPlanItem item) |
void |
unBindTestPlan(List<IterationTestPlanItem> items) |
public static final int MAX_NAME_SIZE
public Long getId()
getId in interface Identifiedpublic void rename(String newName)
public String getDescription()
public void setDescription(String description)
public Iteration getIteration()
public AttachmentList getAttachmentList()
AttachmentHoldernull.getAttachmentList in interface AttachmentHolderAttachmentList of this object.public IterationTestPlanItem getFirstTestPlanItem()
public IterationTestPlanItem getFirstTestPlanItem(String testerLogin)
public void bindTestPlanItems(List<IterationTestPlanItem> items)
public void bindTestPlanItem(IterationTestPlanItem item)
public void unBindTestPlan(List<IterationTestPlanItem> items)
public void unBindTestPlan(IterationTestPlanItem item)
public void bindTestPlanItemsById(List<Long> 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 createCopy()
returns a copy of a test Suite without it's test plan.
a copy of the test plan can be found at createPastableCopyOfTestPlan()
createCopy in interface Copiablepublic boolean isLastExecutableTestPlanItem(long itemId)
public boolean isLastExecutableTestPlanItem(long itemId,
String userLogin)
public boolean isFirstExecutableTestPlanItem(long itemId)
public boolean isFirstExecutableTestPlanItem(long itemId,
String testerLogin)
itemId - : the id of the item to determine if it is the first executable test plan itemtesterLogin - : the id of the current user if he is a Test runnerpublic IterationTestPlanItem findNextExecutableTestPlanItem(long testPlanItemId)
TestPlanItemNotExecutableException - if no item is foundIllegalArgumentException - if id does not correspond to an item of the test suitepublic IterationTestPlanItem findNextExecutableTestPlanItem(long testPlanItemId, String testerLogin)
testerLogin - : the login of the connected user if he is a Test RunnerTestPlanItemNotExecutableException - if no item is foundIllegalArgumentException - if id does not correspond to an item of the test suitepublic IterationTestPlanItem findFirstExecutableTestPlanItem()
public IterationTestPlanItem findFirstExecutableTestPlanItem(String testerLogin)
public Long getBoundEntityId()
getBoundEntityId in interface BoundEntitypublic BindableEntity getBoundEntityType()
getBoundEntityType in interface BoundEntitypublic Project getProject()
getProject in interface BoundEntitygetProject in interface TreeNodepublic void accept(NodeVisitor visitor)
public List<IterationTestPlanItem> getTestPlan()
public void setTestPlan(List<IterationTestPlanItem> testPlan)
public Set<Milestone> getMilestones()
getMilestones in interface MilestoneMemberpublic boolean isMemberOf(Milestone milestone)
isMemberOf in interface MilestoneMemberpublic Boolean doMilestonesAllowCreation()
doMilestonesAllowCreation in interface MilestoneMemberpublic Boolean doMilestonesAllowEdition()
doMilestonesAllowEdition in interface MilestoneMemberCopyright © 2010–2016 Henix, henix.fr. All rights reserved.