Search in sources :

Example 1 with IOTAdminDashboard

use of org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard in project product-iots by wso2.

the class DeviceGroupTest method setup.

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

Example 2 with IOTAdminDashboard

use of org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard in project product-iots by wso2.

the class LoginTest method testAdminLogin.

@Test(description = "Verify logins to IOT server dashboard")
public void testAdminLogin() throws IOException, XPathExpressionException {
    LoginPage loginPage = new LoginPage(driver);
    IOTAdminDashboard dashboard = loginPage.loginAsAdmin(automationContext.getSuperTenant().getTenantAdmin().getUserName(), automationContext.getSuperTenant().getTenantAdmin().getPassword());
    dashboard.logout();
}
Also used : LoginPage(org.wso2.iot.integration.ui.pages.login.LoginPage) IOTAdminDashboard(org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard) Test(org.testng.annotations.Test)

Example 3 with IOTAdminDashboard

use of org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard in project product-iots by wso2.

the class SampleInstallationVerification method setup.

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

Example 4 with IOTAdminDashboard

use of org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard 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)

Example 5 with IOTAdminDashboard

use of org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard in project product-iots by wso2.

the class PolicyTest method setup.

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

Aggregations

IOTAdminDashboard (org.wso2.iot.integration.ui.pages.home.IOTAdminDashboard)7 BeforeClass (org.testng.annotations.BeforeClass)4 Test (org.testng.annotations.Test)3 EnrollDevicePage (org.wso2.iot.integration.ui.pages.devices.EnrollDevicePage)1 LoginPage (org.wso2.iot.integration.ui.pages.login.LoginPage)1 AddUserPage (org.wso2.iot.integration.ui.pages.uesr.AddUserPage)1 UserListingPage (org.wso2.iot.integration.ui.pages.uesr.UserListingPage)1