コード例 #1
0
 public void UpdateEquitiesAndConfirmTotalReturns()
 {
     try
     {
         test = extent.CreateTest("UpdateEquitiesAndConfirmTotalReturns").Info("Test Started");
         IMTRLandingPage         imtr            = new IMTRLandingPage(BaseTest.driver);
         IMTRPropertyDetailsPage imtrPropdetails = new IMTRPropertyDetailsPage(BaseTest.driver);
         imtr.ClickTrackRecordOnInMenu();
         Thread.Sleep(3000);
         imtr.ClickOngoingDeals();
         imtr.NavigateToIMTRPropDetail();
         imtrPropdetails.EditAndInvestorEquity();
         imtrPropdetails.EditAndUpdate3rdPartyEquity();
         imtrPropdetails.EditAndUpdateSponsorReturns();
         String res = imtrPropdetails.CheckTotalReturns();
         Assert.IsTrue(res == "15,000", "Sum of equities is not correct");
         test.Log(Status.Pass, "Test Case Passed");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }