blob: 9179d3d3474b14ce067569f19de4ca74de5dbbdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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.AfterTest;
import org.testng.annotations.BeforeSuite;
public class BaseTest {
@BeforeSuite
public void setUp() {
LoggerUtils.initialize();
LoggerUtils.step("Navigate to home page.");
WebDriverUtils.goToAddress(JSONParser.parse("config", "browser.url"));
}
@AfterTest
public void tearDown() {
LoggerUtils.info("Quiting the webdriver.");
WebDriverUtils.quit();
}
}
|