Forum Discussion

Media01's avatar
Media01
New Contributor
13 years ago

Making your SOAP UI Pro tests work on Windows and MAC

I am wondering if anyone has done the due diligence to see how SOAP UI pro is different from WINDOWS to MAC. If creating SOAP UI suites of tests that need to run equally on both windows and mac OS? I have a sweet of tests that utilize directory paths as well as file locations. The scripts call external groovy scripts and JAR files. The groovy scripts call classes located in the

Mac Path
/Applications/SmartBear/soapUI-Pro-4.5.1.app/Contents/Resources/app/bin/scripts/<dir>

Windows path
/Program Files / SmartBear / SOAPUI / bin /scripts <dir>

Since these internal scripts have to be located with in the /bin ext and /scripts dirs respectively and the windows path and mac paths are different has anyone been able to make this situation or scenario work well together? my issue surrounds multiple testers/developers updating and having these scripts run and updated together.

Any help would be appreciated.
  • RJanecek's avatar
    RJanecek
    Regular Contributor
    Hi,

    I can advise you another solution. Create jar library which contains this script and add it in eviware folder: .../eviware/soapUi../bin/ext/ (I hope this is same in both system).
    then just import your class in groovy and you can call it.
  • Hi!

    Is the problem that you are using the path to the scripts folder in your soapUI tests? If so, you should be able to parametrize the path to be different if running on Windows and on Mac OS X using
    System.getProperty("os.name")
    for example.

    If the problem is how to distribute the custom Groovy among the different clients, one way is to have the scripts folder on each platform be under version control (using Subversion for example) and pointing to the same common path in the SCM repo.
    That way, you could make changes in the custom scripts one one client and just update the folder from the SCM on the other.

    Please send us the project file using the support form if you need further assistance: http://www.soapui.org/Support/support-overview.html