Setting up HTTP Basic Authentication for all requests

DisscCoder picture DisscCoder · Aug 23, 2011 · Viewed 55.2k times · Source

Is there a way to set up HTTP Basic Authentication for all requests in a SoapUI project?

I know it can be done for all requests within a TestSuite but I cant figure out how to do it for all requests in all TestSuites.

Answer

goku_da_master picture goku_da_master · Oct 27, 2014

In SOAPUI 5.0 or higher, you can set it on the basicHttpBinding of your service from the Navigation window on the left (I think it's the interface) (it's the parent of all your methods and direct child of the project).

Right click on the interface name and choose "Show Interface Viewer". Then go to the "Service Endpoints" tab. Put your authentication info there. Now you don't have to specify authentication for every method in your service.

After entering the credentials, you need to assign to your requests. (Button "Assign" below the tabs)