Create Add Auth Manager Profiles, set credentials, populate inherit method from Groovy Script
Hello the community,
I am trying to make a groovy script at project level in setup script tab to manage credentials. I would like writing a script to add differents profile and setting eachone to differents testsuite and all test cases nested in the testsuite, as the "Inherit From Parent" Method" does.
Let's take an example with a project containing 2 differents testsuites called respectively MyTestSuite1, and MyTestSuite2. Imagine that MyTestSuite1 and MyTestSuite2, each testsuite contain two differents testcases called MyTestCase1 and MyTestCase2.
I would like populating the AuthProfile created at the project level inside testcases (i.e, MyTestSuite1, MyTestCase1 and MyTestCase2 should use the same authentication, for instance "Profile1"; Idem, MyTestSuite2, MyTestCase1 and MyTestCase2 should use the other authentication profile, "Profile2".
I don't know which classes should I use inside my groovy script to achieve this purpose.
Any suggestions!? Thanks for your interest answering this question
Harold
Hi Harold,
You can start with the following articles:
How to change credentials for OAuth authorization profiles using Groovy?
How to change credentials for an auth profile using Groovy script?
And refer to the documentation: http://www.soapui.org/apidocs/overview-summary.html