Search in sources :

Example 1 with ConnectedCupDeviceInterface

use of org.wso2.iot.integration.ui.pages.samples.ConnectedCupDeviceInterface in project product-iots by wso2.

the class SampleEnrolmentVerificationTest method sampleStartUpTest.

@Test(description = "Verify sample functions", dependsOnMethods = { "verifyNavigationTest" })
public void sampleStartUpTest() throws IOException {
    ConnectedCupDeviceInterface sampleViewPage = connectedCupDeviceViewPage.gotoDevice();
    Assert.assertNotNull(sampleViewPage);
}
Also used : ConnectedCupDeviceInterface(org.wso2.iot.integration.ui.pages.samples.ConnectedCupDeviceInterface) Test(org.testng.annotations.Test)

Example 2 with ConnectedCupDeviceInterface

use of org.wso2.iot.integration.ui.pages.samples.ConnectedCupDeviceInterface in project product-iots by wso2.

the class SampleFunctionalityTest method setUp.

@BeforeClass(alwaysRun = true)
public void setUp() throws XPathExpressionException, XMLStreamException, IOException {
    super.init();
    driverDevice = BrowserManager.getWebDriver();
    driverServer = BrowserManager.getWebDriver();
    LoginUtils.login(driverServer, automationContext, getWebAppURL());
    driverServer.get(getWebAppURL() + Constants.IOT_DEVICES_URL);
    DevicesPage devicesPage = new DevicesPage(driverServer);
    deviceViewPage = devicesPage.viewDevice(Constants.IOT_CONNECTED_CUP_NAME);
    // Opens the connected cup device interface in the browser.
    driverDevice.get(deviceViewPage.getDeviceLink());
    sampleViewPage = new ConnectedCupDeviceInterface(driverDevice);
}
Also used : DevicesPage(org.wso2.iot.integration.ui.pages.devices.DevicesPage) ConnectedCupDeviceInterface(org.wso2.iot.integration.ui.pages.samples.ConnectedCupDeviceInterface) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

ConnectedCupDeviceInterface (org.wso2.iot.integration.ui.pages.samples.ConnectedCupDeviceInterface)2 BeforeClass (org.testng.annotations.BeforeClass)1 Test (org.testng.annotations.Test)1 DevicesPage (org.wso2.iot.integration.ui.pages.devices.DevicesPage)1