From eb77b572e7537139c98fa4328d31bc309ff6a291 Mon Sep 17 00:00:00 2001 From: Menaka Madushanka Date: Mon, 14 Mar 2016 12:28:03 +0530 Subject: [PATCH] Fixes --- .../ui/pages/samples/ConnectedCupDeviceViewPage.java | 2 ++ .../carbon/iot/integration/web/ui/test/common/Constants.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/integration/tests-common/web-ui-pages/src/main/java/org/wso2/iot/integration/ui/pages/samples/ConnectedCupDeviceViewPage.java b/modules/integration/tests-common/web-ui-pages/src/main/java/org/wso2/iot/integration/ui/pages/samples/ConnectedCupDeviceViewPage.java index 61c14b72..ce3fb960 100644 --- a/modules/integration/tests-common/web-ui-pages/src/main/java/org/wso2/iot/integration/ui/pages/samples/ConnectedCupDeviceViewPage.java +++ b/modules/integration/tests-common/web-ui-pages/src/main/java/org/wso2/iot/integration/ui/pages/samples/ConnectedCupDeviceViewPage.java @@ -31,6 +31,7 @@ import org.wso2.iot.integration.ui.pages.graphs.GraphHandler; import java.io.IOException; import java.util.HashMap; +import java.util.concurrent.TimeUnit; /** * This class represents the Connected cup device view page. @@ -162,6 +163,7 @@ public class ConnectedCupDeviceViewPage { */ public boolean checkGraphValues(String graphId, String value) { WebElement graph = handler.getGraphById(graphId); + driverServer.manage().timeouts().implicitlyWait(UIUtils.webDriverTime, TimeUnit.SECONDS); if (graph != null) { return handler.isPathGetValues(graph, value); } else { diff --git a/modules/integration/tests-iot-web-ui/src/test/java/org/wso2/carbon/iot/integration/web/ui/test/common/Constants.java b/modules/integration/tests-iot-web-ui/src/test/java/org/wso2/carbon/iot/integration/web/ui/test/common/Constants.java index aeb3fe50..d5cc5726 100644 --- a/modules/integration/tests-iot-web-ui/src/test/java/org/wso2/carbon/iot/integration/web/ui/test/common/Constants.java +++ b/modules/integration/tests-iot-web-ui/src/test/java/org/wso2/carbon/iot/integration/web/ui/test/common/Constants.java @@ -71,7 +71,7 @@ public class Constants { public static final int IOT_RESTART_THREAD_TIMEOUT = 30; - public static final String IOT_CONNECTED_CUP_LEVEl = "75"; + public static final String IOT_CONNECTED_CUP_LEVEl = "35"; public static final String IOT_CONNECTED_CUP_TEMPERATURE = "53"; public static final String IOT_GRAPH_X_AXIS = "x";