Forum Discussion

divman's avatar
divman
Contributor
10 years ago

Resolved: How to get list of all global properties?

Hi,

I need to get the list of all global properties available. Could anyone can help me?

For getting properties in test case i use ... "for(prop in context.testRunner.testCase.properties)". likewise how to get for global properties?

I tried below, but getting an error..

log.info com.eviware.soapui.model.propertyexpansion.PropertyExpansionUtils.GlobalPropertyExpansionContext.getPropertyNames()

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Try this,

    def globalProperty = com.eviware.soapui.SoapUI.globalProperties.getPropertyNames()


    for (prop in globalProperty){
    log.info prop
    }


    Thanks,
    Jeshtha
  • Yes. i need the same. Thanks for your quick response.