|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.projectdarkstar.tools.dtc.data.AbstractDTO
com.projectdarkstar.tools.dtc.data.TestExecutionDTO
public class TestExecutionDTO
Represents an instance of an execution of a TestSuiteDTO.
A TestExecution also retains all of the configuration options,
parameters, and names of the TestSuiteDTO as it was
at the point in time that the TestExecution was created. Additionally,
complete result information and log files for the executed test
are stored.
| Constructor Summary | |
|---|---|
TestExecutionDTO(Long id,
Long versionNumber,
String name,
Date dateStarted,
Date dateFinished,
String originalTestSuiteName,
String originalTestSuiteDescription)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Date |
getDateFinished()
|
Date |
getDateStarted()
|
Long |
getId()
Returns the id of the entity in persistent storage |
String |
getName()
|
TestSuiteDTO |
getOriginalTestSuite()
Returns the original TestSuiteDTO that this test execution
is based on. |
PkgLibraryDTO |
getOriginalTestSuiteDarkstarPkg()
Returns the original PkgLibraryDTO for the
darkstar package required to run the
tests. |
String |
getOriginalTestSuiteDescription()
|
String |
getOriginalTestSuiteName()
|
List<TestExecutionResultDTO> |
getResults()
Returns a list of TestExecutionResultDTO objects that were executed
as part of this test execution. |
List<TestExecutionTagDTO> |
getTags()
Returns a list of TestExecutionTagDTO objects that are used
to categorize test executions into groups. |
Long |
getVersionNumber()
Returns the version number in the data store that this entity represents. |
int |
hashCode()
|
protected void |
setDateFinished(Date dateFinished)
|
protected void |
setDateStarted(Date dateStarted)
|
void |
setId(Long id)
|
protected void |
setName(String name)
|
protected void |
setOriginalTestSuiteDarkstarPkg(PkgLibraryDTO originalTestSuiteDarkstarPkg)
|
protected void |
setResults(List<TestExecutionResultDTO> results)
|
protected void |
setTags(List<TestExecutionTagDTO> tags)
|
void |
updateDateFinished(Date dateFinished)
|
void |
updateDateStarted(Date dateStarted)
|
void |
updateName(String name)
|
void |
updateOriginalTestSuiteDarkstarPkg(PkgLibraryDTO originalTestSuiteDarkstarPkg)
|
void |
updateResults(List<TestExecutionResultDTO> results)
|
void |
validate()
Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object. |
| Methods inherited from class com.projectdarkstar.tools.dtc.data.AbstractDTO |
|---|
checkBlank, checkNull, getFullyPopulated, getUpdatedAttributes, updateAttribute, valueToValidate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestExecutionDTO(Long id,
Long versionNumber,
String name,
Date dateStarted,
Date dateFinished,
String originalTestSuiteName,
String originalTestSuiteDescription)
| Method Detail |
|---|
public Long getId()
getId in class AbstractDTOpublic void setId(Long id)
public Long getVersionNumber()
public String getName()
protected void setName(String name)
public void updateName(String name)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic Date getDateStarted()
protected void setDateStarted(Date dateStarted)
public void updateDateStarted(Date dateStarted)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic Date getDateFinished()
protected void setDateFinished(Date dateFinished)
public void updateDateFinished(Date dateFinished)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic List<TestExecutionTagDTO> getTags()
TestExecutionTagDTO objects that are used
to categorize test executions into groups.
protected void setTags(List<TestExecutionTagDTO> tags)
public List<TestExecutionResultDTO> getResults()
TestExecutionResultDTO objects that were executed
as part of this test execution.
protected void setResults(List<TestExecutionResultDTO> results)
public void updateResults(List<TestExecutionResultDTO> results)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic PkgLibraryDTO getOriginalTestSuiteDarkstarPkg()
PkgLibraryDTO for the
darkstar package required to run the
tests. This attribute can be customized to run this test execution
against a different darkstar package if required.
protected void setOriginalTestSuiteDarkstarPkg(PkgLibraryDTO originalTestSuiteDarkstarPkg)
public void updateOriginalTestSuiteDarkstarPkg(PkgLibraryDTO originalTestSuiteDarkstarPkg)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic String getOriginalTestSuiteName()
public String getOriginalTestSuiteDescription()
public TestSuiteDTO getOriginalTestSuite()
TestSuiteDTO that this test execution
is based on.
TestSuiteDTO used to create the test execution
public void validate()
throws DTCInvalidDataException
AbstractDTO
validate in class AbstractDTODTCInvalidDataExceptionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||