def test_ui_multiaccount(self): driver = self.driver server_url = const.K_URL_1 user = const.K_USER_1 password = const.K_PASSWORD_1 ssl = const.K_SELF_SIGNED_1 actions.doFirstLoginWith(self, server_url, user, password, ssl) actions.assert_is_in_files_view(self) settingsButton = driver.find_element_by_xpath( filesView.settingsButton_xpath) self.assertEqual(settingsButton.get_attribute("name"), filesView.settingsButton_name) settingsButton.click() addNewAccountButton = driver.find_element_by_xpath( settingsView.addNewAccountButton_xpath) self.assertEqual(addNewAccountButton.get_attribute("name"), settingsView.addNewAccountButton_name) addNewAccountButton.click() actions.doLoginWith(self, const.K_URL_2, const.K_USER_2, const.K_PASSWORD_2, const.K_SELF_SIGNED_2) actions.assert_is_in_files_view(self)
def test_ui_login_ok(self): server_url = const.K_URL_1 user = const.K_USER_1 password = const.K_PASSWORD_1 ssl = const.K_SELF_SIGNED_1 actions.doFirstLoginWith(self,server_url,user,password,ssl) actions.assert_is_in_files_view(self)
def test_ui_login_ok(self): server_url = const.K_URL_1 user = const.K_USER_1 password = const.K_PASSWORD_1 ssl = const.K_SELF_SIGNED_1 actions.doFirstLoginWith(self, server_url, user, password, ssl) actions.assert_is_in_files_view(self)
def test_ui_multiaccount(self): driver = self.driver server_url = const.K_URL_1 user = const.K_USER_1 password = const.K_PASSWORD_1 ssl = const.K_SELF_SIGNED_1 actions.doFirstLoginWith(self,server_url,user,password,ssl) actions.assert_is_in_files_view(self) settingsButton = driver.find_element_by_xpath(filesView.settingsButton_xpath); self.assertEqual(settingsButton.get_attribute("name"), filesView.settingsButton_name) settingsButton.click(); addNewAccountButton = driver.find_element_by_xpath(settingsView.addNewAccountButton_xpath) self.assertEqual(addNewAccountButton.get_attribute("name"), settingsView.addNewAccountButton_name) addNewAccountButton.click() actions.doLoginWith(self,const.K_URL_2,const.K_USER_2,const.K_PASSWORD_2,const.K_SELF_SIGNED_2) actions.assert_is_in_files_view(self)