package sv.pft.addressbook.tests;

import org.openqa.selenium.remote.BrowserType;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import sv.pft.addressbook.appmanager.ApplicationManager;

public class TestBase {

    protected final ApplicationManager app = new ApplicationManager(BrowserType.FIREFOX);

    @BeforeMethod
    public void setUp() throws Exception {
        app.init();
    }

    @AfterMethod
    public void tearDown() {
        app.stop();
    }
}

@@ -148,28 +148,113 @@
 tations.
-BeforeMethod
+AfterSuite;%0Aimport org.testng.annotations.BeforeMethod;%0Aimport org.testng.annotations.BeforeSuite
 ;%0Aimport
@@ -344,16 +344,23 @@
 otected 
+static 
 final Ap
@@ -439,22 +439,21 @@
  @Before
-Method
+Suite
 %0A    pub
@@ -525,22 +525,21 @@
   @After
-Method
+Suite
 %0A    pub

add run all tests in one browser instance