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