use of org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard in project product-iots by wso2.
the class AdminFunctionsTest method createUserTest.
@Test(description = "Test for creating a new user")
public void createUserTest() throws IOException {
IOTAdminDashboard adminDashboard = new IOTAdminDashboard(driver);
AddUserPage addUserPage = adminDashboard.addUser();
addUserPage.createNewUser("user1", "User", "User", "user@wso2.com");
}
use of org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard in project product-iots by wso2.
the class AdminFunctionsTest method deleteUserTest.
@Test(description = "Test for deleting a created user", dependsOnMethods = { "createUserTest" })
public void deleteUserTest() throws XPathExpressionException, IOException, InterruptedException {
driver.get(getWebAppURL() + Constants.IOT_HOME_URL);
IOTAdminDashboard adminDashboard = new IOTAdminDashboard(driver);
UserListingPage userListingPage = adminDashboard.viewUser();
userListingPage.deleteUser();
}
Aggregations