Forum Discussion

MLumley's avatar
MLumley
Visitor
8 years ago

How do I / can I use different certificates for different test cases??

 

Hi,

 

I'm using Ready API 1.6.0 and SOAPUI NG.  I'm pretty new to SOAP UI, so still learning my way.

 

I have a test suite that is sending xml request messages to a defined endpoint service i.e. s2sTest.co.uk, where the message contains an Identifier( (i.e. Userid1) that is validated back to a given certificate i.e. (alias 1005).


I have got as far as creating a test suite of messages and creating a Certificate in the OutGoing WS Security Configurations for at least one Identifier and Certificate combination.

This entry has its own WSS entry linking to a appropirate keystore for the certificate I am using for the majority of my tests.

There is an entry in the Keystore too for  i.e. ..Test Certificates\TESTFEP_1005.pfx  (default alias 1005).

 

This runs on Multiple test cases, Great!

 

 

What I need to achieve now, is the ability to send requests to the same endpoint, to be able to use different certificates for the requests in individual test cases. 

i.e.

Test Case 1
Service endpoint: https://s2sTest.co.uk

Method: Buy
Identifer with xml : USerid 1 (that is associated to Certificate 1005)

 

Test Case 1
Service endpoint: https://s2sTest.co.uk

Method: Buy
Identifer with xml : USerid 2 (that is associated to Certificate 1008)

 

How do I go about achieving this????

I have added the second certificate WS Security Configurations and simarily a Keystore for 1008 , similar to before, but can not see how it would know to use this certificate for a given test, or how to link it.

 

Preferences SSL Keystore is defined as the keystore associated to the first certificate i.e. ..........Test Certificates\TESTFEP_1005.pfx, so is what I want to do even possible?

 

Any help would be much appreciated.

 

No RepliesBe the first to reply