def submit_pp_sales_values(self, validation_type, internet_sales, total_sales): global pp_internet_sales, pp_total_sales pp_internet_sales = Utilities.convert_blank_data_value(internet_sales) pp_total_sales = Utilities.convert_blank_data_value(total_sales) self.set_internet_sales_value(validation_type, pp_internet_sales) self.set_total_turnover_sales_value(validation_type, pp_total_sales) CheckValuesContributorDetails().save_the_application() SeleniumCore.close_the_current_window()
def submit_pp_sales_values(self, period, period_start_date, internet_sales, total_sales): global pp_internet_sales, pp_total_sales pp_internet_sales = Utilities.convert_blank_data_value(internet_sales) pp_total_sales = Utilities.convert_blank_data_value(total_sales) SubmitContributorDetails().submit_default_period_dates( period, period_start_date) self.set_internet_sales_value(pp_internet_sales) self.set_total_turnover_sales_value(pp_total_sales) CheckValuesContributorDetails().save_the_application() SeleniumCore.close_the_current_window()
def after_scenario(context, scenario): # take screenshot if test failed Utilities.take_screen_shot(scenario) SeleniumCore.close_the_current_window() LoginPage().logout()
def validate_the_previous_period_details(self, questions_and_values): SubmitContributorDetails().submit_values_for_survey_questions(questions_and_values) CheckValuesContributorDetails().save_the_application() SeleniumCore.close_the_current_window()