use of org.wso2.iot.integration.ui.pages.home.IOTHomePage in project product-iots by wso2.
the class NewUserRegistrationTest method userRegisterTest.
@Test(description = "Verify new User registration")
public void userRegisterTest() throws IOException {
LoginPage login = new LoginPage(driver);
NewUserRegisterPage registerTest = login.registerNewUser();
LoginPage loginPage = registerTest.registerUser(Constants.User.Register.FIRST_NAME, Constants.User.Register.LAST_NAME, Constants.User.Register.EMAIL, Constants.User.Register.USER_NAME, Constants.User.Register.PASSWORD, Constants.User.Register.CONFIRM_PASSWORD);
IOTHomePage homePage = loginPage.loginAsUser(Constants.User.Register.USER_NAME, Constants.User.Register.PASSWORD);
Assert.assertTrue(homePage.checkUserName());
}
use of org.wso2.iot.integration.ui.pages.home.IOTHomePage in project product-iots by wso2.
the class NewUserRegistrationTest method logoutTest.
@Test(description = "Test user logout function", dependsOnMethods = { "userRegisterTest" })
public void logoutTest() throws IOException {
IOTHomePage homePage = new IOTHomePage(driver);
homePage.logout();
Assert.assertEquals(driver.getTitle(), Constants.User.Login.PAGE_TITLE);
}
Aggregations