Forum Discussion
djangofan
13 years agoContributor
I really appreciate the answer but I see no reason why the Open Source version of SoapUI testrunner cannot be enhanced to gracefully handle these 4 or 5 options. I can easily decide whether or not to pass the args to testrunner.bat by using a code snippet like this, but if I do, the open source version shouldn't choke:
Then,
ECHO Checking if ^"%SOAPUI_HOME%soapui-pro-4.5.2.jar^" exists.
IF EXIST "%SOAPUI_HOME%soapui-pro-4.5.2.jar" (
SET "PRO_ARGS=-F"HTML" -R"%REPORT_NAME%""
) ELSE (
SET PRO_ARGS=
)
Then,
SET "ARGUMENTS=-s"My Test Suite" -c"My Test 1" -r -a -j"
SET "ARGUMENTS=%ARGUMENTS% -h"%HOSTPORT%" -f"junit-results" %PRO_ARGS% MyProject.xml"
CALL "%SOAPUI_HOME%testrunner.bat" %ARGUMENTS%