Search in sources :

Example 6 with IOTAdminDashboard

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");
}
Also used : AddUserPage(org.wso2.iot.integration.ui.pages.uesr.AddUserPage) IOTAdminDashboard(org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard) Test(org.testng.annotations.Test)

Example 7 with IOTAdminDashboard

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();
}
Also used : UserListingPage(org.wso2.iot.integration.ui.pages.uesr.UserListingPage) IOTAdminDashboard(org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard) Test(org.testng.annotations.Test)

Aggregations

IOTAdminDashboard (org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard)7 BeforeClass (org.testng.annotations.BeforeClass)4 Test (org.testng.annotations.Test)3 EnrollDevicePage (org.wso2.iot.integration.ui.pages.devices.EnrollDevicePage)1 LoginPage (org.wso2.iot.integration.ui.pages.login.LoginPage)1 AddUserPage (org.wso2.iot.integration.ui.pages.uesr.AddUserPage)1 UserListingPage (org.wso2.iot.integration.ui.pages.uesr.UserListingPage)1