Package com.privalia.qa.utils
Class BaseGTest
- java.lang.Object
-
- io.cucumber.testng.AbstractTestNGCucumberTests
-
- com.privalia.qa.utils.BaseGTest
-
public abstract class BaseGTest extends io.cucumber.testng.AbstractTestNGCucumberTests
This is a custom implementation ofAbstractTestNGCucumberTests
for adding special configuration of GingerSpec to theCucumberOptions
annotation of the class Test classes must extend this class in order to be executed with TestNG and use the Gingerspec steps and other functionality- Author:
- Jose Fernandez
-
-
Constructor Summary
Constructors Constructor Description BaseGTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterGClass()
Method executed before a class.void
afterGMethod(Method method)
Method executed before method.void
afterGSuite(org.testng.ITestContext context)
Method executed after a suite.void
beforeGClass(org.testng.ITestContext context)
Method executed before a test class.void
beforeGMethod(Method method)
Method executed after a test method.void
beforeGSuite(org.testng.ITestContext context)
void
setUpClass()
Overrides the parent methodAbstractTestNGCucumberTests.setUpClass()
and executes custom code before the object is created
-
-
-
Method Detail
-
beforeGSuite
@BeforeSuite(alwaysRun=true) public void beforeGSuite(org.testng.ITestContext context)
-
afterGSuite
@AfterSuite(alwaysRun=true) public void afterGSuite(org.testng.ITestContext context)
Method executed after a suite.- Parameters:
context
- the context
-
setUpClass
@BeforeClass(alwaysRun=true) public void setUpClass()
Overrides the parent methodAbstractTestNGCucumberTests.setUpClass()
and executes custom code before the object is created- Overrides:
setUpClass
in classio.cucumber.testng.AbstractTestNGCucumberTests
-
beforeGClass
@BeforeClass(alwaysRun=true) public void beforeGClass(org.testng.ITestContext context)
Method executed before a test class.- Parameters:
context
- the context
-
beforeGMethod
@BeforeMethod(alwaysRun=true) public void beforeGMethod(Method method)
Method executed after a test method.- Parameters:
method
- the method
-
afterGMethod
@AfterMethod(alwaysRun=true) public void afterGMethod(Method method)
Method executed before method.- Parameters:
method
- the method
-
afterGClass
@AfterClass public void afterGClass()
Method executed before a class.
-
-