Exemplo n.º 1
0
        public static void Init(TestContext context)
        {
            testContext    = context;
            driver         = Driver.Initialize(testContext.Properties["BrowserIEName"].ToString());
            freshStart     = new FreshStartHome(driver);
            commonhelper   = new WebObjectFunctions(driver);
            newEnroll      = new NewEnrollClient(driver);
            myPipeline     = new MyPipeline(driver);
            apiHelper      = new CommonAPIHelper(driver);
            pipelineSearch = new PipelineSearch(driver);
            string freshStartUrl = ConfigurationManager.AppSettings["FreshStartUrl"];

            newEnroll.NavigateToFreshStartHome(driver, freshStartUrl);
            Assert.IsTrue(commonhelper.ValidatateWebElementDisplayed(newEnroll.newEnroll_Subheading));
            Assert.IsTrue(commonhelper.ValidatateWebElementTextDisplayed(newEnroll.newEnroll_Subheading, ConfigurationManager.AppSettings["NewEnrollText"]));
            Assert.IsTrue(commonhelper.ValidatateWebElementDisplayed(newEnroll.newEnrollLoanNumber_Label));
            Assert.IsTrue(commonhelper.ValidatateWebElementTextDisplayed(newEnroll.newEnrollLoanNumber_Label, ConfigurationManager.AppSettings["LoanNumberText"]));
            Assert.IsTrue(commonhelper.ValidatateWebElementDisplayed(newEnroll.newEnrollLoanNumber_TextBox));
            Assert.IsTrue(commonhelper.ValidatateWebElementAttributeCheck(newEnroll.newEnrollLoanNumber_TextBox, ConfigurationManager.AppSettings["MaxLengthTenText"]));
            Assert.IsTrue(commonhelper.ValidatateWebElementAttributeCheck(newEnroll.newEnrollLoanNumber_TextBox, ConfigurationManager.AppSettings["NgPatternText"]));
            Assert.IsTrue(commonhelper.ValidatateWebElementAttributeCheck(newEnroll.newEnrollEntroll_Button, ConfigurationManager.AppSettings["DisabledText"]));
            newEnroll.EnterLoanNumber(driver, ConfigurationManager.AppSettings["LoanNumber"]);
            Assert.IsTrue(commonhelper.ValidatateWebRemovedElementAttributeCheck(newEnroll.newEnrollEntroll_Button, ConfigurationManager.AppSettings["DisabledText"]));
            newEnroll.NavigateToClientOption(driver);
            newEnroll.SelectFirstClient(driver);
        }
Exemplo n.º 2
0
 public void GetAllValueForClientOne(IWebDriver driver)
 {
     freshStart     = new FreshStartHome(driver);
     commonhelper   = new WebObjectFunctions(driver);
     newEnroll      = new NewEnrollClient(driver);
     myPipeline     = new MyPipeline(driver);
     apiHelper      = new CommonAPIHelper(driver);
     pipelineSearch = new PipelineSearch(driver);
     //secondClientDetails = new Panorama_SecondClientDetails(driver);
     newEnroll.NavigateToFreshStartHome(driver, ConfigurationManager.AppSettings["FreshStartUrl"]);
     newEnroll.EnterLoanNumber(driver, ConfigurationManager.AppSettings["LoanNumber"]);
     newEnroll.NavigateToClientOption(driver);
     newEnroll.SelectFirstClient(driver);
     valueFirstName          = freshStart.FreshStartFirstName_TextBox.GetAttribute("value");
     valueLastName           = freshStart.FreshStartLastName_TextBox.GetAttribute("value");
     valueEmail              = freshStart.FreshStartEmail_TextBox.GetAttribute("value");
     valuePhone              = freshStart.FreshStartPhone_TextBox.GetAttribute("value");
     valueClientOneFirstName = freshStart.FreshStartClientInfoClientOneFirstName_TextBox.GetAttribute("value");
     valueClientOneLastName  = freshStart.FreshStartClientInfoClientOneLastName_TextBox.GetAttribute("value");
     valueClientOnePhone     = freshStart.FreshStartClientInfoClientOneHomePhone_TextBox.GetAttribute("value");
     valueClientOneEmail     = freshStart.FreshStartClientInfoClientOneEmail_TextBox.GetAttribute("value");
     valuePropertyAddress    = freshStart.FreshStartPropertyAddress_TextBox.GetAttribute("value");
     valuePropertyCity       = freshStart.FreshStartPropertyCity_TextBox.GetAttribute("value");
     substringValue          = valuePropertyAddress.Substring(0, 11);
 }
Exemplo n.º 3
0
        public void GetAllAPIForClientTwo(IWebDriver driver)
        {
            apiHelper          = new CommonAPIHelper(driver);
            ApiUtilityFunction = new APIUtilityFunctions(driver);
            string response          = apiHelper.GetAPIGetMethodResponse(driver, "http://mobiusbttest/api/loans/", "3", "3396686053");
            string gcid              = ApiUtilityFunction.findGCidFormSourceReferenceId(driver, response);
            string panoramanResponse = apiHelper.GetAPIGetMethodResponse(driver, "http://panoramatest/api/clients/", "", gcid);

            secondClientDetails = apiHelper.SecondClientDetailsResult(panoramanResponse);
        }
Exemplo n.º 4
0
 public static void Init(TestContext context)
 {
     testContext    = context;
     driver         = Driver.Initialize(testContext.Properties["BrowserChromeName"].ToString());
     freshStart     = new FreshStartHome(driver);
     commonhelper   = new WebObjectFunctions(driver);
     newEnroll      = new NewEnrollClient(driver);
     myPipeline     = new MyPipeline(driver);
     apiHelper      = new CommonAPIHelper(driver);
     pipelineSearch = new PipelineSearch(driver);
     freshStartUrl  = ConfigurationManager.AppSettings["FreshStartUrl"];
     freshStart.NavigateToFreshStartHome(driver, freshStartUrl);
     freshStart.NavigateToMyPipelineHome(driver);
 }
Exemplo n.º 5
0
        public void GetAllValueForClientTwo(IWebDriver driver)
        {
            freshStart     = new FreshStartHome(driver);
            commonhelper   = new WebObjectFunctions(driver);
            newEnroll      = new NewEnrollClient(driver);
            myPipeline     = new MyPipeline(driver);
            apiHelper      = new CommonAPIHelper(driver);
            pipelineSearch = new PipelineSearch(driver);
            string freshStartUrl = ConfigurationManager.AppSettings["FreshStartUrl"];

            newEnroll.NavigateToNewClient(driver, ConfigurationManager.AppSettings["LoanForTwo"]);
            newEnroll.NavigateToClientOption(driver);
            newEnroll.SelectMutipleClient(driver);
            value = freshStart.FreshStartClientInfoClientTwoEmail_TextBox.GetAttribute("value");
            valueClientTwoFirstName = freshStart.FreshStartClientInfoClientTwoFirstName_TextBox.GetAttribute("value");
            valueClientTwoLastName  = freshStart.FreshStartClientInfoClientTwoLastName_TextBox.GetAttribute("value");
        }
Exemplo n.º 6
0
        public string findGCidFormSourceReferenceId(IWebDriver driver, string response)
        {
            Console.WriteLine(" The Gcid  is" + response);
            CommonAPIHelper      apiHelper = new CommonAPIHelper(driver);
            Mobius_ClientMapping lt        = apiHelper.ClientMappingResult(response);
            var gcid = lt.clientMappings;

            Console.WriteLine(" The Gcid  isXXXXXXX" + gcid);
            foreach (var i in gcid)
            {
                if (i.isActiveOnLoan && !i.isPrimaryBorrower)
                {
                    Console.WriteLine(" The Gcid  is" + i.sourceReferenceId.ToString());
                    return(i.sourceReferenceId.ToString());
                }
            }
            throw new InvalidOperationException("Did not find value expected.");
        }
 public static void Init(TestContext context)
 {
     testContext           = context;
     driver                = Driver.Initialize(testContext.Properties["BrowserIEName"].ToString());
     freshStart            = new FreshStartHome(driver);
     commonhelper          = new WebObjectFunctions(driver);
     newEnroll             = new NewEnrollClient(driver);
     myPipeline            = new MyPipeline(driver);
     apiHelper             = new CommonAPIHelper(driver);
     pipelineSearch        = new PipelineSearch(driver);
     clientSummarryApi     = new ClientSummaryAutoFill(driver);
     clientSummaryValue    = new ClientSummaryAutoFill(driver);
     clientSummarryApiOne  = new ClientSummaryAutoFill(driver);
     clientSummaryValueOne = new ClientSummaryAutoFill(driver);
     ApiUtilityFunction    = new APIUtilityFunctions(driver);
     clientSummaryValueOne.GetAllValueForClientOne(driver);
     clientSummarryApiOne.GetAllAPIForClientOne(driver);
     clientSummaryValue.GetAllValueForClientTwo(driver);
     clientSummarryApi.GetAllAPIForClientTwo(driver);
 }
Exemplo n.º 8
0
        public string findGCidFormGcidMappingItem(IWebDriver driver, string response)
        {
            Console.WriteLine(" The Gcid  is" + response);

            CommonAPIHelper  apiHelper = new CommonAPIHelper(driver);
            Mobius_LoanTable lt        = apiHelper.LoanResult(response);

            var gcid = lt.gcidMappings;

            Console.WriteLine(" The Gcid  is" + gcid);
            foreach (var i in gcid)
            {
                if (i.isPrimaryBorrower && i.isActiveOnLoan)
                {
                    Console.WriteLine(" The Gcid  is" + i.gcid.ToString());
                    return(i.gcid.ToString());
                }
            }
            throw new InvalidOperationException("Did not find value expected.");
        }