@Entity public class Execution extends Object implements AttachmentHolder, IssueDetector, Identified, HasExecutionStatus, DenormalizedFieldHolder, BoundEntity
| Modifier and Type | Field and Description |
|---|---|
protected TestCaseExecutionMode |
executionMode |
static String |
NO_DATASET_APPLICABLE_LABEL |
static String |
NO_DATASET_USED_LABEL |
| Constructor and Description |
|---|
Execution() |
Execution(TestCase testCase)
Creates an execution for the test case references by the given tess plan item.
|
Execution(TestCase testCase,
Dataset dataset) |
public static final String NO_DATASET_USED_LABEL
public static final String NO_DATASET_APPLICABLE_LABEL
protected TestCaseExecutionMode executionMode
public Execution()
public Execution(TestCase testCase)
IterationTestPlanItem only.testPlanItem - public List<ExecutionStep> getSteps()
public void removeStep(long executionStepId)
public ExecutionStatus getExecutionStatus()
getExecutionStatus in interface HasExecutionStatuspublic Integer getExecutionOrder()
public String getLastExecutedBy()
public void setLastExecutedBy(String lastExecutedBy)
public Date getLastExecutedOn()
public void setLastExecutedOn(Date lastExecutedOn)
public TestCaseExecutionMode getExecutionMode()
public Long getId()
getId in interface Identifiedpublic TestCase getReferencedTestCase()
public String getName()
public final void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getPrerequisite()
public void setPrerequisite(@NotNull
String prerequisite)
prerequisite - the prerequisite to setpublic String getReference()
public void setReference(String reference)
public TestCaseImportance getImportance()
public void setImportance(@NotNull
TestCaseImportance importance)
public DenormalizedNature getNature()
public void setNature(@NotNull
DenormalizedNature nature)
public DenormalizedType getType()
public void setType(@NotNull
DenormalizedType type)
public TestCaseStatus getStatus()
public void setStatus(@NotNull
TestCaseStatus status)
public String getTcdescription()
public void setTcdescription(String tcdescription)
public String getDatasetLabel()
public ExecutionStep findFirstUnexecutedStep()
return the first step with a running or a ready state.
Or null if there is none or the execution has no steps
public boolean hasUnexecutedSteps()
public AttachmentList getAttachmentList()
AttachmentHoldernull.getAttachmentList in interface AttachmentHolderAttachmentList of this object.public IterationTestPlanItem getTestPlan()
public CampaignLibrary getCampaignLibrary()
public Project getProject()
IssueDetectorgetProject in interface IssueDetectorgetProject in interface BoundEntitypublic IssueList getIssueList()
getIssueList in interface IssueDetectorpublic Long getIssueListId()
getIssueListId in interface IssueDetectorpublic void detachIssue(Long id)
IssueDetectordetachIssue in interface IssueDetectorpublic void notifyAddedTo(IterationTestPlanItem testPlan)
public ExecutionStep findFirstRunnableStep() throws ExecutionHasNoStepsException, ExecutionHasNoRunnableStepException
ExecutionHasNoStepsExceptionExecutionHasNoRunnableStepExceptionpublic ExecutionStep getLastStep() throws ExecutionHasNoStepsException
ExecutionHasNoStepsException - if there are no stepspublic List<Long> getAllIssueListId()
getAllIssueListId in interface IssueDetectorpublic org.squashtest.csp.core.bugtracker.domain.BugTracker getBugTracker()
getBugTracker in interface IssueDetectorpublic AutomatedExecutionExtender getAutomatedExecutionExtender()
public void setAutomatedExecutionExtender(AutomatedExecutionExtender extender)
public boolean isAutomated()
public void setExecutionStatus(ExecutionStatus status)
public Set<ExecutionStatus> getLegalStatusSet()
getLegalStatusSet in interface HasExecutionStatusExecutionStatus available not all might be relevant for that entity.
The given collection is unmodifiable.public AutomatedTest getAutomatedTest()
public URL getResultURL()
public AutomatedSuite getAutomatedSuite()
public String getResultSummary()
public Long getDenormalizedFieldHolderId()
getDenormalizedFieldHolderId in interface DenormalizedFieldHolderpublic DenormalizedFieldHolderType getDenormalizedFieldHolderType()
getDenormalizedFieldHolderType in interface DenormalizedFieldHolderpublic int getStepIndex(long stepId)
-1 if step is not found.public Long getBoundEntityId()
getBoundEntityId in interface BoundEntitypublic BindableEntity getBoundEntityType()
getBoundEntityType in interface BoundEntitypublic static ExecutionStatus computeNewStatus(ExecutionStatusReport report)
report - : ExecutionStatusReport.public Iteration getIteration()
public Campaign getCampaign()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.