public void DownLoadReportsFunds()
 {
     try
     {
         test = extent.CreateTest("DownLoadReportsFunds").Info("Test Started");
         AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
         //Verify download works for Fund A
         Thread.Sleep(3000);
         funds.SelectFundsFromDropdwon();
         funds.ClickAssetSummary();
         funds.DownloadReportForFunds();
         Thread.Sleep(3000);
         funds.ClickFundBTab();
         driver.Navigate().Refresh();
         funds.ClickAssetSummary();
         funds.DownloadReportForFunds();
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
         driver.Quit();
     }
 }
        public void verifyChangeViewWorksForFundA_B()
        {
            try
            {
                test = extent.CreateTest("verifyChangeViewWorksForFundA_B").Info("Test Started");
                AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
                funds.SelectFundsFromDropdwon();
                funds.ClickAssetSummary();
                //Verify user can switch to list view
                Boolean lview = funds.ChangeToListView();
                Assert.IsTrue(lview == true, "View not changed to list view");
                driver.Navigate().Refresh();
                Thread.Sleep(5000);

                //Verify switch view works on fund B
                funds.ClickFundBTab();
                driver.Navigate().Refresh();
                funds.ClickAssetSummary();
                Boolean cview = funds.ChangeToCardView();
                Assert.IsTrue(cview == true, "View not changed to card view");
                funds.ClickFundATab();
                test.Log(Status.Pass, "Test Case passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
 public void PerformanceSummaryForFundB()
 {
     try
     {
         test = extent.CreateTest("PerformanceSummaryForFundB").Info("Test Started");
         AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
         //Verification to confirm titles on Performance Summary for Fund B
         funds.ClickFundBTab();
         funds.ClickPerformanceSummary();
         var totalcommitment = funds.GetTotalCommitmentTitle();
         Assert.AreEqual("Total Commitment", totalcommitment, $"Expected:'Total Commitment' does not match Actual{totalcommitment}");
         var contributions = funds.GetContributionsTitle();
         Assert.AreEqual("Contribution", contributions, $"Expected:'Contribution' does not match Actual{contributions}");
         var distributions = funds.GetDistributionsTitle();
         Assert.AreEqual("Distributions", distributions, $"Expected:'Distributions' does not match Actual{distributions}");
         var unfundedcommitment = funds.GetUnfundedCommitmentTitle();
         Assert.AreEqual("Unfunded Commitment", unfundedcommitment, $"Expected:'Unfunded Commitment' does not match Actual{unfundedcommitment}");
         var accumulatedPref = funds.GetAccumulatedPrefTitle();
         Assert.AreEqual("Accumulated Pref", accumulatedPref, $"Expected:'Accumulated Pref' does not match Actual{accumulatedPref}");
         var currentCost = funds.GetCurrentCostOfCapitalTitle();
         Assert.AreEqual("Current Cost Of Capital", currentCost, $"Expected:'Current Cost Of Capital' does not match Actual{currentCost}");
         test.Log(Status.Pass, "Test Case passed");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
        public void SearchWorksForBothTheFunds()
        {
            try
            {
                test = extent.CreateTest("SearchWorksForBothTheFunds").Info("Test Started");
                AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
                //Verify search works on fund A
                funds.SelectFundsFromDropdwon();
                funds.ClickAssetSummary();
                int countbeforesearchA = funds.RowsBeforeSearch();
                int countaftersearchA  = funds.RowsafterSearchForProperty();
                Assert.IsTrue(countbeforesearchA > countaftersearchA, "Search does not work");

                //Verify search works on fund B
                funds.ClickFundBTab();
                driver.Navigate().Refresh();
                funds.ClickAssetSummary();
                int countbeforesearchB = funds.RowsBeforeSearch();
                int countaftersearchB  = funds.RowsafterSearchForProperty();
                Assert.IsTrue(countbeforesearchB > countaftersearchB, "Search does not work");
                test.Log(Status.Pass, "Test Case passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
Beispiel #5
0
 public void Debt_SortByOptionforBothTheFunds()
 {
     try
     {
         test = extent.CreateTest(" Debt_SortByOptionforBothTheFunds").Info("Test Started");
         DebtSummaryPage  debt  = new DebtSummaryPage(BaseTest.driver);
         AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
         //Verify download works for Fund A
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         debt.Debt_ClickOptionsInSortBy();
         Boolean desc = debt.Debt_SelectDescending();
         Assert.True(desc == true, "Descending does not work");
         Thread.Sleep(3000);
         //Verify Ascending works as expected
         Boolean Asc = debt.Debt_SelectAscending();
         Assert.True(Asc == true, "Ascending does not work");
         funds.ClickFundBTab();
         Thread.Sleep(3000);
         debt.Debt_ClickOptionsInSortBy();
         Boolean desc1 = debt.Debt_SelectDescending();
         Assert.True(desc1 == true, "Descending does not work");
         Thread.Sleep(3000);
         //Verify Ascending works as expected
         Boolean Asc1 = debt.Debt_SelectAscending();
         Assert.True(Asc1 == true, "Ascending does not work");
         test.Log(Status.Pass, "Test Case passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
Beispiel #6
0
 public void Debt_UserNavigatesToLoanAndbackToDebtFundB()
 {
     try
     {
         test = extent.CreateTest("Debt_VerifyChangeViewWorksForFundA_B").Info("Test Started");
         DebtSummaryPage  debt  = new DebtSummaryPage(BaseTest.driver);
         AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
         debt.ClickFundATabDebt();
         debt.ClickdebtSummary();
         funds.ClickFundBTab();
         String Screentitle = debt.NavigateToLoanDetails();
         Assert.AreEqual("Details", Screentitle, "User is not navigated to loan details");
         String debttab = debt.NavigateBackToDebt();
         Assert.AreEqual("DEBT SUMMARY", debttab, "User is not navigated to debt summary details");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
        public void VerifySortbyWorks()
        {
            try
            {
                test = extent.CreateTest("VerifySortbyWorks").Info("Test Started");
                AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
                funds.SelectFundsFromDropdwon();
                funds.ClickAssetSummary();
                //Verify Sort By for Fund A
                funds.ClickOptionsInSortBy();
                //Verify descending works as expected
                Boolean desc = funds.SelectDescending();
                Assert.True(desc == true, "Descending does not work");
                Thread.Sleep(3000);
                //Verify Ascending works as expected
                Boolean Asc = funds.SelectAscending();
                Assert.True(Asc == true, "Ascending does not work");

                //Verify sort by works for Fund B
                funds.ClickFundBTab();
                driver.Navigate().Refresh();
                funds.ClickAssetSummary();
                funds.ClickOptionsInSortBy();
                Boolean desc1 = funds.SelectDescending();
                Assert.True(desc1 == true, "Descending does not work");
                Boolean Asc1 = funds.SelectAscending();
                Assert.True(Asc1 == true, "Ascending does not work");
                test.Log(Status.Pass, "Test Case passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
Beispiel #8
0
        public void DownLoadDebtSummaryReportsForFunds()
        {
            try
            {
                test = extent.CreateTest("DownLoadDebtSummaryReportsForFunds").Info("Test Started");
                DebtSummaryPage  debt  = new DebtSummaryPage(BaseTest.driver);
                AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);

                //Verify download works for Fund A
                debt.ClickFundATabDebt();
                debt.ClickdebtSummary();
                debt.DownloadDebtReportForFundA();
                funds.ClickFundBTab();
                Thread.Sleep(3000);
                debt.DownloadDebtReportForFundB();
                test.Log(Status.Pass, "Test Case passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }