コード例 #1
0
        /// <summary>
        /// This is a requirement to pend any case, if your case needs to be pended.
        /// Case must be available to be pended.
        /// </summary>
        /// <param name="appNumber"></param>
        /// <param name="context"></param>
        /// <param name="sucessCount"></param>
        /// <param name="screenshotLocation"></param>
        /// <param name="test"></param>
        /// <param name="doc"></param>
        public void HippPendCase(string appNumber, IWebDriver context, string screenshotLocation)
        {
            APHPHomePage              loginPage      = new APHPHomePage(context);
            WorkerPortalLandingPage   landingPage    = new WorkerPortalLandingPage(context);
            HIPPSearchPage            hIPPSearchpage = new HIPPSearchPage(context);
            HIPPSubmitApplicationPage submitApp      = new HIPPSubmitApplicationPage(context);
            WorkItemComponent         workitem       = new WorkItemComponent(context);
            Generic      generic    = new Generic(context);
            Utility      utility    = new Utility(context);
            HIPPSearch   hIPPSearch = new HIPPSearch();
            InitiateTest startUp    = new InitiateTest(context);

            context.Url = startUp.AWSINTWoker;
            generic.GenericCheveronClick("3");
            generic.GenericCheveronClick("4");
            workitem.btnActivityDone.Click();
            workitem.ClickCompletedButton();
            context.Url = startUp.AWSINTWoker;
            workitem.ClickExitButton();
            landingPage.HippApplicationSearch();
            hIPPSearchpage.SearchHiPPCase("Contains", "Application ID", appNumber);
            hIPPSearchpage.SearchButtonClick();
            generic.HoverByLinkText(appNumber);
            generic.genericLinkTextClick(appNumber);

            workitem.ClickWorkItemButton();
            Thread.Sleep(3000);

            generic.GenericCheveronClick("3");
            generic.GenericCheveronClick("4");
            workitem.ClickPendButton();
            generic.GenericCheveronClick("3");
            generic.GenericCheveronClick("4");
            generic.HoverByElement(workitem.ActivitystatusResn);

            Thread.Sleep(2000);

            workitem.ClickCompletedButton();
        }
コード例 #2
0
        /// <summary>
        /// This is the beginning workflow module. You will use this after one of the case creation modules
        /// </summary>
        /// <param name="activityReason"></param>
        /// <param name="context"></param>
        /// <param name="sucessCount"></param>
        /// <param name="screenshotLocation"></param>
        /// <param name="test"></param>
        /// <param name="doc"></param>
        public string HippWorkFlow(string activityReason, IWebDriver context, string screenshotLocation)
        {
            APHPHomePage              loginPage      = new APHPHomePage(context);
            WorkerPortalLandingPage   landingPage    = new WorkerPortalLandingPage(context);
            HIPPSearchPage            hIPPSearchpage = new HIPPSearchPage(context);
            HIPPSubmitApplicationPage submitApp      = new HIPPSubmitApplicationPage(context);
            WorkItemComponent         workitem       = new WorkItemComponent(context);
            Generic      generic = new Generic(context);
            Utility      utility = new Utility(context);
            InitiateTest startUp = new InitiateTest(context);

            //Gather Data from app
            generic.GenericCheveronClick("2");
            generic.GenericCheveronClick("3");
            generic.GenericCheveronClick("4");

            ///Pend Application
            workitem.ActivitystatusResn_Input.Click();
            workitem.ActivitystatusResn_Input.SendKeys(activityReason);

            switch (activityReason)
            {
            case "Approved":
                workitem.ClickApproveButton();
                break;

            case "Denied":
                workitem.ClickDenyButton();
                break;

            case "Pended":
                workitem.ClickApproveButton();
                break;
            }
            generic.GenericCheveronClick("3");
            generic.GenericCheveronClick("4");
            generic.HoverByElement(workitem.CompletedBottom);

            string appNumber = workitem.gatherAppNumber();
            string workItem  = workitem.gatherWorkItemType();
            string appQueue  = workitem.gatherWorkItemStatus();

            workitem.ClickCompletedButton();
            context.Url = startUp.AWSINTWoker;

            workitem.ClickExitButton();

            try
            {
                workitem.ClickExitButton();
            }
            catch (Exception ex)
            {
                Type exType = ex.GetType();
                if (exType == typeof(TargetInvocationException) ||
                    exType == typeof(NoSuchElementException) ||
                    exType == typeof(ElementClickInterceptedException) ||
                    exType == typeof(ElementNotVisibleException) ||
                    exType == typeof(InvalidOperationException))
                {
                    //Do nothing and continue
                }
            }
            landingPage.HippApplicationSearch();
            hIPPSearchpage.SearchHiPPCase("Contains", "Application ID", appNumber);
            hIPPSearchpage.SearchButtonClick();
            generic.HoverByLinkText(appNumber);
            generic.genericLinkTextClick(appNumber);
            if (activityReason == "Denied")
            {
                return(appNumber);
            }
            workitem.ClickWorkItemButton();
            Thread.Sleep(3000);
            generic.GenericCheveronClick("3");
            generic.GenericCheveronClick("4");
            string workItem2 = workitem.gatherWorkItemType();
            string appQueue2 = workitem.gatherWorkItemStatus();

            if (activityReason == "Pended")
            {
                HippPendCase(appNumber, context, screenshotLocation);
            }
            return(appNumber);
        }
コード例 #3
0
        public void SubmitHIPPCaseSubmissionUltimate(IWebDriver context, bool renewal)
        {
            HIPPSubmitApplicationPage submitApp = new HIPPSubmitApplicationPage(context);
            WorkItemComponent         workitem  = new WorkItemComponent(context);
            Generic generic = new Generic(context);
            Utility utility = new Utility(context);

            DateTime now = DateTime.Today;

            #region New or Renewal Logic
            if (renewal)
            {
                submitApp.ApplicationOverviewInput(
                    DateTime.Today.AddMonths(+2).AddYears(-1).ToString("MM/dd/yyyy"),
                    DateTime.Today.ToString("MM/dd/yyyy"),
                    DateTime.Today.AddMonths(-6).ToString("MM/dd/yyyy"),
                    DateTime.Today.ToString("MM/dd/yyyy"),
                    DateTime.Today.ToString("MM/dd/yyyy"),
                    utility.RandomNumericString(9)
                    );
            }
            else
            {
                submitApp.ApplicationOverviewInput(
                    DateTime.Today.ToString("MM/dd/yyyy"),
                    DateTime.Today.ToString("MM/dd/yyyy"),
                    DateTime.Today.AddMonths(-6).ToString("MM/dd/yyyy"),
                    DateTime.Today.ToString("MM/dd/yyyy"),
                    DateTime.Today.ToString("MM/dd/yyyy"),
                    utility.RandomNumericString(9)
                    );
            }
            #endregion

            #region Required Input
            generic.GenericCheveronClick("10");
            submitApp.HouseHoldInformationInput(
                "Self",
                "Test",
                "",
                "Person",
                now.AddYears(-35).ToString("MM/dd/yyyy"),
                "0298443004",
                "333402593",
                "Yes",
                "Yes");
            generic.GenericCheveronClick("10");
            generic.GenericCheveronClick("9");
            submitApp.PolicyHolderEmployerInformationInput(
                "Test",
                "",
                "Person",
                "233 Buchanan St",
                "Apt101",
                "Alexandria",
                "VA",
                "22314",
                "7033482934",
                "7034449999",
                "2020001111",
                "*****@*****.**");
            generic.GenericCheveronClick("9");

            generic.GenericCheveronClick("11");
            generic.GenericCheveronClick("12");
            submitApp.EmploymentStatusHiringInput(
                true,
                now.AddYears(-9).ToString("MM/dd/yyyy"),
                false,
                true,
                false);
            generic.GenericCheveronClick("12");
            generic.GenericCheveronClick("13");
            submitApp.EmploymentHumanResourcesInformation(
                "Accenture",
                "101010101",
                "Made Up Street",
                "Apt101",
                "Alexandria",
                "VA",
                "22314",
                "Dale Dimmadone",
                "technology",
                "2022213300");
            generic.GenericCheveronClick("13");
            generic.GenericCheveronClick("14");
            generic.GenericCheveronClick("15");
            submitApp.CompanyInformationInput(
                "Insurance Co.",
                "9483924",
                "Address Line One",
                "Address line two",
                "Charlotesvill",
                "VA",
                "23019",
                "Mike Adams",
                "8883930023");
            generic.GenericCheveronClick("15");
            generic.GenericCheveronClick("16");
            submitApp.PlanInformationInput(
                "COBRA",
                false,
                now.AddYears(-12).ToString("MM/dd/yyyy"),
                "Monthly",
                utility.RandomNumericString(3));
            generic.GenericCheveronClick("16");
            generic.GenericCheveronClick("14");
            generic.GenericCheveronClick("17");

            generic.GenericCheveronClick("18");
            submitApp.EmployeeInformationInput(
                "Employee",
                "Middle",
                "Worker",
                "4942005931",
                now.AddYears(-43).ToString("MM/dd/yyyy"),
                now.AddYears(-12).ToString("MM/dd/yyyy"),
                false,
                false,
                false);
            generic.GenericCheveronClick("18");
            generic.GenericCheveronClick("19");
            submitApp.EmployeeMemberInput(
                "Employee",
                "Middle",
                "Worker",
                DateTime.Today.AddYears(-15).ToString("MM/dd/yyyy"),
                "Guardian",
                true
                );
            generic.GenericCheveronClick("19");
            generic.GenericCheveronClick("20");
            submitApp.CoverageSelection(
                true,
                false,
                false,
                false,
                true,
                false,
                false);
            generic.GenericCheveronClick("20");
            generic.GenericCheveronClick("21");
            submitApp.OpenEnrollmentInformationInput(
                DateTime.Today.ToString("MM/dd/yyyy"),
                DateTime.Today.ToString("MM/dd/yyyy"),
                DateTime.Today.ToString("MM/dd/yyyy")
                );
            Thread.Sleep(2000);
            generic.GenericCheveronClick("21");
            generic.GenericCheveronClick("22");
            submitApp.InsuranceType(
                "Medical",
                "Big Insurance Co.",
                "Address One St.",
                "101",
                "Alexandria",
                "VA",
                "22314",
                "7034049911",
                "86903954");
            Thread.Sleep(2000);
            submitApp.InsuranceType(
                "Dental",
                "Big Dental Co.",
                "Maker St.",
                "202",
                "Potamic",
                "VA",
                "22314",
                "7039837771",
                "86903954");
            Thread.Sleep(2000);
            Thread.Sleep(2000);
            submitApp.PlanBenifitsInput(
                true,
                "300",
                "1,200",
                true,
                false,
                false,
                true,
                true,
                false,
                true,
                false);
            Thread.Sleep(2000);
            submitApp.ClickSave();


            Thread.Sleep(2000);
            generic.HoverByElement(workitem.txtWorkItemType);

            #endregion

            #region Approve/Deny/Pend Logic

            #endregion
        }