diff --git a/deployment/src/main/java/org/wso2/testgrid/deployment/DeploymentUtil.java b/deployment/src/main/java/org/wso2/testgrid/deployment/DeploymentUtil.java index 128d6151b..beee5a1c0 100755 --- a/deployment/src/main/java/org/wso2/testgrid/deployment/DeploymentUtil.java +++ b/deployment/src/main/java/org/wso2/testgrid/deployment/DeploymentUtil.java @@ -54,6 +54,12 @@ public static DeploymentCreationResult getDeploymentCreationResult(String worksp ObjectMapper mapper = new ObjectMapper(); File file = new File(Paths.get(workspace, DeployerConstants.DEPLOYMENT_FILE).toString()); try { + if (!file.exists()) { + logger.warn("The deployment.json file was not found at: " + file.getPath() + ". This is where the " + + "deployment creation outputs are stored. Continuing without the deployment outputs."); + return deploymentCreationResult; + } + List hostList = mapper.readValue(file, DeploymentCreationResult.class).getHosts(); /* JMeter test files has the values for the host and ports as two properties. In order to replace * the values, the serverHost and serverPort has to be set as two different hosts. diff --git a/test-scripts/local-is-deployment/Solutions/solution01/jmeter/01-TestIS540.jmx b/test-scripts/local-is-deployment/Solutions/solution01/jmeter/01-TestIS540.jmx index 335181dbe..9e1a3597e 100644 --- a/test-scripts/local-is-deployment/Solutions/solution01/jmeter/01-TestIS540.jmx +++ b/test-scripts/local-is-deployment/Solutions/solution01/jmeter/01-TestIS540.jmx @@ -1,5 +1,5 @@ - + @@ -51,15 +51,51 @@ - IS540 + WSO2 Carbon Server1 - Assertion.response_data + Assertion.response_headers false 2 all + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + true + false + true + true + false + false + false + true + 0 + true + true + true + true + true + + + jmeter-results.jtl + + diff --git a/test-scripts/local-is-deployment/testgrid.yaml b/test-scripts/local-is-deployment/testgrid.yaml index e97a4a3e6..65be7109b 100644 --- a/test-scripts/local-is-deployment/testgrid.yaml +++ b/test-scripts/local-is-deployment/testgrid.yaml @@ -42,7 +42,7 @@ scenarioConfig: scenarios: - name: 'Test scenario 01' description: 'Test scenario 01' - dir: scenario01 + dir: solution01 deploymentConfig: deploymentPatterns: - name: 01-local-is-deployment