Exemplo n.º 1
0
 public void IMTRSoldDeals_VerifyListViewColumnLabels()
 {
     try
     {
         test = extent.CreateTest("IMTRSoldDeals_VerifyListViewColumnLabels").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         IMTRLandingPage    imtr       = new IMTRLandingPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickTrackRecordOption();
         imtr.ClickSoldDeals();
         imtr.ChangeToListView();
         String label1 = imtr.ReturnListViewColumnLabel1();
         String label2 = imtr.ReturnListViewColumnLabel2();
         String label3 = imtr.ReturnListViewColumnLabel3();
         String label4 = imtr.ReturnListViewColumnLabel4();
         String label5 = imtr.ReturnListViewColumnLabel5();
         String label6 = imtr.ReturnListViewColumnLabel6();
         String label7 = imtr.ReturnListViewColumnLabel7();
         Assert.IsTrue(label1 == "Property Name", $"Expected:'Property Name' does not match Actual:{label1}");
         Assert.IsTrue(label2 == "Market", $"Expected:'Market' does not match Actual:{label2}");
         Assert.IsTrue(label3 == "Co-Investor", $"Expected:'C-Investor' does not match Actual:{label3}");
         Assert.IsTrue(label4 == "Property Type", $"Expected:'Property Type' does not match Actual:{label4}");
         Assert.IsTrue(label5 == "Disposition Date", $"Expected:'Disposition Date' does not match Actual:{label5}");
         Assert.IsTrue(label6 == "RSF", $"Expected:'RSF' does not match Actual:{label6}");
         Assert.IsTrue(label7 == "Sold Price", $"Expected:'Sold Price' does not match Actual:{label7}");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }