Search in sources :

Example 1 with DeviceAddGroupPage

use of org.wso2.iot.integration.ui.pages.groups.DeviceAddGroupPage in project product-iots by wso2.

the class DeviceGroupTest method addNewGroupTest.

@Test(description = "Test for adding a new device group.")
public void addNewGroupTest() throws IOException {
    DeviceAddGroupPage addGroupPage = adminDashboard.addGroup();
    addGroupPage.addNewGroup(Constants.GROUP_NAME, Constants.GROUP_DESCRIPTION);
}
Also used : DeviceAddGroupPage(org.wso2.iot.integration.ui.pages.groups.DeviceAddGroupPage) Test(org.testng.annotations.Test)

Example 2 with DeviceAddGroupPage

use of org.wso2.iot.integration.ui.pages.groups.DeviceAddGroupPage in project product-iots by wso2.

the class DeviceGroupFailTest method addNewGroupFailTest.

@Test(description = "Test for empty group name.")
public void addNewGroupFailTest() throws Exception {
    driver.get(getWebAppURL() + Constants.IOT_GROUP_ADD_URL);
    DeviceAddGroupPage addGroupPage = new DeviceAddGroupPage(driver);
    Assert.assertEquals(addGroupPage.submitEmptyForm(), Constants.GROUP_NAME_FIELD_ERROR);
}
Also used : DeviceAddGroupPage(org.wso2.iot.integration.ui.pages.groups.DeviceAddGroupPage) Test(org.testng.annotations.Test)

Aggregations

Test (org.testng.annotations.Test)2 DeviceAddGroupPage (org.wso2.iot.integration.ui.pages.groups.DeviceAddGroupPage)2