Beispiel #1
0
    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 __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)
        self.event_action = EventActionsPage.Actions(self.driver)
        self.search = AdvanceSearchPage.Search(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 = []
        self.event_action_collection = []
    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 __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 __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 __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 __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 = []