def projectProperty = testSuite.project.getPropertyValue( "MyProp" ) import com.eviware.soapui.support.types.StringToStringMap testCaseList = testSuite.getTestCases() testCaseList.each { testCase = testSuite.getTestCaseByName(it.key) wsdlTestSteps = testCase.getTestStepsOfType( com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.class ) //only WsdlTestRequest steps wsdlTestSteps.each { if (projectProperty == "IMP1A_Secured" ) { it.getHttpRequest().setOutgoingWss("IMP1A") it.testRequest.setSslKeystore("hixdshtesters.jks") } else if (projectProperty == "IMP1B_Secured" ) { it.getHttpRequest().setOutgoingWss("IMP1B") it.testRequest.setSslKeystore("hixdshtesters.jks") } else if (projectProperty == "IMP2_Secured" ) { it.getHttpRequest().setOutgoingWss("IMP2") it.testRequest.setSslKeystore("hixdshtesters.jks") } else if (projectProperty == "AWS_Secured" ) { it.getHttpRequest().setOutgoingWss("AWS") it.testRequest.setSslKeystore("hixdshtesters.jks") } else if (projectProperty == "DEV2_Secured" ) { it.getHttpRequest().setOutgoingWss("DEV2") it.testRequest.setSslKeystore("hixdshtesters.jks") } else if (projectProperty == "TEST2_Secured" ) { it.getHttpRequest().setOutgoingWss("TEST2") it.testRequest.setSslKeystore("hixdshtesters.jks") } else if (projectProperty == "TEST0_Secured" ) { it.getHttpRequest().setOutgoingWss("TEST0") it.testRequest.setSslKeystore("hixdshtesters.jks") } else if (projectProperty == "IMP0_Secured" ) { it.getHttpRequest().setOutgoingWss("IMP0") it.testRequest.setSslKeystore("hixdshtesters.jks") } else if (projectProperty == "HPProd_Secured" ) { it.getHttpRequest().setOutgoingWss("HPProd") it.testRequest.setSslKeystore("prodkeystore.jks") } else if (projectProperty == "HPProd_Secured" ) { it.getHttpRequest().setOutgoingWss("ProdPrime") it.testRequest.setSslKeystore("prodkeystore.jks") } else { it.getHttpRequest().setOutgoingWss("") it.testRequest.setSslKeystore("") } } }