org.jzonic.webtester
Class WebTestResult

java.lang.Object
  |
  +--org.jzonic.webtester.WebTestResult

public class WebTestResult
extends java.lang.Object

The WebTestResult contains all informations about a testcase.


Constructor Summary
WebTestResult(java.lang.String webTestName)
           
 
Method Summary
 void addResult(WebTestNodeResult res)
          This method adds a WebTestNodeResult to the list of results for this test.
 long getDuration()
          Returns the amount of milliseconds that the entire test took
 WebTestNodeResult getErrorNode()
           
 java.util.List getTestResults()
           
 java.lang.String getWebTestName()
           
 boolean isSuccess()
          Returns the state of the entire test
 void setErrorNode(WebTestNodeResult errorNode)
           
 void setSuccess(boolean success)
           
 void setWebTestName(java.lang.String webTestName)
           
 void startTiming()
          Starts the timing for the test
 void stopTiming()
          Stops the timing for the test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTestResult

public WebTestResult(java.lang.String webTestName)
Method Detail

getDuration

public long getDuration()
Returns the amount of milliseconds that the entire test took
Returns:
duration as milliseconds

startTiming

public void startTiming()
Starts the timing for the test

stopTiming

public void stopTiming()
Stops the timing for the test

isSuccess

public boolean isSuccess()
Returns the state of the entire test
Returns:
true if the test was successfull

setSuccess

public void setSuccess(boolean success)

addResult

public void addResult(WebTestNodeResult res)
This method adds a WebTestNodeResult to the list of results for this test.
Parameters:
res - the result of a WebTestNode

getErrorNode

public WebTestNodeResult getErrorNode()

setErrorNode

public void setErrorNode(WebTestNodeResult errorNode)

getWebTestName

public java.lang.String getWebTestName()
Returns:
Returns the webTestName.

setWebTestName

public void setWebTestName(java.lang.String webTestName)
Parameters:
webTestName - The webTestName to set.

getTestResults

public java.util.List getTestResults()
Returns:
 


Copyright © 2004 Andreas Mecky. All Rights Reserved.