org.squashtest.tm.domain.campaign
@Entity public class IterationTestPlanItem extends Object implements HasExecutionStatus, Identified
| Constructor and Description |
|---|
IterationTestPlanItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExecution(Execution execution) |
void |
addTestSuite(TestSuite suite) |
Execution |
createAutomatedExecution() |
IterationTestPlanItem |
createCopy()
Factory method.
|
Execution |
createExecution()
Creates an execution of this item and returns it.
|
static Collection<IterationTestPlanItem> |
createTestPlanItems(TestCase testCase,
Collection<Dataset> datasets)
Creates a collection of test plan items for the given test case and datasets.
|
static IterationTestPlanItem |
createUnparameterizedTestPlanItem(TestCase testCase)
Creates a test plan item for the given test case. the test plan item won't be parameterized (ie no dataset).
|
void |
emptyExecutions() |
TestCaseExecutionMode |
getExecutionMode() |
List<Execution> |
getExecutions() |
ExecutionStatus |
getExecutionStatus() |
Long |
getId() |
Iteration |
getIteration() |
String |
getLabel() |
String |
getLastExecutedBy() |
Date |
getLastExecutedOn() |
Execution |
getLatestExecution() |
Set<ExecutionStatus> |
getLegalStatusSet() |
Project |
getProject() |
Dataset |
getReferencedDataset() |
TestCase |
getReferencedTestCase() |
String |
getTestSuiteNames() |
List<TestSuite> |
getTestSuites() |
User |
getUser() |
boolean |
isAssignedToUser(String userLogin)
Return true if the item is assigned to the given user.
|
boolean |
isAutomated() |
boolean |
isExecutableThroughIteration() |
boolean |
isExecutableThroughTestSuite() |
boolean |
isTestCaseDeleted()
One should use
isExecutableThroughIteration() in favor of this method. |
void |
removeExecution(Execution execution) |
void |
removeTestSuite(TestSuite suite) |
void |
setExecutionStatus(ExecutionStatus executionStatus) |
void |
setLabel(String label) |
void |
setLastExecutedBy(String lastExecutedBy) |
void |
setLastExecutedOn(Date lastExecutedOn)
that method will also forward the information to the iteration for update of autoset dates.
|
void |
setReferencedDataset(Dataset referencedDataset) |
void |
setReferencedTestCase(TestCase referencedTestCase) |
void |
setTestSuites(List<TestSuite> testSuites) |
void |
setUser(User user) |
void |
updateExecutionStatus()
the IterationTestPlanItem will fetch the ExecutionStatus of the last "live" Execution in his execution list
|
public Iteration getIteration()
public ExecutionStatus getExecutionStatus()
getExecutionStatus in interface HasExecutionStatuspublic Set<ExecutionStatus> getLegalStatusSet()
getLegalStatusSet in interface HasExecutionStatusExecutionStatus available not all might be relevant for that entity.
The given collection is unmodifiable.public void setExecutionStatus(ExecutionStatus executionStatus)
public void updateExecutionStatus()
public TestCase getReferencedTestCase()
public void setReferencedTestCase(TestCase referencedTestCase)
public Long getId()
getId in interface Identifiedpublic void setLabel(String label)
public String getLabel()
public String getLastExecutedBy()
public void setLastExecutedBy(String lastExecutedBy)
public Date getLastExecutedOn()
public void setLastExecutedOn(Date lastExecutedOn)
public void emptyExecutions()
public void addExecution(@NotNull
Execution execution)
public Execution createExecution() throws TestPlanItemNotExecutableException
Will not check cyclic calls between the referenced test cases anymore (eg A calls B calls C calls A). You have been warned
TestPlanItemNotExecutableExceptionpublic Execution createAutomatedExecution() throws TestPlanItemNotExecutableException
public boolean isAutomated()
public void removeExecution(Execution execution)
public IterationTestPlanItem createCopy()
nullpublic Project getProject()
public User getUser()
public void setUser(User user)
public boolean isExecutableThroughIteration()
public boolean isExecutableThroughTestSuite()
public boolean isTestCaseDeleted()
isExecutableThroughIteration() in favor of this method.public void addTestSuite(@NotNull
TestSuite suite)
public void removeTestSuite(TestSuite suite)
public String getTestSuiteNames()
public Execution getLatestExecution()
public TestCaseExecutionMode getExecutionMode()
public Dataset getReferencedDataset()
public void setReferencedDataset(Dataset referencedDataset)
public static Collection<IterationTestPlanItem> createTestPlanItems(TestCase testCase, Collection<Dataset> datasets)
testCase - datasets - collection of datasets, can be empty or null.public static IterationTestPlanItem createUnparameterizedTestPlanItem(TestCase testCase)
testCase - public boolean isAssignedToUser(@NotNull
String userLogin)
userLogin - : the login of the concerned user (may not be null)null and matches the given login.Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.