com.projectdarkstar.tools.dtc.domain
Class TestExecutionResult

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

public class TestExecutionResult
extends Object
implements Serializable

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

See Also:
Serialized Form

Constructor Summary
TestExecutionResult()
           
TestExecutionResult(TestSpec originalTestSpec, TestExecution parentExecution)
           
 
Method Summary
 boolean equals(Object o)
           
 List<TestExecutionResultClientData> getClientData()
          A list of TestExecutionResultClientData objects are periodically collected during the execution of a test to monitor how many clients are acting in the system over time.
 List<TestExecutionResultClientLog> getClientLogs()
          A TestExecutionResultClientLog is generated for each ClientAppConfig client application simulator that is run during the test.
 List<HardwareResource> getClientResources()
          Returns a list of HardwareResource 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<HardwareResourceFamily> getOriginalClientResources()
           
 List<HardwareResourceFamily> getOriginalServerResources()
           
 TestSpec getOriginalTestSpec()
           
 String getOriginalTestSpecDescription()
           
 Long getOriginalTestSpecMaxClients()
           
 String getOriginalTestSpecName()
           
 String getOriginalTestSpecTestRunner()
           
 Long getOriginalTestSpecTimeLimit()
           
 TestExecution getParentExecution()
           
 List<TestExecutionResultProbeLog> getProbeLogs()
          A TestExecutionResultProbeLog is generated for each SystemProbe monitoring the system during the test.
 List<Property> getProperties()
          Returns a list of arguments in the form of Property objects to be passed to the TestRunner during run time.
 TestExecutionResultValue getResult()
           
 LogFile getResultSummary()
           
 List<TestExecutionResultServerLog> getServerLogs()
          A TestExecutionResultServerLog is generated for each HardwareResource that the server application is run on during the test.
 List<HardwareResource> getServerResources()
          Returns a list of HardwareResource 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()
           
 void setClientData(List<TestExecutionResultClientData> clientData)
           
 void setClientLogs(List<TestExecutionResultClientLog> clientLogs)
           
 void setClientResources(List<HardwareResource> clientResources)
           
 void setId(Long id)
           
 void setParentExecution(TestExecution parentExecution)
           
 void setProbeLogs(List<TestExecutionResultProbeLog> probeLogs)
           
 void setProperties(List<Property> properties)
           
 void setResult(TestExecutionResultValue result)
           
 void setResultSummary(LogFile resultSummary)
           
 void setServerLogs(List<TestExecutionResultServerLog> serverLogs)
           
 void setServerResources(List<HardwareResource> serverResources)
           
protected  void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestExecutionResult

public TestExecutionResult()

TestExecutionResult

public TestExecutionResult(TestSpec originalTestSpec,
                           TestExecution parentExecution)
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)

getResult

public TestExecutionResultValue getResult()

setResult

public void setResult(TestExecutionResultValue result)

getResultSummary

public LogFile getResultSummary()

setResultSummary

public void setResultSummary(LogFile resultSummary)

getProperties

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

Returns:
list of arguments

setProperties

public void setProperties(List<Property> properties)

getServerLogs

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

Returns:
list of server logs

setServerLogs

public void setServerLogs(List<TestExecutionResultServerLog> serverLogs)

getClientLogs

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

Returns:
list of client logs

setClientLogs

public void setClientLogs(List<TestExecutionResultClientLog> clientLogs)

getProbeLogs

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

Returns:
list of probe logs

setProbeLogs

public void setProbeLogs(List<TestExecutionResultProbeLog> probeLogs)

getClientData

public List<TestExecutionResultClientData> getClientData()
A list of TestExecutionResultClientData 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

public void setClientData(List<TestExecutionResultClientData> clientData)

getServerResources

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

Returns:
list of server resources

setServerResources

public void setServerResources(List<HardwareResource> serverResources)

getClientResources

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

Returns:
list of client resources

setClientResources

public void setClientResources(List<HardwareResource> clientResources)

getOriginalServerResources

public List<HardwareResourceFamily> getOriginalServerResources()

getOriginalClientResources

public List<HardwareResourceFamily> getOriginalClientResources()

getOriginalTestSpecName

public String getOriginalTestSpecName()

getOriginalTestSpecDescription

public String getOriginalTestSpecDescription()

getOriginalTestSpecTestRunner

public String getOriginalTestSpecTestRunner()

getOriginalTestSpecTimeLimit

public Long getOriginalTestSpecTimeLimit()

getOriginalTestSpecMaxClients

public Long getOriginalTestSpecMaxClients()

getOriginalTestSpec

public TestSpec getOriginalTestSpec()

getParentExecution

public TestExecution getParentExecution()

setParentExecution

public void setParentExecution(TestExecution parentExecution)

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.