Forum Discussion

phanisrikar's avatar
phanisrikar
Contributor
13 years ago

Testing REST services with authentication from SOAPUI Pro

Hi,

We have a requirement to test REST services from SOAPUI Pro.

Initially we have a login window, like EntityManage. once you login then we will be able to access the REST services.

when I try to replicate the same from soapui, I struck up at the login page itself. this is similar to oauth authentication.

eg :

1 URL : http://SERVERNAME:5020/
after login
2 URL :http://SERVERBANE:5020/ui when will show all the rest services.

there after with the combination of key / secret encrypted values, Im supposed to access the rest services
Eg: 3 http://SERVERNAME:5020/ui/META

Everything described above has to be done from SOAPUI
When I hit the URL from soapui I get only login page. Im unable to pass the login credentials to the URL to login and continue further.

Does anyone worked on REST services with initial authentication ?

Need help

Thanks,
Phani

4 Replies

  • MauraR's avatar
    MauraR
    Occasional Contributor
    Hi, I have the same scenario. Did you ever get resolution for this?

    Basically, I have the WADL but it can only be accessed by an authenticated user.

    Please help.

    Thanks!
  • bmambou's avatar
    bmambou
    New Contributor
    I am experimenting the same problem. Is someone could help ? Phani, have figured out what's going on with your soapui tests ?
  • Hi Guys,

    Sorry for the late reply.

    If the REST services are wrapped with oauth1.0 authentication. We need to generate the Authorization header with the help of Key/Secret values, as descrived in the below article.

    http://xebee.xebia.in/2011/03/31/test-o ... ng-soapui/

    After generating the authorization header, include the variable as "Authorization" in the REST request test step, then the REST method can be invoked successfully.

    Thanks
    Phani