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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebTestResult
public WebTestResult(java.lang.String webTestName)
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.