Forum Discussion

zhenrong's avatar
zhenrong
New Contributor
16 years ago

SOAPUI 3.5 - can't load my own workspace file from a commandline

We recently upgraded from SOAPUI 2.0.2 to SOAPUI 3.5 and some of our existing working automation tests broke. I'm hoping this is just something simple that we missed.

Two problems:

1. We have ant target which we call to invoke SOAPUI GUI if we see some of our automation tests fail (we run via Eclipse), that ant target basically is same as soapui.bat but we pass in the workspace file like this:
ant -Dworkspace.file=test-soapui-workspace.xml soapui.gui

This always works for us when we use 2.0.2 version, with 3.5, I noticed that it just ingore this arg and always pick up the defauly workspace file instead, which is default-soapui-workspace.xml

2. I used the JRE that comes with SOAPUI 3.5, everytime when I run above command(ant -Dworkspace.file=test-soapui-workspace.xml soapui.gui), I get the following:
Unable to locate tools.jar. Expected to find it in C:\Program Files\eviware\soapUI-3.5\lib\tools.jar

If I change to use the JDK (1.5.12), it works.

Any idea/suggestion as how I can solve these two problems?

Thanks,
Zhenrong

3 Replies

  • Hi!

    hmm.. exactly how are you running your soapUI tests from ant? Can you show the entire target?

    regards!

    /Ole
    eviware.com
  • zhenrong's avatar
    zhenrong
    New Contributor
    Here you go.

    Thanks!


       
       


       

        depends="dist,copy.settings.file,prepare.workspace.file">


          fork="true"
          dir="${env.SOAPUI_HOME}/bin"
          classname="com.eviware.soapui.SoapUI">

       
       













          todir="." />

  • zhenrong's avatar
    zhenrong
    New Contributor
    OK, I figured out the first problem and would like to post back in case anyone is intestested.

    I add -w to the soapui.gui target for the file that was passed in. It works now.

    But the second problem still exists - I decided to use my own JDK/JRE version.

    Thanks!