예제 #1
0
        public void NavigationFromFundsToAssetSummary()
        {
            try
            {
                test = extent.CreateTest("NavigationFromFundsToAssetSummary").Info("Test Started");
                AssetSummaryPage funds = new AssetSummaryPage(BaseTest.driver);
                funds.SelectFundsFromDropdwon();
                funds.ClickAssetSummary();
                //Verify user navigates to property details from asset summary Fund A
                String title = funds.NavigateToPropertyDetails();
                Assert.AreEqual("Asset Summary", title, "User lands on Asset Summary Screen");
                Boolean res = funds.NavigateToAssetSummaryBack();
                Assert.IsTrue(res == true, "User does not navigated back to asset summary detail");

                //Verify user navigates to property details from asset summary Fund B
                String title1 = funds.NavigateToPropertyDetails();
                Assert.AreEqual("Asset Summary", title1, "User lands on Asset Summary Screen");
                Boolean res1 = funds.NavigateToAssetSummaryBack();
                Assert.IsTrue(res1 == true, "User does not navigated back to asset summary detail");
                test.Log(Status.Pass, "Test Case passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }