public class Test extends Object implements ITest, 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() |
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 void setStartedTime(Date startedTime)
setStartedTime in interface ITestpublic Date getStartedTime()
getStartedTime in interface ITestpublic String getRunDuration()
getRunDuration in interface ITestpublic void setEndedTime(Date endedTime)
setEndedTime in interface ITestpublic Date getEndedTime()
getEndedTime in interface ITestpublic void setStatus(LogStatus status)
public void setDescription(String description)
setDescription in interface ITestpublic String getDescription()
getDescription in interface ITestpublic void setInternalWarning(String warning)
public String getInternalWarning()
public void setCategory(TestAttribute category)
setCategory in interface ITestpublic List<TestAttribute> getCategoryList()
getCategoryList in interface ITestpublic void setAuthor(TestAttribute author)
public List<TestAttribute> getAuthorsList()
getAuthorsList in interface ITestpublic void setException(ExceptionInfo exceptionInfo)
setException in interface ITestpublic List<ExceptionInfo> getExceptionList()
public void setLog(Log log)
public List<Log> getLogList()
getLogList in interface ITestpublic int getLogColumnSize()
public void setScreenCaptureList(List<ScreenCapture> screenCaptureList)
public void setScreenCapture(ScreenCapture screenCapture)
public List<ScreenCapture> getScreenCaptureList()
public void setScreencastList(List<Screencast> screencastList)
public void setScreencast(Screencast screencast)
public List<Screencast> getScreencastList()
public void hasChildNodes(boolean val)
hasChildNodes in interface ITestpublic void setNodeList(List<Test> nodeList)
setNodeList in interface ITestpublic void setNode(Test node)
public 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.