Search in sources :

Example 1 with EnrollDevicePage

use of org.wso2.iot.integration.ui.pages.devices.EnrollDevicePage in project product-iots by wso2.

the class SampleInstallationVerification method installationVerificationTest.

@Test(description = "Verify the sample is available in Virtual devices section.", groups = Constants.TestSample.INSTALL_VERIFY, dependsOnGroups = Constants.TestSample.SAMPLE_INSTALL)
public void installationVerificationTest() throws IOException {
    EnrollDevicePage enrollDevicePage = adminDashboard.enrollNewDevice();
    Assert.assertTrue(enrollDevicePage.isInstalled());
}
Also used : EnrollDevicePage(org.wso2.iot.integration.ui.pages.devices.EnrollDevicePage) Test(org.testng.annotations.Test)

Example 2 with EnrollDevicePage

use of org.wso2.iot.integration.ui.pages.devices.EnrollDevicePage in project product-iots by wso2.

the class SampleEnrollmentTest method setup.

@BeforeClass(alwaysRun = true)
public void setup() throws XPathExpressionException, XMLStreamException, IOException {
    super.init();
    driver = BrowserManager.getWebDriver();
    LoginUtils.login(driver, automationContext, getWebAppURL());
    IOTAdminDashboard adminDashboard = new IOTAdminDashboard(driver);
    EnrollDevicePage enrollDevicePage = adminDashboard.enrollNewDevice();
    connectedCupDeviceTypeViewPage = enrollDevicePage.gotoConnectedCupDeviceTypeViewPage();
}
Also used : EnrollDevicePage(org.wso2.iot.integration.ui.pages.devices.EnrollDevicePage) IOTAdminDashboard(org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

EnrollDevicePage (org.wso2.iot.integration.ui.pages.devices.EnrollDevicePage)2 BeforeClass (org.testng.annotations.BeforeClass)1 Test (org.testng.annotations.Test)1 IOTAdminDashboard (org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard)1