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.AbstractTestNGSpringContextTests
Añade por defecto listeners
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected org.openqa.selenium.WebDriverInstacia de webdriver usado en el caso de pruebaprotected WebDriverFactory.NavegadorFields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbeforeTest(org.testng.ITestContext context) 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 Details
-
driver
protected org.openqa.selenium.WebDriver driverInstacia de webdriver usado en el caso de prueba -
codigoTest
-
-
Constructor Details
-
TestSeleniumAbstracto
public TestSeleniumAbstracto()
-
-
Method Details
-
beforeTest
@BeforeTest public void beforeTest(org.testng.ITestContext context) throws PruebaAceptacionExcepcion Metodo que se ejecuta antes de los test.- Throws:
PruebaAceptacionExcepcion- si se produce un error en las operaciones Pretest
-
afterTest
- Throws:
PruebaAceptacionExcepcion
-