public class AbstractDriverJunit extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.aventstack.extentreports.ExtentReports |
extent |
org.junit.rules.Timeout |
globalTimeout |
RetryTest |
retry |
static ThreadLocal<com.aventstack.extentreports.ExtentTest> |
step |
static Map<String,com.aventstack.extentreports.ExtentTest> |
testList |
org.junit.rules.TestName |
testName |
org.junit.rules.TestWatcher |
watcher |
| Constructor and Description |
|---|
AbstractDriverJunit() |
| Modifier and Type | Method and Description |
|---|---|
static void |
beforeClass()
before test run goes here
|
static org.openqa.selenium.WebDriver |
createDriver(DriverObject driverObject) |
String |
getClassName() |
void |
getURL(String url) |
static org.openqa.selenium.WebDriver |
getWebDriver() |
void |
handleTestMethodName() |
void |
initTest(DriverObject driverObject)
/** initialized testInfo with testId as key runs before test adds current
driver info to test object
|
boolean |
isBeforeTest()
returns true if before test has started
|
static String |
parseTestName(String value) |
static void |
setFullScreen()
maximized web page if maximize_browser option is set to true
|
void |
setTestId() |
static void |
setupReportPage() |
org.openqa.selenium.WebDriver |
setupWebDriver(DriverObject driverObject) |
void |
setupWebDriver(String testId,
DriverObject driver)
initialize test based on testId
|
static void |
setWebDriver(org.openqa.selenium.WebDriver webDriver) |
void |
shutdown() |
void |
takeAppcenterScreenshot(String label) |
public static com.aventstack.extentreports.ExtentReports extent
public static ThreadLocal<com.aventstack.extentreports.ExtentTest> step
public org.junit.rules.TestWatcher watcher
public RetryTest retry
public org.junit.rules.Timeout globalTimeout
public org.junit.rules.TestName testName
public org.openqa.selenium.WebDriver setupWebDriver(DriverObject driverObject) throws Exception
Exceptionpublic void setupWebDriver(String testId, DriverObject driver)
testId - driver - public static void setFullScreen()
public void initTest(DriverObject driverObject)
driverObject - public void setTestId()
public void handleTestMethodName()
public static void setWebDriver(org.openqa.selenium.WebDriver webDriver)
public static void beforeClass()
public static void setupReportPage()
public boolean isBeforeTest()
public String getClassName()
public static org.openqa.selenium.WebDriver createDriver(DriverObject driverObject) throws Exception
Exceptionpublic void getURL(String url)
public static org.openqa.selenium.WebDriver getWebDriver()
public void shutdown()
public void takeAppcenterScreenshot(String label)
Copyright © 2021. All rights reserved.