Exemplo n.º 1
0
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)
Exemplo n.º 2
0
    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 __init__(self, driver, index, version):
        self.driver = driver
        self.action = Actions(self.driver)
        self.upload = EventUploadCandidate(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.__upload = inputFile.INPUT_PATH['upload']
        self.xl_event_name = xl['name'][0].format(version)
        self.xl_success_msg = xl['upload_message'][0]

        self.event_upload_collection = []
Exemplo n.º 4
0
    def __init__(self, driver, index, version):
        self.driver = driver
        self.action = Actions(self.driver)
        self.lobby = LobbyPage(self.driver)
        """
        ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>>
        """
        status_excel = excelRead.ExcelRead()
        status_excel.read(inputFile.INPUT_PATH['event_slot_room'], index=index)
        xl = status_excel.excel_dict
        self.xl_room_name = xl['room_name'][0].format(version)
        self.xl_int1 = xl['int1'][0]
        self.xl_int2 = xl['int2'][0]
        self.xl_message = xl['message'][0]
        self.xl_active_message = xl['active_message'][0]

        self.room_collection = []
Exemplo n.º 5
0
class Room:
    def __init__(self, driver, index, version):
        self.driver = driver
        self.action = Actions(self.driver)
        self.lobby = LobbyPage(self.driver)
        """
        ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>>
        """
        status_excel = excelRead.ExcelRead()
        status_excel.read(inputFile.INPUT_PATH['event_slot_room'], index=index)
        xl = status_excel.excel_dict
        self.xl_room_name = xl['room_name'][0].format(version)
        self.xl_int1 = xl['int1'][0]
        self.xl_int2 = xl['int2'][0]
        self.xl_message = xl['message'][0]
        self.xl_active_message = xl['active_message'][0]

        self.room_collection = []

    def create_room(self):

        self.room_collection = []
        __list = [
            self.action.event_actions_click(),
            self.action.event_lobby(),
            self.lobby.create_room_button(),
            self.lobby.room_name(self.xl_room_name),
            self.lobby.select_interviewers(),
            self.lobby.search(self.xl_int1),
            self.lobby.move_all(),
            self.lobby.done(),
            self.lobby.select_participants(),
            self.lobby.search(self.xl_int2),
            self.lobby.move_all(),
            self.lobby.done(),
            self.lobby.created_button(self.xl_message),
            self.lobby.active_room(),
            self.lobby.ok_button(self.xl_active_message)
        ]
        for func in __list:
            if func:
                self.room_collection.append(func)
            else:
                self.room_collection.append(func)
Exemplo n.º 6
0
class InterviewLogin:
    def __init__(self, driver, index, version):

        self.driver = driver
        self.login = Login(self.driver)
        self.search = Search(self.driver)
        self.getby = EventGetByName(self.driver)
        self.event_action = Actions(self.driver)
        """
        ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>>
        """
        slot_excel = excelRead.ExcelRead()
        slot_excel.read(inputFile.INPUT_PATH['interview_lobby'], index=index)
        xl = slot_excel.excel_dict
        self.xl_account_name = xl['account_name'][0]
        self.xl_int1 = xl['int1'][0]
        self.xl_int1_name = xl['int1_name'][0]
        self.xl_event = xl['event_name'][0].format(version)

        self.int_collection = []

    def interviewer_login(self):
        self.int_collection = []
        __list = [
            self.login.login_account_click(self.xl_account_name),
            self.login.login_out(),
            self.login.click_here_to_login(),
            self.login.login_name(self.xl_int1),
            self.login.password(self.xl_int1),
            self.login.login_button(),
            self.login.login_account_name_verification(self.xl_int1_name),
            self.search.advance_search(),
            self.search.name_field(self.xl_event),
            self.search.search_button(),
            self.getby.event_name_click(),
            self.getby.event_name_validation(self.xl_event),
            self.event_action.event_actions_click(),
            self.event_action.interview_lobby_panel()
        ]
        for func in __list:
            if func:
                self.int_collection.append(func)
            else:
                self.int_collection.append(func)
class CRPOUploadCandidate:
    def __init__(self, driver, index, version):
        self.driver = driver
        self.action = Actions(self.driver)
        self.upload = EventUploadCandidate(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.__upload = inputFile.INPUT_PATH['upload']
        self.xl_event_name = xl['name'][0].format(version)
        self.xl_success_msg = xl['upload_message'][0]

        self.event_upload_collection = []

    def crpo_event_upload_candidates(self, email):
        self.event_upload_collection = []
        __list = [
            self.action.event_actions_click(),
            self.action.event_upload_candidates(),
            self.upload.upload_file(self.__upload),
            self.upload.next_button(),
            self.upload.declare_check(),
            self.upload.signature_entry(),
            self.upload.agreed_button(),
            self.upload.edit_excel_information(),
            self.upload.name_edit(self.xl_event_name),
            self.upload.email_edit(email),
            self.upload.usn_edit(self.xl_event_name),
            self.upload.save_info(),
            self.upload.save_candidate(),
            self.upload.success_upload(self.xl_success_msg),
            self.upload.close_candidate_screen(),
            self.upload.close_main_screen(),
            self.upload.confirm_close_main_screen()
        ]
        for func in __list:
            if func:
                self.event_upload_collection.append(func)
            else:
                self.event_upload_collection.append(func)
Exemplo n.º 8
0
    def __init__(self, driver, index, version):

        self.driver = driver
        self.login = Login(self.driver)
        self.search = Search(self.driver)
        self.getby = EventGetByName(self.driver)
        self.event_action = Actions(self.driver)
        """
        ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>>
        """
        slot_excel = excelRead.ExcelRead()
        slot_excel.read(inputFile.INPUT_PATH['interview_lobby'], index=index)
        xl = slot_excel.excel_dict
        self.xl_account_name = xl['account_name'][0]
        self.xl_int1 = xl['int1'][0]
        self.xl_int1_name = xl['int1_name'][0]
        self.xl_event = xl['event_name'][0].format(version)

        self.int_collection = []