public class ExtentTest extends Object
| Constructor and Description |
|---|
ExtentTest(String testName,
String description)
Builds a test toggle in the report with the TestName
|
| Modifier and Type | Method and Description |
|---|---|
String |
addScreenCapture(String imgPath)
Allows for adding a snapshot to the log event
|
String |
addScreencast(String screencastPath)
Allows for adding a screen cast to the log event
|
ExtentTest |
appendChild(ExtentTest node)
Appends a child test to the current test
|
ExtentTest |
assignCategory(String... category)
Assigns category to test
|
LogStatus |
getRunStatus()
Provides the current run status of the test
|
Test |
getTest()
Returns the underlying test
|
void |
log(LogStatus logStatus,
String details)
Logs events for the test
|
void |
log(LogStatus logStatus,
String stepName,
String details)
Logs events for the test
|
public void log(LogStatus logStatus, String stepName, String details)
logStatus - Status (see LogStatus)stepName - Name of the stepdetails - Details of the steppublic void log(LogStatus logStatus, String details)
logStatus - Status (see LogStatus)details - Details of the steppublic String addScreenCapture(String imgPath)
imgPath - Path of the imagepublic String addScreencast(String screencastPath)
screencastPath - Path of the screencastpublic ExtentTest assignCategory(String... category)
Usage: test.assignCategory("ExtentAPI", "Regression");
category - Category nameExtentTestpublic ExtentTest appendChild(ExtentTest node)
node - ExtentTestExtentTestpublic LogStatus getRunStatus()
LogStatusCopyright © 2015. All rights reserved.