I have 10+ test cases at the moment and planning on creating several more. That being said is there a way that I can modify the URL variable once and that would change the variable in all my other scripts? I have this in all my of test scripts:
class TestCase1(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.implicitly_wait(30)
self.base_url = "http://URL"
self.verificationErrors = []
self.accept_next_alert = True
I want to be able to be able to modify self.base_url = http://URL. But I don't want to have to do that 10+ times.