class CRPOEventOwners: def __init__(self, driver, index): self.driver = driver self.action = Actions(self.driver) self.multi_value = MultiSelectValues(self.driver) self.owners = EventOwnersConfigPage(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_excel'], index=index) xl = status_excel.excel_dict self.xl_owners_message = xl['owners_update_message'][0] self.event_owners_collection = [] def crpo_event_owners_tagging(self): self.event_owners_collection = [] __list = [ self.action.event_actions_click(), self.action.manage_event_owners(), self.multi_value.move_all_items(), self.owners.event_owners_update(), # self.owners.event_owners_notifier(self.xl_owners_message), # self.owners.event_owners_notifier_dismiss() ] for func in __list: if func: self.event_owners_collection.append(func) else: self.event_owners_collection.append(func)
class CRPOEventCreation: def __init__(self, driver, index, version): now = datetime.now() self.__test_from_date = now.strftime("%d/%m/%Y") self.__test_to_date = now.strftime("%d/%m/%Y") self.driver = driver self.menu = Menu(self.driver) self.event = EventCreationPage.EventCreation(self.driver) self.multi_value = MultiSelectValues(self.driver) self.getby = EventGetByNamePage.EventGetByName(self.driver) self.event_action = EventActionsPage.Actions(self.driver) self.applicant_grid = EventApplicantPage.EventApplicant(self.driver) self.window_switch = SwitchWindow.SwitchWindowClose(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_excel'], index=index) xl = status_excel.excel_dict self.xl_menu_name = xl['menu'][0] self.xl_tab_title = xl['tab_title'][0] self.xl_event_name = xl['name'][0].format(version) self.xl_slot = xl['slot'][0] self.xl_em = xl['event_manager'][0] self.xl_college = xl['college'][0] self.xl_create_message = xl['message'][0] self.event_create_collection = [] def crpo_event_creation(self): self.event_create_collection = [] __list = [ self.menu.event_tab(self.xl_menu_name, self.xl_tab_title), self.event.new_event_button(), self.event.event_name_field(self.xl_event_name), self.event.event_req_field(self.xl_event_name), self.event.event_job_field(), self.multi_value.search(self.xl_event_name), self.multi_value.move_all_items(), self.multi_value.done(), self.event.event_slot_field(self.xl_slot), self.event.event_from_date(self.__test_from_date), self.event.event_to_date(self.__test_to_date), self.event.event_report_date(self.__test_from_date), self.event.event_manager_field(self.xl_em), self.event.event_college_field(self.xl_college), self.event.event_ec_enable(), self.event.event_create_button(), self.event.event_create_notifier(self.xl_create_message), self.event.event_create_notifier_dismiss() ] for func in __list: if func: self.event_create_collection.append(func) else: self.event_create_collection.append(func)
class EventApplicant: def __init__(self, driver, index, version): self.driver = driver self.applicant_grid = EventApplicantPage.EventApplicant(self.driver) self.candidate_details = CandidateDetailsPage.CandidateDetailsPage( self.driver) self.status_change = ChangeStatus(self.driver) self.window_switch = SwitchWindow.SwitchWindowClose(self.driver) self.multi_select = MultiSelectValues(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_status_change'], index=index) xl = status_excel.excel_dict self.xl_event_name = xl['event_name'][0].format(version) self.xl_stage = xl['live_stage'][0] self.xl_status = xl['schedule'][0] self.xl_comment = xl['new_comment'][0] self.xl_message = xl['live_message'][0] self.applicant_status_collection = [] def event_change_applicant_status(self): self.applicant_status_collection = [] __list = [ self.applicant_grid.select_applicant(), self.applicant_grid.change_status_action(), self.status_change.applicant_stage(self.xl_stage), self.status_change.applicant_status(self.xl_status), self.status_change.select_interviewers(), self.multi_select.move_all_items(), self.multi_select.done(), self.status_change.comment(self.xl_comment), self.status_change.change_button(), self.status_change.change_status_notifier(self.xl_message), self.status_change.change_status_notifier_dismiss(), self.applicant_grid.applicant_get_name(self.xl_event_name, 1), self.candidate_details.candidate_status(self.xl_status), self.window_switch.window_close(), self.window_switch.switch_to_window(0) ] for func in __list: if func: self.applicant_status_collection.append(func) else: self.applicant_status_collection.append(func)
class CRPOEventConfiguration: def __init__(self, driver, index, version): self.driver = driver self.get_by = EventGetByName(self.driver) self.event_sub_tab = EventSubTabs(self.driver) self.task_config = EventActivityTaskConfigPage(self.driver) self.multi_value = MultiSelectValues(self.driver) self.test = EventTestConfigPage(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_excel'], index=index) xl = status_excel.excel_dict self.xl_event_name = xl['name'][0].format(version) self.xl_stage_status = xl['offer_stage_status'][0] self.xl_positive_stage = xl['offer_positive'][0] self.xl_negative_stage = xl['offer_negative'][0] self.xl_activity2 = xl['activity2'][0] self.xl_task_message = xl['task_message'][0] self.xl_test_stage = xl['test_stage'][0] self.xl_test_message = xl['test_message'][0] self.event_task_config_collection = [] self.event_test_config_collection = [] def crpo_event_task_configurations(self): self.event_task_config_collection = [] __list = [self.event_sub_tab.event_configurations(), self.get_by.event_name_validation(self.xl_event_name), self.task_config.event_task_configure_button(), self.task_config.task_new_row(), self.task_config.event_task_job_name(self.xl_event_name), self.task_config.event_activity_stage_field(self.xl_stage_status), self.task_config.event_activity_positive_stage_field(self.xl_positive_stage), self.task_config.event_activity_negative_stage_field(self.xl_negative_stage), self.task_config.event_activity_field(self.xl_activity2), self.task_config.event_task_field(), self.multi_value.move_all_items(), self.multi_value.done(), self.task_config.event_activity_task_save(), self.task_config.event_task_notifier(self.xl_task_message), self.task_config.event_task_notifier_dismiss() ] for func in __list: if func: self.event_task_config_collection.append(func) else: self.event_task_config_collection.append(func) def crpo_event_test_configurations(self): self.event_test_config_collection = [] __list = [self.test.event_test_configure_button(), self.test.test_job_name_field(self.xl_event_name), self.test.test_stage_name_field(self.xl_test_stage), self.test.test_test_name_field(self.xl_event_name), self.test.test_active_enable(), self.test.event_test_configure_save(), self.test.test_tag_notifier(self.xl_test_message), self.test.test_tag_notifier_dismiss(), self.test.cancel_test_extra_config() ] for func in __list: if func: self.event_test_config_collection.append(func) else: self.event_test_config_collection.append(func)
class CrpoRequirementHelpDeskConfig: def __init__(self, driver, index, version): self.driver = driver self.helpdesk_config = RequirementHelpDeskConfig(self.driver) self.multi_value = MultiSelectValues(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ hd_excel = excelRead.ExcelRead() hd_excel.read(inputFile.INPUT_PATH['help_desk'], index=index) xl = hd_excel.excel_dict self.xl_job_name = xl['config_to'][0].format(version) self.xl_event_name = xl['config_to'][0].format(version) self.xl_sla = xl['sla'][0] self.xl_default_category = xl['default_category'][0] self.xl_default_user = xl['default_user'][0] self.xl_job_category = xl['job_category'][0] self.xl_job_user = xl['job_user'][0] self.xl_event_category = xl['event_category'][0] self.xl_event_user = xl['event_user'][0] self.xl_message = xl['message'][0] self.default_collection = [] self.job_level_collection = [] self.event_level_collection = [] self.save_config_collection = [] def default_level_config(self): self.default_collection = [] __list = [ self.helpdesk_config.default_category(), self.multi_value.search(self.xl_default_category), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.category_user_selection(), self.multi_value.search(self.xl_default_user), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.category_sla_hour_selection(self.xl_sla) ] for func in __list: if func: self.default_collection.append(func) else: self.default_collection.append(func) def job_level_config(self): self.job_level_collection = [] __list = [ self.helpdesk_config.job_category(), self.multi_value.search(self.xl_job_category), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.category_job_selection(), self.multi_value.search(self.xl_job_name), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.job_user_selection(), self.multi_value.search(self.xl_job_user), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.job_sla_hour_selection(self.xl_sla) ] for func in __list: if func: self.job_level_collection.append(func) else: self.job_level_collection.append(func) def event_level_config(self): self.event_level_collection = [] __list = [ self.helpdesk_config.event_category(), self.multi_value.search(self.xl_event_category), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.event_job_selection(), self.multi_value.search(self.xl_job_name), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.category_event_selection(), self.multi_value.search(self.xl_event_name), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.event_user_selection(), self.multi_value.search(self.xl_event_user), self.multi_value.move_all_items(), self.multi_value.done(), self.helpdesk_config.event_sla_hour_selection(self.xl_sla) ] for func in __list: if func: self.event_level_collection.append(func) else: self.event_level_collection.append(func) def save_configurations(self): self.save_config_collection = [] __list = [ self.helpdesk_config.save_help_desk_config(), self.helpdesk_config.config_notifier(self.xl_message), self.helpdesk_config.config_notifier_dismiss() ] for func in __list: if func: self.save_config_collection.append(func) else: self.save_config_collection.append(func)
class CRPOQuickInterviewSchedule: def __init__(self, driver, index, version): self.driver = driver self.applicant_grid = EventApplicant(self.driver) self.getby = CandidateDetailsPage(self.driver) self.applicant_action = EventApplicantActions(self.driver) self.quick_schedule = QuickIntSchedulePage(self.driver) self.multi_select = MultiSelectValues(self.driver) self.switch_window = SwitchWindowClose(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ int_excel = excelRead.ExcelRead() int_excel.read(inputFile.INPUT_PATH['interview_lobby'], index=index) xl = int_excel.excel_dict self.xl_int1_name = xl['int1_name'][0] self.xl_int2_name = xl['int2_name'][0] status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_status_change'], index=index) xl = status_excel.excel_dict self.xl_quick_stage = xl['live_stage'][0] self.xl_quick_comment = xl['quick_comment'][0] self.xl_quick_message = xl['live_message'][0] self.xl_app_name = xl['event_name'][0].format(version) self.xl_schedule_status = xl['schedule'][0] self.quick_config_collection = [] self.quick_schedule_collection = [] def quick_interview_config(self): self.quick_config_collection = [] __list = [ self.applicant_grid.select_applicant(), self.applicant_action.more_action(), self.applicant_action.quick_interview_action(), self.quick_schedule.select_interviewers_field(), self.multi_select.search(self.xl_int1_name), self.multi_select.move_all_items(), self.multi_select.search_clear(), self.multi_select.search(self.xl_int2_name), self.multi_select.move_all_items(), self.multi_select.done() ] for func in __list: if func: self.quick_config_collection.append(func) else: self.quick_config_collection.append(func) def quick_interview_schedule(self): self.quick_schedule_collection = [] __list = [ self.quick_schedule.select_interviewer_round(self.xl_quick_stage), self.quick_schedule.quick_comment(self.xl_quick_comment), self.quick_schedule.schedule_quick_interview(), self.quick_schedule.quick_schedule_notifier(self.xl_quick_message), self.quick_schedule.quick_schedule_notifier_dismiss(), self.applicant_grid.applicant_get_name(self.xl_app_name, 1), self.getby.candidate_status(self.xl_schedule_status), self.switch_window.window_close(), self.switch_window.switch_to_window(0) ] for func in __list: if func: self.quick_schedule_collection.append(func) else: self.quick_schedule_collection.append(func)
class CRPOReqCreation: def __init__(self, driver, index, version): self.driver = driver self.menu = Menu(self.driver) self.req = RequirementCreationPage(self.driver) self.multi_value = MultiSelectValues(self.driver) self.tab = RequirementSubTabs(self.driver) self.duplicity = DuplicityCheck(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ job_excel = excelRead.ExcelRead() job_excel.read(inputFile.INPUT_PATH['requirement_excel'], index=index) xl = job_excel.excel_dict self.xl_req_name = xl['name'][0].format(version) self.xl_menu = xl['menu'][0] self.xl_tab_title = xl['tab_title'][0] self.xl_track = xl['track'][0] self.xl_type = xl['type'][0] self.xl_msg = xl['message'][0] self.xl_duplicity = xl['duplicity'][0] self.xl_duplicity_msg = xl['duplicity_msg'][0] # ---- Collection of all success items self.req_create_collection = [] self.req_config_collection = [] def crpo_req_creation(self): self.req_create_collection = [] __list = [ self.menu.requirement_tab(self.xl_menu, self.xl_tab_title), self.req.create_button(), self.req.requirement_name(self.xl_req_name), self.req.requirement_job(), self.multi_value.search(self.xl_req_name), self.multi_value.move_all_items(), self.multi_value.done(), self.req.requirement_hiring(self.xl_track), self.req.requirement_type(self.xl_type), self.req.requirement_create(), self.req.req_creation_notifier(self.xl_msg), self.req.req_creation_notifier_dismiss() ] for func in __list: if func: self.req_create_collection.append(func) else: self.req_create_collection.append(func) def crpo_req_configuration(self): self.req_config_collection = [] __list = [ self.tab.requirement_configurations(), self.tab.requirement_duplicity(), self.duplicity.do_not_allow_duplicates(self.xl_duplicity), self.duplicity.req_duplicity_notifier(self.xl_duplicity_msg), self.duplicity.req_duplicity_notifier_dismiss() ] for func in __list: if func: self.req_config_collection.append(func) else: self.req_config_collection.append(func)