Class TestSeleniumAbstracto
- java.lang.Object
-
- org.springframework.test.context.testng.AbstractTestNGSpringContextTests
-
- io.github.commonslibs.selenium_lib.suite.TestSeleniumAbstracto
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.testng.IHookable,org.testng.ITestNGListener
public abstract class TestSeleniumAbstracto extends org.springframework.test.context.testng.AbstractTestNGSpringContextTestsAñade por defecto listeners
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebDriverdriverInstacia de webdriver usado en el caso de pruebaprotected WebDriverFactory.Navegadornavegador
-
Constructor Summary
Constructors Constructor Description TestSeleniumAbstracto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTest()voidbeforeTest()Metodo que se ejecuta antes de los test.-
Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
-
-
-
-
Field Detail
-
driver
protected org.openqa.selenium.WebDriver driver
Instacia de webdriver usado en el caso de prueba
-
navegador
protected WebDriverFactory.Navegador navegador
-
-
Method Detail
-
beforeTest
@BeforeTest public void beforeTest() throws PruebaAceptacionExcepcionMetodo que se ejecuta antes de los test.- Throws:
PruebaAceptacionExcepcion- si se produce un error en las operaciones Pretest
-
afterTest
@AfterTest public void afterTest() throws PruebaAceptacionExcepcion- Throws:
PruebaAceptacionExcepcion
-
-