Class AbstractWebTest

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.testng.IHookable, org.testng.ITestNGListener

    public abstract class AbstractWebTest
    extends org.springframework.test.context.testng.AbstractTestNGSpringContextTests
    Created by Claudia Agache on 3/9/2017.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.ThreadLocal<WebBrowser> browserThread  
      protected org.slf4j.Logger LOG  
      • Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

        applicationContext, logger
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractWebTest()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void closeBrowser()  
      void defineBrowser()  
      void endTest​(java.lang.reflect.Method method, org.testng.ITestResult result)  
      static WebBrowser getBrowser()  
      abstract java.lang.String getPageObjectRootPackage()  
      void initializeBeans()  
      void startTest​(java.lang.reflect.Method method)  
      • Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

        run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • browserThread

        protected static final java.lang.ThreadLocal<WebBrowser> browserThread
      • LOG

        protected org.slf4j.Logger LOG
    • Constructor Detail

      • AbstractWebTest

        public AbstractWebTest()
    • Method Detail

      • initializeBeans

        public void initializeBeans()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • defineBrowser

        public void defineBrowser()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • closeBrowser

        public void closeBrowser()
      • startTest

        public void startTest​(java.lang.reflect.Method method)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • endTest

        public void endTest​(java.lang.reflect.Method method,
                            org.testng.ITestResult result)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getBrowser

        public static WebBrowser getBrowser()
      • getPageObjectRootPackage

        public abstract java.lang.String getPageObjectRootPackage()