package com.mavlushechka.a1qa; import com.mavlushechka.a1qa.driverUtils.WebDriverUtils; import com.mavlushechka.a1qa.utils.JSONParser; import com.mavlushechka.a1qa.utils.LoggerUtils; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; public class BaseTest { @BeforeMethod public void setUp() { LoggerUtils.initialize(); LoggerUtils.step("Navigate to home page."); WebDriverUtils.goToAddress(JSONParser.parse("config", "browser.url")); } @AfterMethod public void tearDown() { LoggerUtils.info("Quiting the webdriver."); WebDriverUtils.quit(); } }