Skip to content

Commit

Permalink
Merge pull request #656 from azinneera/scenario-names
Browse files Browse the repository at this point in the history
Fix duplicated test scenarios
  • Loading branch information
harshanL committed Apr 6, 2018
2 parents c20c171 + 137fde3 commit 43597bb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,16 @@ public void execute(TestPlan testPlan, InfrastructureConfig infrastructureConfig
* @param deploymentCreationResult the result of the previous build step
*/
private void runScenarioTests(TestPlan testPlan, DeploymentCreationResult deploymentCreationResult) {

/* Set dir for scenarios from values matched from test-plan yaml file */
for (TestScenario testScenario : testPlan.getScenarioConfig().getScenarios()) {
for (TestScenario testScenario1 : testPlan.getTestScenarios()) {
if (testScenario.getName().equals(testScenario1.getName())) {
testScenario1.setDir(testScenario.getDir());
}
}
}
for (TestScenario testScenario : testPlan.getTestScenarios()) {
try {
scenarioExecutor.execute(testScenario, deploymentCreationResult, testPlan);
} catch (Exception e) {
Expand Down

0 comments on commit 43597bb

Please sign in to comment.