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 PerformanceSummaryForFundA() { try { test = extent.CreateTest("PerformanceSummaryForFundA").Info("Test Started"); AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver); //Verification user lands on Fund A, performance Summary when logged in var checkfunda = funds.UserLandsOnFundPortfolioSummary(); Assert.IsTrue(checkfunda == true, "Login Unsuccessful"); //Verification first four titles show correct values 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"); } catch (Exception e) { test.Log(Status.Fail, "Test Case Failed"); baseTest.TakeScreenshot(); Console.WriteLine(e.StackTrace); } }