com.projectdarkstar.tools.dtc.data
Class TestExecutionResultDTO

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.data.AbstractDTO
      extended by com.projectdarkstar.tools.dtc.data.TestExecutionResultDTO
All Implemented Interfaces:
Serializable

public class TestExecutionResultDTO
extends AbstractDTO

Represents the results for a specific instance of a TestSpecDTO. Each TestExecutionResult is part of a parent TestExecutionDTO to make up one cohesive set of test results.

See Also:
Serialized Form

Constructor Summary
TestExecutionResultDTO(Long id, Long versionNumber, TestExecutionResultValueDTO result, String originalTestSpecName, String originalTestSpecDescription, String originalTestSpecTestRunner, Long originalTestSpecTimeLimit, Long originalTestSpecMaxClients)
           
 
Method Summary
 boolean equals(Object o)
           
 List<TestExecutionResultClientDataDTO> getClientData()
          A list of TestExecutionResultClientDataDTO objects are periodically collected during the execution of a test to monitor how many clients are acting in the system over time.
 List<TestExecutionResultClientLogDTO> getClientLogs()
          A TestExecutionResultClientLogDTO is generated for each ClientAppConfigDTO client application simulator that is run during the test.
 List<HardwareResourceDTO> getClientResources()
          Returns a list of HardwareResourceDTO objects taht are used to run the client application simulators during the test
 Long getId()
          Returns the id of the entity in persistent storage
 List<HardwareResourceFamilyDTO> getOriginalClientResources()
           
 List<HardwareResourceFamilyDTO> getOriginalServerResources()
           
 TestSpecDTO getOriginalTestSpec()
           
 String getOriginalTestSpecDescription()
           
 Long getOriginalTestSpecMaxClients()
           
 String getOriginalTestSpecName()
           
 String getOriginalTestSpecTestRunner()
           
 Long getOriginalTestSpecTimeLimit()
           
 TestExecutionDTO getParentExecution()
           
 List<TestExecutionResultProbeLogDTO> getProbeLogs()
          A TestExecutionResultProbeLogDTO is generated for each SystemProbeDTO monitoring the system during the test.
 List<PropertyDTO> getProperties()
          Returns a list of arguments in the form of PropertyDTO objects to be passed to the TestRunner during run time.
 TestExecutionResultValueDTO getResult()
           
 LogFileDTO getResultSummary()
           
 List<TestExecutionResultServerLogDTO> getServerLogs()
          A TestExecutionResultServerLogDTO is generated for each HardwareResourceDTO that the server application is run on during the test.
 List<HardwareResourceDTO> getServerResources()
          Returns a list of HardwareResourceDTO objects that are used to run the server application on during the test.
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
protected  void setClientData(List<TestExecutionResultClientDataDTO> clientData)
           
protected  void setClientLogs(List<TestExecutionResultClientLogDTO> clientLogs)
           
protected  void setClientResources(List<HardwareResourceDTO> clientResources)
           
 void setId(Long id)
           
protected  void setParentExecution(TestExecutionDTO parentExecution)
           
protected  void setProbeLogs(List<TestExecutionResultProbeLogDTO> probeLogs)
           
protected  void setProperties(List<PropertyDTO> properties)
           
protected  void setResult(TestExecutionResultValueDTO result)
           
protected  void setResultSummary(LogFileDTO resultSummary)
           
protected  void setServerLogs(List<TestExecutionResultServerLogDTO> serverLogs)
           
protected  void setServerResources(List<HardwareResourceDTO> serverResources)
           
 void updateClientData(List<TestExecutionResultClientDataDTO> clientData)
           
 void updateClientLogs(List<TestExecutionResultClientLogDTO> clientLogs)
           
 void updateClientResources(List<HardwareResourceDTO> clientResources)
           
 void updateParentExecution(TestExecutionDTO parentExecution)
           
 void updateProbeLogs(List<TestExecutionResultProbeLogDTO> probeLogs)
           
 void updateProperties(List<PropertyDTO> properties)
           
 void updateResult(TestExecutionResultValueDTO result)
           
 void updateResultSummary(LogFileDTO resultSummary)
           
 void updateServerLogs(List<TestExecutionResultServerLogDTO> serverLogs)
           
 void updateServerResources(List<HardwareResourceDTO> serverResources)
           
 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

TestExecutionResultDTO

public TestExecutionResultDTO(Long id,
                              Long versionNumber,
                              TestExecutionResultValueDTO result,
                              String originalTestSpecName,
                              String originalTestSpecDescription,
                              String originalTestSpecTestRunner,
                              Long originalTestSpecTimeLimit,
                              Long originalTestSpecMaxClients)
Method Detail

getId

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

Specified by:
getId in class AbstractDTO
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

getResult

public TestExecutionResultValueDTO getResult()

setResult

protected void setResult(TestExecutionResultValueDTO result)

updateResult

public void updateResult(TestExecutionResultValueDTO result)
                  throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getResultSummary

public LogFileDTO getResultSummary()

setResultSummary

protected void setResultSummary(LogFileDTO resultSummary)

updateResultSummary

public void updateResultSummary(LogFileDTO resultSummary)
                         throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getProperties

public List<PropertyDTO> getProperties()
Returns a list of arguments in the form of PropertyDTO objects to be passed to the TestRunner during run time. These are derived from the original TestSpecDTO used to create this TestExecutionResult and should be customized for each specific case.

Returns:
list of arguments

setProperties

protected void setProperties(List<PropertyDTO> properties)

updateProperties

public void updateProperties(List<PropertyDTO> properties)
                      throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getServerLogs

public List<TestExecutionResultServerLogDTO> getServerLogs()
A TestExecutionResultServerLogDTO is generated for each HardwareResourceDTO that the server application is run on during the test. Returns a list of these logs.

Returns:
list of server logs

setServerLogs

protected void setServerLogs(List<TestExecutionResultServerLogDTO> serverLogs)

updateServerLogs

public void updateServerLogs(List<TestExecutionResultServerLogDTO> serverLogs)
                      throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getClientLogs

public List<TestExecutionResultClientLogDTO> getClientLogs()
A TestExecutionResultClientLogDTO is generated for each ClientAppConfigDTO client application simulator that is run during the test. Returns a list of these logs.

Returns:
list of client logs

setClientLogs

protected void setClientLogs(List<TestExecutionResultClientLogDTO> clientLogs)

updateClientLogs

public void updateClientLogs(List<TestExecutionResultClientLogDTO> clientLogs)
                      throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getProbeLogs

public List<TestExecutionResultProbeLogDTO> getProbeLogs()
A TestExecutionResultProbeLogDTO is generated for each SystemProbeDTO monitoring the system during the test. Returns a list of these logs.

Returns:
list of probe logs

setProbeLogs

protected void setProbeLogs(List<TestExecutionResultProbeLogDTO> probeLogs)

updateProbeLogs

public void updateProbeLogs(List<TestExecutionResultProbeLogDTO> probeLogs)
                     throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getClientData

public List<TestExecutionResultClientDataDTO> getClientData()
A list of TestExecutionResultClientDataDTO objects are periodically collected during the execution of a test to monitor how many clients are acting in the system over time. Returns a list of these data objects.

Returns:
list of client data points

setClientData

protected void setClientData(List<TestExecutionResultClientDataDTO> clientData)

updateClientData

public void updateClientData(List<TestExecutionResultClientDataDTO> clientData)
                      throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getServerResources

public List<HardwareResourceDTO> getServerResources()
Returns a list of HardwareResourceDTO objects that are used to run the server application on during the test.

Returns:
list of server resources

setServerResources

protected void setServerResources(List<HardwareResourceDTO> serverResources)

updateServerResources

public void updateServerResources(List<HardwareResourceDTO> serverResources)
                           throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getClientResources

public List<HardwareResourceDTO> getClientResources()
Returns a list of HardwareResourceDTO objects taht are used to run the client application simulators during the test

Returns:
list of client resources

setClientResources

protected void setClientResources(List<HardwareResourceDTO> clientResources)

updateClientResources

public void updateClientResources(List<HardwareResourceDTO> clientResources)
                           throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getOriginalServerResources

public List<HardwareResourceFamilyDTO> getOriginalServerResources()

getOriginalClientResources

public List<HardwareResourceFamilyDTO> getOriginalClientResources()

getOriginalTestSpecName

public String getOriginalTestSpecName()

getOriginalTestSpecDescription

public String getOriginalTestSpecDescription()

getOriginalTestSpecTestRunner

public String getOriginalTestSpecTestRunner()

getOriginalTestSpecTimeLimit

public Long getOriginalTestSpecTimeLimit()

getOriginalTestSpecMaxClients

public Long getOriginalTestSpecMaxClients()

getOriginalTestSpec

public TestSpecDTO getOriginalTestSpec()

getParentExecution

public TestExecutionDTO getParentExecution()

setParentExecution

protected void setParentExecution(TestExecutionDTO parentExecution)

updateParentExecution

public void updateParentExecution(TestExecutionDTO parentExecution)
                           throws DTCInvalidDataException
Throws:
DTCInvalidDataException

validate

public void validate()
              throws DTCInvalidDataException
Description copied from class: AbstractDTO
Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object.

Specified by:
validate in class AbstractDTO
Throws:
DTCInvalidDataException

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.