Forum Discussion
15 years ago
I did the following to get the -Dsoupui.properties behavior loaded by loadui while using the Workspace rather than command line. Update the loadUI.jnlp file and proivde the -Dkey=value property by adding a <property/> element in the <resource/> element (removing the -D of course).
The System property is utilized by the SOUPUI runtime when loadui invokes the runner. The property file is picked up relative to your loadui.bat script or it can take an absolute path.
<resources>
<j2se version="1.6+" java-vm-args="-Xms128m -Xmx768m -XX:MaxPermSize=128m -Dsun.java2d.noddraw=true"/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.3/javafx-rt.jnlp"/>
<jar href="lib/loadui-launcher-1.0.1.jar" main="true"/>
<jar href="lib/org.apache.felix.main-3.0.1.jar"/>
<jar href="lib/commons-cli-1.2.jar"/>
<jar href="lib/jna-3.2.7.jar"/>
<jar href="lib/platform-3.2.7.jar"/>
<property name="soapui.properties" value="<path_to_file>\soupui_test.properties"/>
</resources>
The System property is utilized by the SOUPUI runtime when loadui invokes the runner. The property file is picked up relative to your loadui.bat script or it can take an absolute path.