Reputation: 5487
I have a Rest Project generated from a WADL, that contains tens of resources. The whole API domain requires authentication (using the same username and password for every resource): how do I share the credentials among all the resources?
So far I managed to set the username and password for each request (by using the Auth button at the bottom of the request window), but this means I have to set the credentials for each resources I'm going to query.
I found that the "service" entry in the project tree has a "Service Viewer" where, inside the Service Endpoints tab, I can enter username and password, but these do not seem to be used anywhere in my requests.
Upvotes: 1
Views: 2752
Reputation: 104
Any thing that needs to be Shared can be set as properties at different levels.
You can refer these properties in the UserName and Password Textbox as
${#Project#UserName}
${#Project#Password}
If you are wondering that password field is showing dots so relax SoapUI will take care of it,although I could not test it but below is the screen shot of my Project XML file.
I hope this will help and should work fine.
Upvotes: 3