Forum Discussion

RKONDRU's avatar
RKONDRU
Occasional Contributor
13 years ago

multiple certificate/keystores per testcase

Hello,

I am looking for a solution like some other folks have asked. Is there a way to set the credentials / keystore (to use) differently per test case in soapUI (pro?)?

Here are a couple of references from the forums with no resolution:

http://www.soapui.org/forum/viewtopic.php?f=5&t=5776
http://www.soapui.org/forum/viewtopic.php?f=5&t=5620&p=17634

My initial thought was a custom groovy script in a test step to set up the keystore and the creds, but being a newbie to the API I could not find a way to access the SoapUI object from the teststep nor how to set the creds on the request via the API.

Specific advice or sample code is much appreciated.

Scott

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Scott,

    You can set different keystores for different requests by first adding the keystores to the certificates tab of the WS-Security Settings in the containing Projects' window and then specifying the desired keystore for each request in the Keystore property in the bottom left table of properties (the drop-down will be populated with the added certificates). The only limitation here is that your requests can not have the same URL, ie you can not have different certificates for multiple requests to the same endpoint.

    Hope this helps!

    regards,

    /Ole
    SmartBear Stockholm
    • harinadha's avatar
      harinadha
      Occasional Contributor

      Hi All,

       

      Any thoughts on, how to achieve the above scenario(Import multiple SSL files and select one for the test step) using Groovy?

       

      Thanks & Regards,

      Hari