Esempio n. 1
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 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 tearDown(self):
        if self.LeftPanel.save_pop_up:
            self.LeftPanel.save_pop_up.click()
            import time
            time.sleep(15)
        self.LeftPanel.configuration.click()
        logoutScreen = LogoutPage(self, self.browser, self.config)
        logoutScreen.logout()        
#         import time 
#         time.sleep(10)
#         self.stop_browser()
#         time.sleep(10)
#         self.start_browser()
#         logger.debug("AthenaGUITestCase: Open URL as per Global config.")                        
#         self.browser.go_to(self.config.global_vars.url)
        logger.debug("AthenaGUITestCase: Login")                                
        loginScreen = LoginPage(self, self.browser, self.config)    
        self.Dashboard = loginScreen.login_sso()
        #logger.debug("ConfigurationTest: Go To Configuration.")
        #self.LeftPanel.go_to_network_page()
#         logger.debug("ConfigurationTest: Go To Network.")
#         self.NetworkPage = all_group_page.go_to_networks()
 def logout(self):
     logoutScreen = LogoutPage(self, self.browser, self.config)
     logoutScreen.logout()
 def logout_and_login_back(self):
     logoutScreen = LogoutPage(self, self.browser, self.config)
     logoutScreen.logout()
     logger.debug("AthenaGUITestCase: Login SSO")
     loginScreen = LoginPage(self, self.browser, self.config)    
     self.Dashboard = loginScreen.login()
Esempio n. 6
0
 def logout(self):
     logoutScreen = LogoutPage(self, self.browser, self.config)
     logoutScreen.logout()
Esempio n. 7
0
 def logout_and_login_back(self):
     logoutScreen = LogoutPage(self, self.browser, self.config)
     logoutScreen.logout()
     logger.debug("AthenaGUITestCase: Login SSO")
     loginScreen = LoginPage(self, self.browser, self.config)
     self.Dashboard = loginScreen.login()
Esempio n. 8
0
 def _logoutSso(self):
     logoutScreen = LogoutPage(self, self.browser, self.config)
     logoutScreen.logout()
     import time
     time.sleep(10)
     self.stop_browser()