Beispiel #1
0
 def setUpTestClass(self):
     WebDriverTestCase.setUpTestClass(self)
     self.start_browser()
     self.browser.go_to(self.config.global_vars.url)
     loginScreen = LoginSsoPage(self, self.browser, self.config)
     self.Dashboard = loginScreen.login_sso()
     self.Dashboard.close_welcome_message()
     self.TopPanel = TopPanel(self, self.browser, self.config)
     self.LeftPanel = LeftPanel(self, self.browser, self.config)
 def tearDownTestClass(self):
     try:
         if not self.only_close_browser:
             logoutScreen = LogoutPage(self, self.browser, self.config)
             logoutScreen.logout()
         WebDriverTestCase.tearDownTestClass(self)
         self.stop_browser()
     except:
         self.stop_browser()
         raise
Beispiel #3
0
 def tearDownTestClass(self):
     try:
         if not self.only_close_browser:
             logoutScreen = LogoutPage(self, self.browser, self.config)
             logoutScreen.logout()
         WebDriverTestCase.tearDownTestClass(self)
         self.stop_browser()
     except:
         self.stop_browser()
         raise
 def setUpTestClass(self, IAP=False):
     logger.debug("Setting up the current test for Global config vars object")
     self.config.global_vars.set_current_test(self)
     logger.debug("Setting up the current test for config vars object")
     self.config.config_vars.set_current_test(self)
     self.all_config_vars = self.config.global_vars._dict
     for k,v in self.config.config_vars._dict.items():
         self.all_config_vars[k] = v
     logger.debug("AthenaGUITestCase: setUpTestClass")       
     WebDriverTestCase.setUpTestClass(self)
     logger.debug("AthenaGUITestCase: Start Browser")                
     self.start_browser()
     logger.debug("AthenaGUITestCase: Open URL as per Global config.")                       
     if not IAP:
         self.browser.go_to(self.config.global_vars.url)
         logger.debug("AthenaGUITestCase: Login SSO")
         self.login()
Beispiel #5
0
 def setUpTestClass(self, IAP=False):
     logger.debug(
         "Setting up the current test for Global config vars object")
     self.config.global_vars.set_current_test(self)
     logger.debug("Setting up the current test for config vars object")
     self.config.config_vars.set_current_test(self)
     self.all_config_vars = self.config.global_vars._dict
     for k, v in self.config.config_vars._dict.items():
         self.all_config_vars[k] = v
     logger.debug("AthenaGUITestCase: setUpTestClass")
     WebDriverTestCase.setUpTestClass(self)
     logger.debug("AthenaGUITestCase: Start Browser")
     self.start_browser()
     logger.debug("AthenaGUITestCase: Open URL as per Global config.")
     if not IAP:
         self.browser.go_to(self.config.global_vars.url)
         logger.debug("AthenaGUITestCase: Login SSO")
         self.login()