org.easetech.easytest.reports.data
Class TestResultBean

java.lang.Object
  extended by org.easetech.easytest.reports.data.TestResultBean
All Implemented Interfaces:
Serializable

public class TestResultBean
extends Object
implements Serializable

This class is a single result of a test run for one test method.

Author:
gpcmol
See Also:
Serialized Form

Constructor Summary
TestResultBean()
           
TestResultBean(String method, Map<String,Object> input, Object output, Boolean passed, String result, Boolean exception, String exceptionResult, Date date)
           
 
Method Summary
 void addInput(String key, String value)
           
 void addTestItemDurationBean(DurationBean testItemDurationBean)
           
 Date getDate()
           
 Boolean getException()
           
 String getExceptionResult()
           
 Map<String,Object> getInput()
           
 String getMethod()
           
 Object getOutput()
           
 Boolean getPassed()
           
 String getResult()
           
 String getResultString()
          Returns either the result of an assertion or an exception trace
 List<DurationBean> getTestItemDurations()
           
 Map<String,DurationBean> getTestItemDurationsMap()
           
 void setDate(Date date)
           
 void setException(Boolean exception)
           
 void setExceptionResult(String exceptionResult)
           
 void setInput(Map<String,Object> input)
           
 void setMethod(String method)
           
 void setOutput(Object output)
           
 void setPassed(Boolean passed)
           
 void setResult(String result)
           
 void setTestItemDurations(List<DurationBean> testItemDurations)
           
 void setTestItemDurationsMap(Map<String,DurationBean> testItemDurationsMap)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestResultBean

public TestResultBean()

TestResultBean

public TestResultBean(String method,
                      Map<String,Object> input,
                      Object output,
                      Boolean passed,
                      String result,
                      Boolean exception,
                      String exceptionResult,
                      Date date)
Method Detail

getMethod

public String getMethod()

setMethod

public void setMethod(String method)

getInput

public Map<String,Object> getInput()

setInput

public void setInput(Map<String,Object> input)

addInput

public void addInput(String key,
                     String value)

getOutput

public Object getOutput()

setOutput

public void setOutput(Object output)

getPassed

public Boolean getPassed()

setPassed

public void setPassed(Boolean passed)

getResult

public String getResult()

setResult

public void setResult(String result)

getException

public Boolean getException()

setException

public void setException(Boolean exception)

getExceptionResult

public String getExceptionResult()

setExceptionResult

public void setExceptionResult(String exceptionResult)

getDate

public Date getDate()

setDate

public void setDate(Date date)

getResultString

public String getResultString()
Returns either the result of an assertion or an exception trace

Returns:
string

getTestItemDurations

public List<DurationBean> getTestItemDurations()

setTestItemDurations

public void setTestItemDurations(List<DurationBean> testItemDurations)

getTestItemDurationsMap

public Map<String,DurationBean> getTestItemDurationsMap()

setTestItemDurationsMap

public void setTestItemDurationsMap(Map<String,DurationBean> testItemDurationsMap)

addTestItemDurationBean

public void addTestItemDurationBean(DurationBean testItemDurationBean)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.