Forum Discussion

mohanbabu400's avatar
mohanbabu400
Occasional Contributor
9 years ago

Specify/setup Groovy Scripts location when executing the SOAPUI project using testrunner.sh

Hello - I would like to execute soap-ui projects from command line using testrunner.sh. On UI, under preferences, there is an option to specify script library location for use in the test cases. How...
  • mohanbabu400's avatar
    9 years ago

    Looks like "soapui-settings.xml" will be created under home directory of the current user when ReadyAPI UI is launched. I installed ReadyAPI on headless Linux machine and never launched UI as my VM didn't have X-windows installed.

    soapui-settings.xml contains the preferences( Ex: path of the script library ). So without soapui-settings.xml executing the SOAPUI project that contains groovy script via testrunner.sh will fail.

     

    Solution is either install Ready API and edit the soapui-settings.xml with the respective paths and use it on head less machine OR launch the ReadyAPI at least one time before executing the tests from testrunner.sh

     

    Script location can be changed in the soapui-settings.xml to point to the desired location ( its same as in the UI)