Forum Discussion

AnandKiran's avatar
AnandKiran
Frequent Contributor
16 years ago

How to set TestSuite Properties from Groovy

Hi,

I want to update the Property value in a Testsuite .

For updating the Global Property I have used the following code

com.eviware.soapui.SoapUI.globalProperties["abc"].value = Value

Can any one provide me the groovy script for updating the properties declared in Testsuite level??

Regards
Anand

3 Replies

  • Hi Anand,
        You can use following piece of code in the groovy script:

    testRunner.testCase.testSuite.setPropertyValue("abc",yourValue);


    regards
      depeche
  • Nisha_Shah's avatar
    Nisha_Shah
    Occasional Contributor
    Hello depeche,

    Thanks for posting this tip. I just used it and it worked for me too.

    Nisha