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);
}
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);
}
Aggregations