Forum Discussion
TanyaYatskovska
6 years agoSmartBear Alumni (Retired)
- CrazyFrog6 years agoContributor
Hello casp8
First you need to add a keystore to your project, you can do this with the following code:
DefaultWssContainer wssContainer = wsdlOperation.getProject().getWssContainer();
wssContainer.addCrypto([KEYSTORE_PATH] + [certificateName],[password], CryptoType.KEYSTORE);With this way you can add multiple certificates to your keystore.
After this you can select for every teststep a different keystore.
I use the following code therefore:
public static void addCertificateToTeststep(WsdlTestRequestStep testStep, String certificateName){
testStep.getTestRequest().setSslKeystore(certificateName);
}regards,
CrazyFrog :)
Related Content
- 9 years ago
Recent Discussions
- 19 days ago