def login(self, access_level=None,email=None,password=None,login_form_submit=None):
     
     loginScreen = LoginPage(self, self.browser, self.config)
     print "I am in sso page"
     if access_level:
         self.Dashboard = loginScreen.login_read_write(access_level)
     elif email:
         self.Dashboard = loginScreen.login_dynamic(email,password)
     elif login_form_submit:
         return loginScreen.login_ui()
     else:
         self.Dashboard = loginScreen.login()
     # logger.debug("AthenaGUITestCase: Close Welcome message.")                                     
     # self.Dashboard.close_welcome_message()
     logger.debug("AthenaGUITestCase: Creating panels")                                              
     self.TopPanel = TopPanel(self, self.browser, self.config)
     self.LeftPanel = LeftPanel(self, self.browser, self.config)
    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()
Exemple #3
0
    def login(self,
              access_level=None,
              email=None,
              password=None,
              login_form_submit=None):

        loginScreen = LoginPage(self, self.browser, self.config)
        print "I am in sso page"
        if access_level:
            self.Dashboard = loginScreen.login_read_write(access_level)
        elif email:
            self.Dashboard = loginScreen.login_dynamic(email, password)
        elif login_form_submit:
            return loginScreen.login_ui()
        else:
            self.Dashboard = loginScreen.login()
        # logger.debug("AthenaGUITestCase: Close Welcome message.")
        # self.Dashboard.close_welcome_message()
        logger.debug("AthenaGUITestCase: Creating panels")
        self.TopPanel = TopPanel(self, self.browser, self.config)
        self.LeftPanel = LeftPanel(self, self.browser, self.config)
 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()
Exemple #5
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()