@Entity @Indexed public class IterationTestPlanItem extends Object implements HasExecutionStatus, Identified
| Constructor and Description |
|---|
IterationTestPlanItem() |
IterationTestPlanItem(TestCase testCase) |
IterationTestPlanItem(TestCase testCase,
Dataset dataset) |
IterationTestPlanItem(TestCase testCase,
Dataset dataset,
User assignee) |
public IterationTestPlanItem()
public IterationTestPlanItem(TestCase testCase)
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()
null@IndexedEmbedded(includeEmbeddedObjectId=true) public 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()
@Field(analyze=NO,
store=YES)
@FieldBridge(impl=LevelEnumBridge.class)
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.public void addExecutionAtPos(Execution execution, int order)
@IndexedEmbedded(includeEmbeddedObjectId=true,
depth=1)
public Campaign getCampaign()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.