cancel
Showing results for 
Search instead for 
Did you mean: 

How to add certificate in TestComplete in a SOAPui import

SOLVED
Highlighted
Occasional Contributor

How to add certificate in TestComplete in a SOAPui import

Hi there,

 

I have recently added my SOAPui projects in TestComplete (so I can run the automated test via Jenkins). My test cases from SOAPui were easily imported within TestComplete except for the certification. Within SOAPui you can easily set a keystore and incoming/outgoing WS security configuration. 

 

These certificates, unfortunately, are not used after import within TestComplete and I seem to be unable to add them somewhere.

 

Does anyone have an idea how to run my SOAPui tests WITH sll authentication via TestComplete?

 

 

Kind regards,
Ronald

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: How to add certificate in TestComplete in a SOAPui import

I have found out that while within SOAPui it is enough to simply assign the keystore, when running the tests via TestComplete the incoming WS configuration in SOAPui has to be configured as well.

At least this fixed the issue for me.

 

Thanks for the tips!

View solution in original post

5 REPLIES 5
Highlighted
Community Hero

Re: How to add certificate in TestComplete in a SOAPui import

Hi Ronald,

 

> set a keystore

If I remember it correctly, keystore in Java is just a file. So you should check in SoapUI what file contains required certificates and make this file to be accessible for SoapUI after the project is deployed by Jenkins to the test box.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Occasional Contributor

Re: How to add certificate in TestComplete in a SOAPui import

Thanks Alex,

I was thinking there should be an easier way...

SOAPui allows simple adding of certificates in keystores set in project settings menu. When I run my tests directly from here everything goes as expected. I have integrated my SOAPui projects within testComplete and I can easily run all test that go over http (no certificate). All other test that go over https where a certificate is needed fail due to missing client certificate.

I need a way to import the correct certificate(s) INSIDE the testcomplete project. 

I assume I need to add the certificate in the store and than with a script tell TC where the certificate is located... It is strange however since within SOAPui the certificates are inside my projects but apparently within TC they are not used.

 

Possible things that cross my mind:
1. file type of cert that TC can use (SOAPui accept .pfx files, so that's what I'm using).
2. location of cert. (does the certificate require to be located in a specific folder where TC can look for it)
3. adding of script and/or file within TC prior to any test so some kind of property is set first.

 

Any info will be appreciated.

Highlighted
Community Hero

Re: How to add certificate in TestComplete in a SOAPui import

TestComplete is simply the vehicle to use to execute the SOAPUI tests... that's how the integration works, as far as I know.  Anything that is related to the tests themselves (such as creating the certification) probably needs to be updated in the SOAPUI test directly.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Occasional Contributor

Re: How to add certificate in TestComplete in a SOAPui import

I have found out that while within SOAPui it is enough to simply assign the keystore, when running the tests via TestComplete the incoming WS configuration in SOAPui has to be configured as well.

At least this fixed the issue for me.

 

Thanks for the tips!

View solution in original post

Highlighted
Community Hero

Re: How to add certificate in TestComplete in a SOAPui import

Hi,

 

Good to hear that you solved the problem.

 

Just an attempt to make things more clear:

-- As it was mentioned by @tristaanogre, TestComplete does not have any special support for SoapUI. The integration means that TestComplete spawns SoapUI process and provides it with the SoapUI project name to execute. So everything required for SoapUI project to be executed must either be configured within the project itself or must be setup before the SoapUI process is spawned so that all required pieces of configuration are found on their expected locations.

-- TestComplete (primarily) emulates actions over tested application as executed by the end-user. Because for the regular user the certificate must be installed in the system within some sort of setup procedure, this is the reason why TestComplete does not require and does not provide any special support for neither keystores (that are Java-specific) nor other certificate storage types. If your test (in TestComplete, not in SoapUI/Selenium/etc.) really requires certificate install, this must be done according the procedure specific to the given certificate type.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors