Class AbstractDriverJunit

java.lang.Object
core.uiCore.drivers.AbstractDriverJunit

public class AbstractDriverJunit
extends Object
  • Field Details

    • extent

      public static com.aventstack.extentreports.ExtentReports extent
    • step

      public static ThreadLocal<com.aventstack.extentreports.ExtentTest> step
    • testList

      public static Map<String,​com.aventstack.extentreports.ExtentTest> testList
    • watcher

      public org.junit.rules.TestWatcher watcher
    • retry

      public RetryTest retry
    • globalTimeout

      public org.junit.rules.Timeout globalTimeout
    • testName

      public org.junit.rules.TestName testName
  • Constructor Details

    • AbstractDriverJunit

      public AbstractDriverJunit()
  • Method Details

    • setupWebDriver

      public org.openqa.selenium.WebDriver setupWebDriver​(DriverObject driverObject) throws Exception
      Throws:
      Exception
    • setupWebDriver

      public void setupWebDriver​(String testId, DriverObject driver)
      initialize test based on testId
      Parameters:
      testId -
      driver -
    • setFullScreen

      public static void setFullScreen()
      maximized web page if maximize_browser option is set to true
    • initTest

      public void initTest​(DriverObject driverObject)
      /** initialized testInfo with testId as key runs before test adds current driver info to test object
      Parameters:
      driverObject -
    • setTestId

      public void setTestId()
    • handleTestMethodName

      public void handleTestMethodName()
    • setWebDriver

      public static void setWebDriver​(org.openqa.selenium.WebDriver webDriver)
    • beforeClass

      public static void beforeClass()
      before test run goes here
    • setupReportPage

      public static void setupReportPage()
    • isBeforeTest

      public boolean isBeforeTest()
      returns true if before test has started
      Returns:
    • parseTestName

      public static String parseTestName​(String value)
    • getClassName

      public String getClassName()
    • createDriver

      public static org.openqa.selenium.WebDriver createDriver​(DriverObject driverObject) throws Exception
      Throws:
      Exception
    • getURL

      public void getURL​(String url)
    • getWebDriver

      public static org.openqa.selenium.WebDriver getWebDriver()
    • shutdown

      public void shutdown()