class BaseTest(TestCase):

    def setUp(self):
        global driver

        test_Settings = DriverInitialize().getTestJsonFileSettings()
        base_URL = DriverInitialize().getJsonFileAttributeValue(test_Settings, "instance")
        browserType = DriverInitialize().getJsonFileAttributeValue(test_Settings, "browser")
        resolution = DriverInitialize().getJsonFileAttributeValue(test_Settings, "resolution").split(',')

        self.driver = DriverInitialize().initialize(browserType)
        self.driver.set_window_size(resolution[0], resolution[1])
        self.driver.maximize_window()
        self.driver.get(base_URL)

    def tearDown(self):
        self.driver.quit()
 def driver(self):
     return DriverInitialize().getDriver()