Search in sources :

Example 1 with DevicesPage

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

the class SampleEnrolmentVerificationTest method setUp.

@BeforeClass(alwaysRun = true)
public void setUp() throws XPathExpressionException, XMLStreamException, IOException {
    super.init();
    webDriver = BrowserManager.getWebDriver();
    LoginUtils.login(webDriver, automationContext, getWebAppURL());
    webDriver.get(getWebAppURL() + Constants.IOT_DEVICES_URL);
    devicesPage = new DevicesPage(webDriver);
}
Also used : DevicesPage(org.wso2.iot.integration.ui.pages.devices.DevicesPage) BeforeClass(org.testng.annotations.BeforeClass)

Example 2 with DevicesPage

use of org.wso2.iot.integration.ui.pages.devices.DevicesPage 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

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