shantha_mh
6 years agoOccasional Contributor
WssCrypto
Do any one have any idea how to change the groovy script to use WssCrypto as the parameter type for setSslKeystore? Attached the script for my custom environments.
- 6 years ago
Thank you for the log.
Could not see any issue with the script and don't think any respective API(in latest version) is changed which you are using. Request you to followup with support only.
By the way, your script can be avoided so many if..else constructs with use of simple map as shown below:
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep def projectProperty = context.expand('${#Project#MyProp}') def map = [IMP1A_Secured : [IMP1A: 'hixdshtesters.jks'], IMP1B_Secured: [IMP1B: 'hixdshtesters.jks'], IMP2_Secured: [IMP2: 'hixdshtesters.jks'], AWS_Secured: ['AWS-IMP1A': 'hixdshtesters.jks'], DEV2_Secured: [DEV2: 'hixdshtesters.jks'], TEST2_Secured: [TEST2: 'hixdshtesters.jks'], TEST0_Secured: [TEST0: 'hixdshtesters.jks'], IMP0_Secured: [IMP0: 'hixdshtesters.jks'], HPProd_Secured: [HPProd: 'hixdshtesters.jks'], ProdPrime_Secured: [ProdPrime: 'prodkeystore.jks'] ] testSuite.testCaseList.each { kase -> kase.testStepList.findAll {it instanceof WsdlTestRequestStep}. each { def tempMap = map[projectProperty] tempMap.each { wss, store -> it.httpRequest.with { outgoingWss = wss sslKeystore = store } } } }