djangofan
13 years agoContributor
Why is UnrecognizedOptionException fatal to the test suite?
Why is UnrecognizedOptionException fatal to the test suite? If I pass a valid "PRO" option to the SoapUI community edition testrunner.bat script, in my opinion, it should gracefully fail instead of being fatal to the test suite.
I would understand the exception if you passed a non-existent option or bad syntax in a option but if you are passing a well-formed but simply unsupported option, then it should gracefully fail with a "-R option requires pro version" message instead of blowing up my test suite.
I bought SoapUI PRO for my Jenkins server but I cannot afford 2 licenses and so I run SoapUI community on my development machine and so my -R and -F options crash my test in my dev environment. It is really inconvenient to toggle the options when I have code checked into source control. So, if this isn't fixed, I have to spend valuable time trying to come up with a hack of some kind (in my Jenkins .bat script) to include the options only when the PRO version is detected.
I would understand the exception if you passed a non-existent option or bad syntax in a option but if you are passing a well-formed but simply unsupported option, then it should gracefully fail with a "-R option requires pro version" message instead of blowing up my test suite.
I bought SoapUI PRO for my Jenkins server but I cannot afford 2 licenses and so I run SoapUI community on my development machine and so my -R and -F options crash my test in my dev environment. It is really inconvenient to toggle the options when I have code checked into source control. So, if this isn't fixed, I have to spend valuable time trying to come up with a hack of some kind (in my Jenkins .bat script) to include the options only when the PRO version is detected.
Running...
soapUI 4.5.2 TestCase Runner
2013-06-12 09:50:27,827 [main] ERROR com.eviware.soapui.tools.SoapUITestCaseRunner - org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -R
2013-06-12 09:50:27,827 [main] ERROR com.eviware.soapui.SoapUI - An error occured [Unrecognized option: -R], see error log for details
2013-06-12 09:50:27,828 [main] ERROR soapui.errorlog - org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -R
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -R
at org.apache.commons.cli.Parser.processOption(Parser.java:253)
at org.apache.commons.cli.Parser.parse(Parser.java:170)
at org.apache.commons.cli.Parser.parse(Parser.java:114)
at com.eviware.soapui.tools.AbstractSoapUIRunner.initFromCommandLine(AbstractSoapUIRunner.java:109)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:87)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:115)