Forum Discussion

Amit_Gandhi's avatar
Amit_Gandhi
New Contributor
14 years ago

How to set credentials for all requests at TestCase level

Hi,

I have a list of teststeps under a testcase. I need to set the credentials(username/password) at the testcase level.i do have a option in SOAPUI GUI to set the credentials at testcase level and it applies to all teststeps in the testcase.but my requirement is to set the credentials(username/password) at the testcase level using Groovy to make it dynamic at runtime to pick the username/password from the external source.

Could you please give us the list of SOAPUI API's and way to achieve the result.

Thanks,
Senthil Kumar S

3 Replies

  • Hello!

    It sounds to me like you want to set two testcase properties (username and password) in a Groovy script (learn how to do it here).

    Then to get the external values, you probably want to use Datasources.

    Regards

    Henrik
    SmartBear Stockholm
  • Hi Henrik,

    Thanks for the reply..it worked for me..

    Thanks,
    Senthilkumar S