Forum Discussion

jackysedy's avatar
jackysedy
New Contributor
10 years ago

Switch enviruonment from command line

I have Soapui Pro 5.1.2, and try to run it from coomand line using Hudson with "-E" property, to change the environment, but i get the error (from testrunner.log ) :
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -E
- Could not find jfxrt.jar. Internal browser will be disabled.
SoapUI 5.1.2 TestCase Runner
at org.apache.commons.cli.Parser.processOption(Parser.java:253)
- org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -E
at org.apache.commons.cli.Parser.parse(Parser.java:170)
- An error occurred [Unrecognized option: -E], see error log for details
- org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -E
at org.apache.commons.cli.Parser.parse(Parser.java:114)
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -E
at com.eviware.soapui.tools.AbstractSoapUIRunner.initFromCommandLine(AbstractSoapUIRunner.java:137)
at org.apache.commons.cli.Parser.processOption(Parser.java:253)
at org.apache.commons.cli.Parser.parse(Parser.java:170)
at com.eviware.soapui.tools.AbstractSoapUIRunner.validateCommandLineArgument(AbstractSoapUIRunner.java:106)
at org.apache.commons.cli.Parser.parse(Parser.java:114)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:97)
at com.eviware.soapui.tools.AbstractSoapUIRunner.initFromCommandLine(AbstractSoapUIRunner.java:137)
at com.eviware.soapui.tools.AbstractSoapUIRunner.validateCommandLineArgument(AbstractSoapUIRunner.java:106)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:117)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:97)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:117)

2 Replies

  • johan_l's avatar
    johan_l
    New Contributor

    Hello, I have the same problem.. Is it any smart way to handle this?

     

    I am running it in Ant(yes I know, who use ant today?!) with this 

     

     

    <java classname="com.eviware.soapui.tools.SoapUITestCaseRunner" failonerror="true" fork="true">
    <arg line="-j -f${basedir}/soapUi/test-results"/>
    <arg value="-e${soapui.endpoint}/MyWsdl?wsdl" />
    <arg value="-Elocal" />
    <arg value="${basedir}/soapui/my_soapui_project.xml"/>
    <classpath>
    <fileset dir="${basedir}\soapui\lib" includes="*.jar"/>
    </classpath>

    </java>

     

    As you can see I have copied the jars to my project so I can run the project from the jenkins server. 

    Do I need to get a another license for the jenkins server and install soapUi there aswell? I cant even make it run on my local now where I have soapUi Pro installed