How to change endpoint address for multiple tests?

34,810

Solution 1

Yes it is possible!

Double-click on your WSDL interface in the Navigator view on the left.

Then select the second tab called Service Endpoints. Select the desired endpoint (or add it first via the "+"-symbol) and click Assign. There you select All Requests and TestRequests.

Solution 2

You could also set up a 'centralized' endpoint prefix as described here: http://www.soapui.org/Functional-Testing/working-with-properties.html#4-example-n-centralized-endpoint

Solution 3

As far as I know there is no way to do this in soapUI itself. However you could try the following:

  • Save your project and close soapUI.
  • Open the XML file of your project in a text editor.
  • Search for <con:endpoint> which contains the URL for the endpoint.
  • Replace the endpoint in the text editor.

This, of course, only works if the endpoint you'd like to change is identical for all soapUI artefacts.

Share:
34,810
yura
Author by

yura

Text mining/Data mining/Search algorithm developer. Scala enthusiast.

Updated on August 19, 2020

Comments

  • yura
    yura almost 4 years

    I know how to change endpoint for each test, but I have 100+ tests so I would like to select project/all tests and say set new endpoint. Is it posible?

  • Robert Strauch
    Robert Strauch almost 13 years
    Wow, didn't know this though using soapUI Pro since version 2.x :-)
  • Wesley De Keirsmaeker
    Wesley De Keirsmaeker about 10 years
    FYI, the option 'All Requests and TestRequests' is in the top of the drop down menu. Because I had a fairly high list of endpoints, I didn't find it at first. Also, when launching a TestRunner you can override the endpoint there too.