def test_n_team_admin_add_sprint_1(self):
        driver = self.driver
        sprint = TeamAdminPage(driver)
        login = Loginpage(driver)
        time.sleep(2)
        login.enter_email(self.team_1_team_admin_email)
        login.enter_password(self.common_password)
        login.click_login()
        time.sleep(2)
        matchh = LeaguePage(driver)
        time.sleep(1)
        sprint.click_sprint_tab()
        time.sleep(1)
        matchh.click_add_new_button()
        time.sleep(1)
        sprint.enter_sprint_number(self.sprint_number)
        sprint.click_match_1_checkbox()
        sprint.click_match_2_checkbox()
        sprint.enter_sprint_start_date(self.match_1_date)
        sprint.enter_sprint_end_date(self.match_2_date)
        time.sleep(1)
        sprint.click_save_sprint()
# Logout
        time.sleep(5)
        login.click_profile_icon()
        login.click_profile_icon()
        time.sleep(2)
        login.click_logout()
        time.sleep(2)
        driver.delete_all_cookies()
        driver.refresh()
        time.sleep(2)
Exemple #2
0
 def test_2_edit_sprint_1(self):
     driver = self.driver
     sprint = TeamAdminPage(driver)
     matchh = LeaguePage(driver)
     time.sleep(1)
     sprint.click_sprint_tab()
     time.sleep(1)
     sprint.click_edit_sprint()
     time.sleep(1)
     sprint.select_sprint_status(self.status_closed)
     time.sleep(1)
     matchh.click_add_submit_button()
     time.sleep(2)
Exemple #3
0
    def test_b_add_Team_2_and_admin_league_admin(self):
        driver = self.driver

        Team = TeamPage(driver)
        Team1 = LeaguePage(driver)
        Team11 = UserPage(driver)
        Team.click_team_tab()
        time.sleep(2)
        Team1.click_add_new_button()
        time.sleep(1)
        driver.refresh()
        time.sleep(2)
        Team11.select_league(self.league_name)
        Team.enter_team_name(self.Team_2_name)
        Team.enter_team_location(self.Team_2_location)
        Team.select_founded_year(self.founded_year_index)
        Team.enter_sub_domain(self.sub_domain_2)
        Team.click_add_new_team_admin_checkbox()
        time.sleep(2)
        Team.enter_new_team_admin_first_name(self.team_2_team_admin_first_name)
        Team.enter_new_team_admin_last_name(self.team_2_team_admin_last_name)
        Team.enter_new_team_admin_email_xpath(self.team_2_team_admin_email)
        Team.enter_new_team_admin_user_name(self.team_2_team_admin_user_name)
        Team.click_add_new_league_admin_checkbox()
        time.sleep(2)
        Team.enter_new_league_admin_first_name(
            self.team_2_league_admin_first_name)
        Team.enter_new_league_admin_last_name(
            self.team_2_league_admin_last_name)
        Team.enter_new_league_admin_email_xpath(self.team_2_league_admin_email)
        Team.enter_new_league_admin_user_name(
            self.team_2_league_admin_user_name)
        Team1.click_add_submit_button()
        time.sleep(2)
    def test_m_league_admin_add_match_2(self):
        driver = self.driver
        match = LeagueAdminPage(driver)
        matchh = LeaguePage(driver)
        login = Loginpage(driver)
        time.sleep(2)
        self.driver.get(self.GameURL)
        #match.click_game_tab()
        time.sleep(2)
        matchh.click_add_new_button()
        time.sleep(2)
        match.select_match_opponent(self.opponent2)
        match.enter_match_location(self.match_location)
        match.enter_date_location(self.match_2_date)
        match.enter_time_location(self.match_time)
        matchh.click_add_submit_button()
# Logout
        time.sleep(5)
        login.click_profile_icon()
        login.click_profile_icon()
        time.sleep(2)
        login.click_logout()
        time.sleep(2)
        driver.delete_all_cookies()
        driver.refresh()
        time.sleep(2)
Exemple #5
0
 def test_1_add_match_2(self):
     driver = self.driver
     match = LeagueAdminPage(driver)
     matchh = LeaguePage(driver)
     time.sleep(2)
     self.driver.get(self.GameURL)
     #        match.click_game_tab()
     time.sleep(2)
     matchh.click_add_new_button()
     time.sleep(2)
     match.select_match_opponent(self.opponent2)
     match.enter_match_location(self.match_location)
     match.enter_date_location(self.match_2_date)
     match.enter_time_location(self.match_time)
     matchh.click_add_submit_button()
     time.sleep(2)
 def test_h_add_scout_and_select_team_1(self):
     driver = self.driver
     Coach1 = LeaguePage(driver)
     Coach = UserPage(driver)
     Coach.click_user_tab()
     time.sleep(2)
     Coach1.click_add_new_button()
     time.sleep(2)
     Coach.enter_user_first_name(self.Team_1_scout_first_name)
     Coach.enter_user_last_name(self.Team_1_scout_last_name)
     Coach.enter_user_email_xpath(self.Team_1_scout_email)
     Coach.enter_user_username(self.Team_1_scout_user_name)
     Coach.select_user_type(self.user_types_scout)
     time.sleep(4)
     Coach.select_team(self.Team_1_name)
     time.sleep(2)
     Coach1.click_add_submit_button()
     time.sleep(2)
    def test_e_add_analyst_1_and_select_team_1(self):
        driver = self.driver

        Analyst1 = LeaguePage(driver)
        Analyst = UserPage(driver)
        Analyst.click_user_tab()
        time.sleep(2)
        Analyst1.click_add_new_button()
        time.sleep(2)
        Analyst.enter_user_first_name(self.Team_1_analyst_first_name)
        Analyst.enter_user_last_name(self.Team_1_analyst_last_name)
        Analyst.enter_user_email_xpath(self.Team_1_analyst_email)
        Analyst.enter_user_username(self.Team_1_analyst_user_name)
        Analyst.select_user_type(self.user_types_analyst)
        time.sleep(4)
        Analyst.select_team(self.Team_1_name)
        time.sleep(2)
        Analyst1.click_add_submit_button()
        time.sleep(2)
Exemple #8
0
    def test_g_add_player_3_and_select_team_1(self):
        driver = self.driver

        Player3 = LeaguePage(driver)
        player = UserPage(driver)
        player.click_user_tab()
        time.sleep(2)
        Player3.click_add_new_button()
        time.sleep(2)
        player.enter_user_first_name(self.Team_1_player_3_first_name)
        player.enter_user_last_name(self.Team_1_player_3_last_name)
        player.enter_user_email_xpath(self.Team_1_player_3_email)
        player.enter_user_username(self.Team_1_player_3_user_name)
        player.select_user_type(self.user_types_player)
        time.sleep(4)
        player.select_team(self.Team_1_name)
        time.sleep(2)
        Player3.click_add_submit_button()
        time.sleep(2)
 def test_l_league_admin_add_match_1(self):
     driver = self.driver
     match = LeagueAdminPage(driver)
     matchh = LeaguePage(driver)
     login = Loginpage(self.driver)
     login.enter_email(self.team_1_league_admin_email)
     login.enter_password(self.common_password)
     login.click_login()
     time.sleep(2)
     self.driver.get(self.GameURL)
     #match.click_game_tab()
     time.sleep(2)
     matchh.click_add_new_button()
     time.sleep(2)
     match.select_match_opponent(self.opponent1)
     match.enter_match_location(self.match_location)
     match.enter_date_location(self.match_1_date)
     match.enter_time_location(self.match_time)
     matchh.click_add_submit_button()
     time.sleep(2)
 def test_5_print_league_number_of_games(self):
     driver = self.driver
     League = LeaguePage(driver)
     League.click_league_tab()
     time.sleep(2)
     League.print_number_of_games()
 def test_4_print_league_team_number(self):
     driver = self.driver
     League = LeaguePage(driver)
     League.click_league_tab()
     time.sleep(2)
     League.print_league_team_number()
 def test_3_print_league_admin_names(self):
     driver = self.driver
     League = LeaguePage(driver)
     League.click_league_tab()
     time.sleep(2)
     League.print_league_admin_names()
    def test_1_add_league(self):
        driver = self.driver

        League = LeaguePage(driver)
        League.click_league_tab()
        time.sleep(2)
        League.click_add_new_button()
        League.enter_league_name(self.league_name)
        League.enter_league_location(self.league_location)
        League.click_add_submit_button()
        time.sleep(2)
    def test_t_sprint_close_and_give_actual(self):
        driver = self.driver
        sprint = TeamAdminPage(driver)
        matchh = LeaguePage(driver)
        card = AnalystPage(driver)
        cardd = TeamAdminPage(driver)
        login = Loginpage(self.driver)
        login.enter_email(self.team_1_team_admin_email)
        login.enter_password(self.common_password)
        login.click_login()
        time.sleep(2)
#sprint
        sprint.click_sprint_tab()
        time.sleep(1)
        sprint.click_edit_sprint()
        time.sleep(1)
        sprint.select_sprint_status(self.status_closed)
        time.sleep(1)
        matchh.click_add_submit_button()
        time.sleep(2)
#card
        self.driver.get(self.agilityURL)
        #card.click_card_tab()
        time.sleep(1)

#match 1
        cardd.select_card_match(self.select_match_1)
        time.sleep(1)
        cardd.enter_coach_actual_input_1(self.actual_score)
        cardd.enter_coach_actual_input_2(self.actual_score)
        cardd.enter_coach_actual_input_3(self.actual_score)
        cardd.enter_coach_actual_input_4(self.actual_score)
        cardd.click_actual_edit_save_1()
        time.sleep(2)
        cardd.enter_player_1_actual_input_1(self.actual_score)
        cardd.enter_player_1_actual_input_2(self.actual_score)
        cardd.enter_player_1_actual_input_3(self.actual_score)
        cardd.enter_player_1_actual_input_4(self.actual_score)
        cardd.click_actual_edit_save_2()
        time.sleep(2)
        cardd.enter_player_2_actual_input_1(self.actual_score)
        cardd.enter_player_2_actual_input_2(self.actual_score)
        cardd.enter_player_2_actual_input_3(self.actual_score)
        cardd.enter_player_2_actual_input_4(self.actual_score)
        cardd.click_actual_edit_save_3()
        time.sleep(2)
        cardd.enter_player_3_actual_input_1(self.actual_score)
        cardd.enter_player_3_actual_input_2(self.actual_score)
        cardd.enter_player_3_actual_input_3(self.actual_score)
        cardd.enter_player_3_actual_input_4(self.actual_score)
        cardd.click_actual_edit_save_4()

# match 2
        cardd.select_card_match(self.select_match_2)
        time.sleep(1)
        cardd.enter_coach_actual_input_1(self.actual_score)
        cardd.enter_coach_actual_input_2(self.actual_score)
        cardd.enter_coach_actual_input_3(self.actual_score)
        cardd.enter_coach_actual_input_4(self.actual_score)
        cardd.click_actual_edit_save_1()
        time.sleep(2)
        cardd.enter_player_1_actual_input_1(self.actual_score)
        cardd.enter_player_1_actual_input_2(self.actual_score)
        cardd.enter_player_1_actual_input_3(self.actual_score)
        cardd.enter_player_1_actual_input_4(self.actual_score)
        cardd.click_actual_edit_save_2()
        time.sleep(2)
        cardd.enter_player_2_actual_input_1(self.actual_score)
        cardd.enter_player_2_actual_input_2(self.actual_score)
        cardd.enter_player_2_actual_input_3(self.actual_score)
        cardd.enter_player_2_actual_input_4(self.actual_score)
        cardd.click_actual_edit_save_3()
        time.sleep(2)
        cardd.enter_player_3_actual_input_1(self.actual_score)
        cardd.enter_player_3_actual_input_2(self.actual_score)
        cardd.enter_player_3_actual_input_3(self.actual_score)
        cardd.enter_player_3_actual_input_4(self.actual_score)
        cardd.click_actual_edit_save_4()

# Logout
        time.sleep(5)
        login.click_profile_icon()
        login.click_profile_icon()
        time.sleep(2)
        login.click_logout()
        time.sleep(2)
        driver.delete_all_cookies()
        driver.refresh()
        time.sleep(2)
    def test_i_add_player_1_2_3_and_select_team_1(self):
        driver = self.driver
        Player1 = LeaguePage(driver)
        login = Loginpage(self.driver)
        player = UserPage(driver)
        player.click_user_tab()
        time.sleep(2)
        Player1.click_add_new_button()
        time.sleep(2)
        player.enter_user_first_name(self.Team_1_player_1_first_name)
        player.enter_user_last_name(self.Team_1_player_1_last_name)
        player.enter_user_email_xpath(self.Team_1_player_1_email)
        player.enter_user_username(self.Team_1_player_1_user_name)
        player.select_user_type(self.user_types_player)
        time.sleep(4)
        player.select_team(self.Team_1_name)
        time.sleep(2)
        Player1.click_add_submit_button()
        time.sleep(2)

        Player1.click_add_new_button()
        time.sleep(2)
        player.enter_user_first_name(self.Team_1_player_2_first_name)
        player.enter_user_last_name(self.Team_1_player_2_last_name)
        player.enter_user_email_xpath(self.Team_1_player_2_email)
        player.enter_user_username(self.Team_1_player_2_user_name)
        player.select_user_type(self.user_types_player)
        time.sleep(4)
        player.select_team(self.Team_1_name)
        time.sleep(2)
        Player1.click_add_submit_button()
        time.sleep(2)

        Player1.click_add_new_button()
        time.sleep(2)
        player.enter_user_first_name(self.Team_1_player_3_first_name)
        player.enter_user_last_name(self.Team_1_player_3_last_name)
        player.enter_user_email_xpath(self.Team_1_player_3_email)
        player.enter_user_username(self.Team_1_player_3_user_name)
        player.select_user_type(self.user_types_player)
        time.sleep(4)
        player.select_team(self.Team_1_name)
        time.sleep(2)
        Player1.click_add_submit_button()
        time.sleep(2)


# Logout
        time.sleep(5)
        login.click_profile_icon()
        login.click_profile_icon()
        time.sleep(1)
        login.click_logout()
        time.sleep(2)
        driver.delete_all_cookies()
        driver.refresh()
        time.sleep(2)