@Test(priority = 1) public void testLogintoArthaYantra() { logger.debug("testLogintoArthaYantra is being executed"); Loginpage loginpage = this.launchArthaYatra(); HomePage homePage = loginpage.loginToArthaYantra(username, password); Assert.assertNotNull(homePage, "Home page is not displayed, login is not succesfull"); }
@Test(priority = 4) public void testVerifyManageOptions() { logger.info("testVerifyManageOptions is being executed"); Loginpage loginpage = this.launchArthaYatra(); HomePage homePage = loginpage.loginToArthaYantra(username, password); Assert.assertNotNull(homePage, "Home page is not displayed, login is not succesfull"); ManagePage manageSection = homePage.clickManageSection(); Assert.assertNotNull(manageSection, "Plan Section page is not displayed"); Assert.assertTrue( manageSection.verifyManagePageDisplay(), "Manage section page options are not displayed"); }