public class Test extends java.lang.Object implements ITest, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
boolean |
hasChildNodes
Attribute to denote if the current test has child tests
Default = false When test.appendChild(child) is called, the flag becomes true |
boolean |
hasEnded
Attribute to mark if the test ended safely
It is marked TRUE when extent.endTest(test) is called |
boolean |
isChildNode
Attribute to mark the test as a child node
Top-most test will always have this attribute as false eg: Parent - false Child - true GrandChild - true |
| Constructor and Description |
|---|
Test() |
| Modifier and Type | Method and Description |
|---|---|
com.relevantcodes.extentreports.model.Test.TestAttributeIterator<Author> |
authorIterator()
Returns a TestAttributeIterator instance
|
com.relevantcodes.extentreports.model.Test.TestAttributeIterator<Category> |
categoryIterator()
Returns a TestAttributeIterator instance
|
java.util.List<TestAttribute> |
getAuthorsList() |
java.util.List<TestAttribute> |
getCategoryList() |
java.lang.String |
getDescription() |
java.util.Date |
getEndedTime() |
java.util.List<ExceptionInfo> |
getExceptionList() |
java.util.UUID |
getId() |
java.lang.String |
getInternalWarning() |
int |
getLogColumnSize() |
java.util.HashMap<LogStatus,java.lang.Integer> |
getLogCounts() |
java.util.List<Log> |
getLogList() |
java.lang.String |
getName() |
java.util.List<Test> |
getNodeList() |
Test |
getParentTest() |
java.lang.String |
getRunDuration() |
java.util.List<ScreenCapture> |
getScreenCaptureList() |
java.util.List<Screencast> |
getScreencastList() |
java.util.Date |
getStartedTime() |
LogStatus |
getStatus() |
void |
hasChildNodes(boolean val) |
com.relevantcodes.extentreports.model.Test.LogIterator |
logIterator()
Returns a LogIterator instance
|
void |
prepareFinalize() |
void |
setAuthor(TestAttribute author) |
void |
setCategory(TestAttribute category) |
void |
setDescription(java.lang.String description) |
void |
setEndedTime(java.util.Date endedTime) |
void |
setException(ExceptionInfo exceptionInfo) |
void |
setInternalWarning(java.lang.String warning) |
void |
setLog(java.util.List<Log> logList) |
void |
setLog(Log log) |
void |
setName(java.lang.String name) |
void |
setNode(Test node) |
void |
setNodeList(java.util.List<Test> nodeList) |
void |
setParentTest(Test test) |
void |
setScreenCapture(ScreenCapture screenCapture) |
void |
setScreenCaptureList(java.util.List<ScreenCapture> screenCaptureList) |
void |
setScreencast(Screencast screencast) |
void |
setScreencastList(java.util.List<Screencast> screencastList) |
void |
setStartedTime(java.util.Date startedTime) |
void |
setStatus(LogStatus status)
Set the status of the test
|
void |
setUUID(java.util.UUID id) |
void |
trackLastRunStatus() |
public boolean isChildNode
public boolean hasEnded
public boolean hasChildNodes
public com.relevantcodes.extentreports.model.Test.LogIterator logIterator()
LogIteratorpublic com.relevantcodes.extentreports.model.Test.TestAttributeIterator<Author> authorIterator()
TestAttributeIteratorpublic com.relevantcodes.extentreports.model.Test.TestAttributeIterator<Category> categoryIterator()
TestAttributeIteratorpublic java.util.HashMap<LogStatus,java.lang.Integer> getLogCounts()
public void setStartedTime(java.util.Date startedTime)
setStartedTime in interface ITestpublic java.util.Date getStartedTime()
getStartedTime in interface ITestpublic java.lang.String getRunDuration()
getRunDuration in interface ITestpublic void setEndedTime(java.util.Date endedTime)
setEndedTime in interface ITestpublic java.util.Date getEndedTime()
getEndedTime in interface ITestpublic void setStatus(LogStatus status)
public void setDescription(java.lang.String description)
setDescription in interface ITestpublic java.lang.String getDescription()
getDescription in interface ITestpublic void setInternalWarning(java.lang.String warning)
public java.lang.String getInternalWarning()
public void setCategory(TestAttribute category)
setCategory in interface ITestpublic java.util.List<TestAttribute> getCategoryList()
getCategoryList in interface ITestpublic void setAuthor(TestAttribute author)
public java.util.List<TestAttribute> getAuthorsList()
getAuthorsList in interface ITestpublic void setException(ExceptionInfo exceptionInfo)
setException in interface ITestpublic java.util.List<ExceptionInfo> getExceptionList()
public void setLog(Log log)
public java.util.List<Log> getLogList()
getLogList in interface ITestpublic int getLogColumnSize()
public void setScreenCaptureList(java.util.List<ScreenCapture> screenCaptureList)
public void setScreenCapture(ScreenCapture screenCapture)
public java.util.List<ScreenCapture> getScreenCaptureList()
public void setScreencastList(java.util.List<Screencast> screencastList)
public void setScreencast(Screencast screencast)
public java.util.List<Screencast> getScreencastList()
public void hasChildNodes(boolean val)
hasChildNodes in interface ITestpublic void setNodeList(java.util.List<Test> nodeList)
setNodeList in interface ITestpublic void setNode(Test node)
public java.util.List<Test> getNodeList()
getNodeList in interface ITestpublic void setParentTest(Test test)
public Test getParentTest()
public void prepareFinalize()
public void trackLastRunStatus()
Copyright © 2016. All Rights Reserved.