Forum Discussion

larsn's avatar
larsn
Contributor
12 years ago

common properties file across projects

What is the typical solution to having a common configuration/property file across multiple projects?
As I see it, I would need common property values an external property file or is it possible to share environment configuration across projects?

As I understand it, to have these common properties work from the UI (i.e. automatically load) and maven, then I need to add a load script that will load the properties when the project is opened.
I presume that I will need a loop like:

properties.propertyNames().each{ prop ->
project.setProperty(prop)
}

4 Replies

  • Hi,

    You can create the properties as global properties to use across projects. File -> Preferences -> Global Properties.


    Regards,
    Marcus
    SmartBear Support
  • To finish an earlier part of the discussion, I was able to get properties to automatically load by adding groovy scripting in the project "load script" section.

    Note: that you can't use Java properties methods to manipulate SoapUI methods since the key strings are not escaped but writing your own parser is easy.
  • Hi,

    The global vales are stored in your soapui-settings.xml file. This file is usually in your user home directory i.e C:\Users\<your user name> on windows. You can do ${global_property} to refer to it in other test steps for example.


    Regards,
    Marcus
    SmartBear Support