diff --git a/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/extensions/CarbonServerManagerExtension.java b/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/extensions/CarbonServerManagerExtension.java index cbf21428..cc7f1576 100644 --- a/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/extensions/CarbonServerManagerExtension.java +++ b/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/extensions/CarbonServerManagerExtension.java @@ -106,16 +106,20 @@ public class CarbonServerManagerExtension { .automationContext.getInstance().getHosts().get("default")); long time = System.currentTimeMillis() + 60000L; - while(true) { - if(this.inputStreamHandler.getOutput().contains("Mgt Console URL") || System.currentTimeMillis() >= time) { - int httpsPort = defaultHttpsPort + this.portOffset; - String backendURL = this.automationContext.getContextUrls().getSecureServiceUrl().replaceAll("(:\\d+)", ":" + httpsPort); - User superUser = this.automationContext.getSuperTenant().getTenantAdmin(); - ClientConnectionUtil.waitForLogin(backendURL, superUser); - log.info("Server started successfully."); - break; - } - } +// while(true) { +// if(this.inputStreamHandler.getOutput().contains("Mgt Console URL") || System.currentTimeMillis() >= time) { +// int httpsPort = defaultHttpsPort + this.portOffset; +// String backendURL = this.automationContext.getContextUrls().getSecureServiceUrl().replaceAll("(:\\d+)", ":" + httpsPort); +// User superUser = this.automationContext.getSuperTenant().getTenantAdmin(); +// ClientConnectionUtil.waitForLogin(backendURL, superUser); +// log.info("Server started successfully."); +// break; +// } +// } + int httpsPort = defaultHttpsPort + this.portOffset; + String backendURL = this.automationContext.getContextUrls().getSecureServiceUrl().replaceAll("(:\\d+)", ":" + httpsPort); + User superUser = this.automationContext.getSuperTenant().getTenantAdmin(); + ClientConnectionUtil.waitForLogin(backendURL, superUser); } catch (XPathExpressionException | IOException var13) { throw new IllegalStateException("Unable to start server", var13); } @@ -212,9 +216,9 @@ public class CarbonServerManagerExtension { long time = System.currentTimeMillis() + 300000L; - while(!this.inputStreamHandler.getOutput().contains("Halting JVM") && System.currentTimeMillis() < time) { - ; - } +// while(!this.inputStreamHandler.getOutput().contains("Halting JVM") && System.currentTimeMillis() < time) { +// ; +// } log.info("Server stopped successfully..."); } @@ -261,9 +265,9 @@ public class CarbonServerManagerExtension { long time = System.currentTimeMillis() + 300000L; - while(!this.inputStreamHandler.getOutput().contains("Halting JVM") && System.currentTimeMillis() < time) { - ; - } +// while(!this.inputStreamHandler.getOutput().contains("Halting JVM") && System.currentTimeMillis() < time) { +// ; +// } time = System.currentTimeMillis(); diff --git a/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java b/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java index 1e729462..3f5ea20f 100644 --- a/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java +++ b/modules/integration/tests-integration/src/test/java/org/wso2/iot/integration/mobileDevice/MobileDeviceManagementWithNoDevices.java @@ -60,8 +60,7 @@ public class MobileDeviceManagementWithNoDevices extends TestBase { TimeUnit.SECONDS.sleep(5); long WAIT_TIME = 40000; if (System.currentTimeMillis() - startTime > WAIT_TIME) { - Assert.fail("Required APIs are not deployed after waiting for " + WAIT_TIME + " ms time-out has " - + "happened"); + Assert.fail("Required APIs are not deployed after waiting for " + WAIT_TIME + " time-out has happened"); } } } diff --git a/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPIAdditionalPermutations.jmx b/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPIAdditionalPermutations.jmx index 34738b5d..36b5ede2 100644 --- a/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPIAdditionalPermutations.jmx +++ b/modules/integration/tests-integration/src/test/resources/jmeter-scripts/AndroidDeviceManagementAPIAdditionalPermutations.jmx @@ -1,5 +1,5 @@ - + @@ -10206,7 +10206,15 @@ vars.put("base64encodedId",new String(encryptedId)); - + + + false + 100 + = + true + limit + + ${host} ${https_port}