com.projectdarkstar.tools.dtc.domain
Class TestExecution

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.domain.TestExecution
All Implemented Interfaces:
Serializable

public class TestExecution
extends Object
implements Serializable

Represents an instance of an execution of a TestSuite. A TestExecution also retains all of the configuration options, parameters, and names of the TestSuite 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.

See Also:
Serialized Form

Constructor Summary
TestExecution()
           
TestExecution(String name, TestSuite originalTestSuite)
           
 
Method Summary
 boolean equals(Object o)
           
 Date getDateFinished()
           
 Date getDateStarted()
           
 Long getId()
          Returns the id of the entity in persistent storage
 String getName()
           
 TestSuite getOriginalTestSuite()
          Returns the original TestSuite that this test execution is based on.
 PkgLibrary getOriginalTestSuiteDarkstarPkg()
          Returns the original PkgLibrary for the darkstar package required to run the tests.
 String getOriginalTestSuiteDescription()
           
 String getOriginalTestSuiteName()
           
 List<TestExecutionResult> getResults()
          Returns a list of TestExecutionResult objects that were executed as part of this test execution.
 List<TestExecutionTag> getTags()
          Returns a list of TestExecutionTag 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()
           
 void setDateFinished(Date dateFinished)
           
 void setDateStarted(Date dateStarted)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setOriginalTestSuite(TestSuite originalTestSuite)
           
 void setOriginalTestSuiteDarkstarPkg(PkgLibrary originalTestSuiteDarkstarPkg)
           
 void setResults(List<TestExecutionResult> results)
           
 void setTags(List<TestExecutionTag> tags)
           
protected  void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestExecution

public TestExecution()

TestExecution

public TestExecution(String name,
                     TestSuite originalTestSuite)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Returns:
id of the entity

setId

public void setId(Long id)

getVersionNumber

public Long getVersionNumber()
Returns the version number in the data store that this entity represents. Whenever an update to an object is pushed to the persistent data store, the version number is incremented.

Returns:
version number of the entity

setVersionNumber

protected void setVersionNumber(Long versionNumber)

getName

public String getName()

setName

public void setName(String name)

getDateStarted

public Date getDateStarted()

setDateStarted

public void setDateStarted(Date dateStarted)

getDateFinished

public Date getDateFinished()

setDateFinished

public void setDateFinished(Date dateFinished)

getTags

public List<TestExecutionTag> getTags()
Returns a list of TestExecutionTag objects that are used to categorize test executions into groups.

Returns:
list of tags for this test execution

setTags

public void setTags(List<TestExecutionTag> tags)

getResults

public List<TestExecutionResult> getResults()
Returns a list of TestExecutionResult objects that were executed as part of this test execution.

Returns:
list of results

setResults

public void setResults(List<TestExecutionResult> results)

getOriginalTestSuiteDarkstarPkg

public PkgLibrary getOriginalTestSuiteDarkstarPkg()
Returns the original PkgLibrary 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.

Returns:
original darkstar package required to run the tests

setOriginalTestSuiteDarkstarPkg

public void setOriginalTestSuiteDarkstarPkg(PkgLibrary originalTestSuiteDarkstarPkg)

getOriginalTestSuiteName

public String getOriginalTestSuiteName()

getOriginalTestSuiteDescription

public String getOriginalTestSuiteDescription()

getOriginalTestSuite

public TestSuite getOriginalTestSuite()
Returns the original TestSuite that this test execution is based on.

Returns:
original TestSuite used to create the test execution

setOriginalTestSuite

public void setOriginalTestSuite(TestSuite originalTestSuite)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.