示例#1
0
    def __init__(self, driver, index, version):
        self.driver = driver
        self.live = LiveIntSchedulePage(self.driver)
        self.feedback = InterviewFeedback(self.driver)
        self.new_tab = SwitchWindow.SwitchWindowClose(self.driver)
        self.event_action = EventActionsPage.Actions(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_live_stage = xl['live_stage'][0]

        feed_excel = excelRead.ExcelRead()
        feed_excel.read(inputFile.INPUT_PATH['feedback'], index=index)
        xl = feed_excel.excel_dict
        self.xl_candidate_name = xl['event_name'][0].format(version)
        self.xl_shortlist_decision = xl['shortlist'][0]
        self.xl_rating = xl['rating'][0]
        self.xl_comment = xl['live_comment'][0]
        self.xl_overall = xl['live_overall'][0]
        self.xl_draft_message = xl['save_draft_message'][0]

        self.int2_feedback_collection = []
        self.pf2_collection = []
        self.draft_collection = []
示例#2
0
class CrpoBehalfOfFeedback:
    def __init__(self, driver, index, version):
        self.driver = driver
        self.live = LiveIntSchedulePage(self.driver)
        self.feedback = InterviewFeedback(self.driver)
        self.new_tab = 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_status_change'],
                          index=index)
        xl = status_excel.excel_dict
        self.xl_event_name = xl['event_name'][0].format(version)
        self.xl_live_stage = xl['live_stage'][0]

        feed_excel = excelRead.ExcelRead()
        feed_excel.read(inputFile.INPUT_PATH['feedback'], index=index)
        xl = feed_excel.excel_dict
        self.xl_candidate_name = xl['event_name'][0].format(version)
        self.xl_shortlist_decision = xl['shortlist'][0]
        self.xl_rating = xl['rating'][0]
        self.xl_comment = xl['behalf_comment'][0]
        self.xl_overall = xl['behalf_overall'][0]

        self.behalf_of_collection = []

    def live_behalf_of_feedback(self):
        self.behalf_of_collection = []
        __list = [
            self.live.arrow_down_for_feedback(),
            self.live.feedback_provide_action(),
            self.new_tab.switch_to_window(1),
            self.feedback.feedback_decision(self.xl_shortlist_decision),
            self.feedback.feedback_select_drop_down(self.xl_rating),
            self.feedback.feedback_comments(self.xl_comment),
            self.feedback.behalf_select_interviewers(),
            self.feedback.overall_comment(self.xl_overall),
            self.feedback.submit_feedback(),
            self.feedback.agree_and_submit(),
            self.feedback.agree_and_submit(),
            self.new_tab.window_close(),
            self.new_tab.switch_to_window(0),
            self.live.clear_applicant_search()
        ]
        for func in __list:
            if func:
                self.behalf_of_collection.append(func)
            else:
                self.behalf_of_collection.append(func)
    def __init__(self, driver, index, version):
        self.driver = driver
        self.live = LiveIntSchedulePage(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_live_stage = xl['live_stage'][0]
        self.xl_screen_validate = xl['live_screen_validate'][0]
        self.xl_live_message = xl['live_message'][0]

        self.event_live_schedule_collection = []
class CrpoLiveSchedule:
    def __init__(self, driver, index, version):
        self.driver = driver
        self.live = LiveIntSchedulePage(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_live_stage = xl['live_stage'][0]
        self.xl_screen_validate = xl['live_screen_validate'][0]
        self.xl_live_message = xl['live_message'][0]

        self.event_live_schedule_collection = []

    def live_interview_schedule(self):
        self.event_live_schedule_collection = []
        __list = [
            self.live.stage_selection(self.xl_live_stage),
            self.live.applicant_name_filed(self.xl_event_name),
            self.live.schedule_applicant_search(),
            self.live.select_live_applicant(),
            self.live.schedule_select(),
            self.live.validate_interviewers_screen(self.xl_screen_validate),
            self.live.select_interviewers(),
            self.live.live_schedule(),
            self.live.live_schedule_notifier(self.xl_live_message),
            self.live.live_schedule_notifier_dismiss()
        ]
        for func in __list:
            if func:
                self.event_live_schedule_collection.append(func)
            else:
                self.event_live_schedule_collection.append(func)
示例#5
0
class CrpoInt2Feedback:
    def __init__(self, driver, index, version):
        self.driver = driver
        self.live = LiveIntSchedulePage(self.driver)
        self.feedback = InterviewFeedback(self.driver)
        self.new_tab = SwitchWindow.SwitchWindowClose(self.driver)
        self.event_action = EventActionsPage.Actions(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_live_stage = xl['live_stage'][0]

        feed_excel = excelRead.ExcelRead()
        feed_excel.read(inputFile.INPUT_PATH['feedback'], index=index)
        xl = feed_excel.excel_dict
        self.xl_candidate_name = xl['event_name'][0].format(version)
        self.xl_shortlist_decision = xl['shortlist'][0]
        self.xl_rating = xl['rating'][0]
        self.xl_comment = xl['live_comment'][0]
        self.xl_overall = xl['live_overall'][0]
        self.xl_draft_message = xl['save_draft_message'][0]

        self.int2_feedback_collection = []
        self.pf2_collection = []
        self.draft_collection = []

    def live_interview2_feedback(self):
        self.int2_feedback_collection = []
        __list = [
            self.event_action.event_actions_click(),
            self.event_action.live_interview_schedule(),
            self.live.stage_selection(self.xl_live_stage),
            self.live.applicant_name_filed(self.xl_event_name),
            self.live.schedule_applicant_search(),
            self.live.arrow_down_for_feedback(),
            self.live.feedback_provide_action(),
            self.new_tab.switch_to_window(1)
        ]
        for func in __list:
            if func:
                self.int2_feedback_collection.append(func)
            else:
                self.int2_feedback_collection.append(func)

    def int2_save_draft(self):
        self.draft_collection = []
        __list = [
            self.feedback.feedback_decision(self.xl_shortlist_decision),
            self.feedback.feedback_select_drop_down(self.xl_rating),
            self.feedback.feedback_comments(self.xl_comment),
            self.feedback.overall_comment(self.xl_draft_message),
            self.feedback.save_draft_old_feedback(),
            self.feedback.save_draft_notifier(self.xl_draft_message),
            self.feedback.save_draft_notifier_dismiss(),
            self.new_tab.window_close(),
            self.new_tab.switch_to_window(0),
        ]
        for func in __list:
            if func:
                self.draft_collection.append(func)
            else:
                self.draft_collection.append(func)

    def int2_provide_feedback(self):
        self.pf2_collection = []
        __list = [
            self.live.feedback_provide_action(),
            self.new_tab.switch_to_window(1),
            self.feedback.overall_comment(self.xl_overall),
            self.feedback.submit_feedback(),
            self.feedback.agree_and_submit(),
            self.feedback.agree_and_submit(),
            self.new_tab.window_close(),
            self.new_tab.switch_to_window(0),
        ]
        for func in __list:
            if func:
                self.pf2_collection.append(func)
            else:
                self.pf2_collection.append(func)