Forum Discussion

Liberty_Informa's avatar
Liberty_Informa
Regular Contributor
13 years ago

Export Preferences

Hi Admin

Can I export changes made in the preferences and distribute among developers? They all will import preferences file so that all team members have uniform preferences on their machines?

Thanks
  • KaiBear's avatar
    KaiBear
    Occasional Contributor
    Hello,

    Yes this is possible but I would recommend that you'd be really careful when doing this!
    In your home folder there is a file called SoapUI-Settings.xml. You could just distribute this to your devs.
    What I mean by careful is that the file contains some linked file paths. If you wish for the file to be valid on every computer the setup has to be identical.

    For example lets say someone haven't installed SoapUI using the standard installation directory then the settings file won't be able to find anything.
  • Liberty_Informa's avatar
    Liberty_Informa
    Regular Contributor
    Hi KaiBear

    Thank you for taking time in replying the query.

    I am with you and getting what you are trying to say.

    However I am sceptical about doing this way as there are many other settings in that file and distributing that way will create havoc at end. Moreover when installation is done by external team and especially in multi location environment it is something beyond our control. I understand this could be the only way at moment in absence of having standard feature from soapUI.

    Hello Admin, can you accept this as a new feature request?

    Regards
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi again!

    We're happy to accept your feature request, however I'm not quite sure that I understand exacly what you are asking for.
    Would you mind rephrasing it?

    --
    Regards

    Erik
    SmartBear Sweden
  • Liberty_Informa's avatar
    Liberty_Informa
    Regular Contributor
    Hi

    What I am looking for is an ability within soapUI to export 'Preferences' to a file. A master copy of file containing Preferences would be exported as a xml file (may be a new option 'Export Preferences' under the menu 'File'). It can be stored in a central repository system like CVS, SVN etc. This master copy would be imported by all other team members in their soapUI (may be a new option 'Import Preferences' under the 'File' menu). This step would replace default Preferences on their machines. This will help to have uniform Preferences across team members.

    Here we are talking about the similar functionality like you might have seen as an option like File->Export.. in the Eclipse.

    I hope you understood it. Let me know your views on this.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Great!

    We've now registered an issue for this in our bug tracker (SOAPUI-4590).
    We'll let you know as soon as we have more information about this.

    --
    Regards

    Erik
    SmartBear Sweden
  • Liberty_Informa's avatar
    Liberty_Informa
    Regular Contributor
    Hi again,

    Today I figured out it is possible to enforce various setting programatically although not possible to distribute as a file.

    You can write something like this on the project load script:

    import com.eviware.soapui.settings.HttpSettings
    import com.eviware.soapui.SoapUI

    // setting socket timeout
    SoapUI.settings.setString( HttpSettings.SOCKET_TIMEOUT, "90000" )

    This increases socket time-out value to 90 seconds.

    Likewise you can set any number of settings.