Exemple #1
0
        public void WorkerMismatchedSsn()
        {
            Initialize();

            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);

            foreach (var datarow in datarows)
            {
                if (datarow.ItemArray[1].ToString() == "Mismatched SSN")
                {
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    WorkerAlreadyExistWindow.ClickonContinueBtnTelephone();
                    WorkerAlreadyExistWindow.ClickOnContinueBtn();
                    WorkerCompleteBehavioralSurveryWindow.ClickOnGetResultsBtn();
                    Playback.Wait(5000);
                    Factory.AssertIsTrue(WorkerReveiwApplicantBehavioralSurveyResultsWindow.VerifyWorkerSurveyResultsWindowDisplayed(), "Survey Results Window Not Displayed");
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.EnterDatainTescor();
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickonCancelBtnTescor();
                    Playback.Wait(2000);
                    WorkerIdentityWindow.ClickOnOkBtnPopUp();
                }
            }
            Cleanup();
        }
Exemple #2
0
        public void RejectWorker()
        {
            try
            {
                Initialize();

                var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);
                foreach (var datarow in datarows.Where(x => x.ItemArray[1].ToString() == "Qualified"))
                {
                    Playback.Wait(1000);
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnNextBtnQualified();
                    WorkerAlreadyExistWindow.ClickOnContinueBtn();
                    WorkerCompleteBehavioralSurveryWindow.ClickOnGetResultsBtn();
                    Playback.Wait(5000);
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnContinueBtn();
                    WorkerAddressWindow.EnterAddressData(datarow);
                    WorkerAddressWindow.ClickOnRejectBtn();
                    WorkerIdentityWindow.ClickOnOkBtnPopUp();
                    Factory.AssertIsTrue(WorkerAddressWindow.VerifyRejectPopUpDisplayed(), "Reject PopUp Not Displayed");
                    WorkerAddressWindow.EnterDataInRejectPopUp();
                    WorkerAddressWindow.ClickOnDoneBtnReject();
                }
            }
            finally
            {
                Cleanup();
            }
        }
Exemple #3
0
        public void CancelWorkerEmploymentEligibilityData()
        {
            Initialize();

            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);

            foreach (var datarow in datarows)
            {
                if (datarow.ItemArray[1].ToString() == "Qualified")
                {
                    Playback.Wait(1000);
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnNextBtnQualified();
                    WorkerAlreadyExistWindow.ClickOnContinueBtn();
                    WorkerCompleteBehavioralSurveryWindow.ClickOnGetResultsBtn();
                    Playback.Wait(5000);
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnContinueBtn();
                    WorkerAddressWindow.EnterAddressData(datarow);
                    WorkerAddressWindow.ClickOnContinueBtn();
                    WorkerGeoCodeWindow.ClickOnOkBtn();
                    WorkerVertexGeoCodeWindow.ClickOnOkBtn();
                    Playback.Wait(2000);
                    WorkerPhoneWindow.EnterPhoneData(datarow);
                    WorkerPhoneWindow.ClickOnContinueBtn();
                    WorkerVerficationWindow.EnterVerificationData(datarow);
                    WorkerVerficationWindow.ClickOnCancelBtn();
                    Factory.AssertIsTrue(WorkerIdentityWindow.VerifyAlertPopUpDisplayed(), "Alert PopUp Not Displayed. Entered Verification data is not cancelled");
                    WorkerIdentityWindow.ClickOnOkBtnPopUp();
                }
            }
            Cleanup();
        }
Exemple #4
0
        public void OverrideWorker()
        {
            Initialize();

            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);

            foreach (var datarow in datarows)
            {
                if (datarow.ItemArray[1].ToString() == "Qualified")
                {
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    var overRideBtn = WorkerAlreadyExistWindow.VerifyOverRideBtnEnabled();
                    if (overRideBtn)
                    {
                        WorkerAlreadyExistWindow.ClickOnOverideBtn();
                        Factory.AssertIsTrue(WorkerCompleteBehavioralSurveryWindow.VerifyCompleteBehavioralSurveyWindowDisplayed(), "Survey Window Not displayed");
                    }
                    else
                    {
                        Factory.AssertIsTrue(overRideBtn, "No Workers Displayed To Override");
                        WorkerAlreadyExistWindow.ClickOnBackBtn();
                        WorkerIdentityWindow.ClickOnCancelBtn();
                        WorkerIdentityWindow.ClickOnOkBtnPopUp();
                    }
                }
            }
            Cleanup();
        }
Exemple #5
0
        public void UpdateWorker()
        {
            Initialize();

            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);

            foreach (var datarow in datarows)
            {
                if (datarow.ItemArray[1].ToString() == "Qualified")
                {
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    var updateBtn = WorkerAlreadyExistWindow.VerifyUpdateBtnEnabled();
                    if (updateBtn)
                    {
                        WorkerAlreadyExistWindow.ClickOnUpdateProfileBtn();
                        Factory.AssertIsTrue(WorkerSurveyWindow.VerifyWorkerProfileWindowDisplayed(),
                                             "Worker Summary Tab not Displayed");
                        WorkerSummaryWindow.ClickOnCloseBtn();
                    }
                    else
                    {
                        Factory.AssertIsTrue(updateBtn, "No workers Displayed to Update");
                        WorkerAlreadyExistWindow.ClickOnBackBtn();
                        WorkerIdentityWindow.ClickOnCancelBtn();
                        WorkerIdentityWindow.ClickOnOkBtnPopUp();
                    }
                }
            }
            Cleanup();
        }
Exemple #6
0
        public void RejectWorkerConfirmationScreen()
        {
            try
            {
                Initialize();

                var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);
                foreach (var datarow in datarows.Where(v => v.ItemArray[1].ToString().Equals("Qualified")))
                {
                    Playback.Wait(1000);
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnNextBtnQualified();
                    WorkerAlreadyExistWindow.ClickOnContinueBtn();
                    WorkerCompleteBehavioralSurveryWindow.ClickOnGetResultsBtn();
                    Playback.Wait(5000);
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnContinueBtn();
                    WorkerAddressWindow.EnterAddressData(datarow);
                    WorkerAddressWindow.ClickOnContinueBtn();
                    WorkerGeoCodeWindow.ClickOnOkBtn();
                    WorkerVertexGeoCodeWindow.ClickOnOkBtn();
                    Playback.Wait(2000);
                    WorkerPhoneWindow.EnterPhoneData(datarow);
                    WorkerPhoneWindow.ClickOnContinueBtn();
                    WorkerVerficationWindow.EnterVerificationData(datarow);
                    WorkerVerficationWindow.ClickOnContinueBtn();
                    WorkerVerficationWindow.ClickOnOkBtnVerification();
                    WorkerWithholdings.EnterDataInWithholdings(datarow);
                    WorkerWithholdings.ClickOnContinueBtn();
                    WorkerJobSkillsWindow.ClickonAddOrUpdateBtn();
                    WorkerJobSkillsWindow.EnterDataInAddSkills(datarow);
                    WorkerJobSkillsWindow.EnterLicenseData(datarow);
                    WorkerJobSkillsWindow.ClickonContinueBtn();
                    Playback.Wait(2000);
                    WorkerConfirmApplicantElgibiltyWindow.ClickOnNoBtn();
                    Factory.AssertIsTrue(WorkerAddressWindow.VerifyRejectPopUpDisplayed(), "Reject PopUp Not Displayed");
                    WorkerAddressWindow.EnterDataInRejectPopUp();
                    WorkerAddressWindow.ClickOnDoneBtnReject();
                }
            }
            finally
            {
                Cleanup();
            }
        }
Exemple #7
0
        public void CancelWorkerW5Screen()
        {
            try
            {
                Initialize();

                var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);
                foreach (var datarow in datarows.Where(x => x.ItemArray[1].ToString().Equals("Qualified")))
                {
                    Playback.Wait(1000);
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnNextBtnQualified();
                    WorkerAlreadyExistWindow.ClickOnContinueBtn();
                    WorkerCompleteBehavioralSurveryWindow.ClickOnGetResultsBtn();
                    Playback.Wait(5000);
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnContinueBtn();
                    WorkerAddressWindow.EnterAddressData(datarow);
                    WorkerAddressWindow.ClickOnContinueBtn();
                    WorkerGeoCodeWindow.ClickOnOkBtn();
                    WorkerVertexGeoCodeWindow.ClickOnOkBtn();
                    Playback.Wait(2000);
                    WorkerPhoneWindow.EnterPhoneData(datarow);
                    WorkerPhoneWindow.ClickOnContinueBtn();
                    WorkerVerficationWindow.EnterVerificationData(datarow);
                    WorkerVerficationWindow.ClickOnContinueBtn();
                    WorkerVerficationWindow.ClickOnOkBtnVerification();
                    WorkerWithholdings.EnterDataInW5PopUp(datarow);
                    WorkerWithholdings.ClickOnCancelBtnW5();
                    WorkerWithholdings.ClickOnCancelBtn();
                    Factory.AssertIsTrue(WorkerIdentityWindow.VerifyAlertPopUpDisplayed(), "Alert PopUp Not Displayed. Entered WithHoldings data is not cancelled");
                    WorkerIdentityWindow.ClickOnOkBtnPopUp();
                }
            }
            finally
            {
                Cleanup();
            }
        }
Exemple #8
0
        public void CloseNonQualifiedWorker()
        {
            Initialize();

            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);

            foreach (var datarow in datarows)
            {
                if (datarow.ItemArray[1].ToString() == "Not Qualified")
                {
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    WorkerIdentityWindow.ClickOkBtnDuplicate();
                    WorkerAlreadyExistWindow.ClickOnOverideBtn();
                    WorkerCompleteBehavioralSurveryWindow.ClickOnGetResultsBtn();
                    Playback.Wait(5000);
                    Factory.AssertIsTrue(WorkerReveiwApplicantBehavioralSurveyResultsWindow.VerifyWorkerNonQualifiedWindowDisplayed(), "Non Qualified Window not Displayed");
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickonCloseBtn();
                }
            }
            Cleanup();
        }