Unable to override reportFolder option on command line

The documentation console.properties says

image

My console.properties has this

browserType=Firefox
reportFolder=c:\katalon-reports

I ran this command

[INFO] c:\Katalon_Studio_Windows_64-5.10.1\katalon -propertiesFile="c:\aGit\kata
lon-maven\katalon-cl-maven-plugin-usage\src\main\resources\console.properties" -
runMode=console -consoleLog -projectPath="c:\aGit\katalon-maven\katalon-cl-maven
-plugin-usage\Sample Katalon Project" -testSuitePath="Test Suites/My Test Suite"
 -browserType=Chrome -noSplash -reportFolder="c:\aGit\katalon-maven\katalon-cl-m
aven-plugin-usage\target/katalon-reports" -reportFileName="SampleOutput" -g_defa
ultDelay="6" -g_defaultSearchString="Katalon Command Line Maven Plugin"

And got the stack trace below.

[WARNING] joptsimple.MultipleArgumentsForOptionException: Found multiple argumen
ts for option reportFolder, but you asked for only one
[WARNING]       at joptsimple.OptionSet.valueOf(OptionSet.java:179)
[WARNING]       at joptsimple.OptionSet.valueOf(OptionSet.java:153)
[WARNING]       at com.kms.katalon.execution.console.ConsoleExecutor.execute(Con
soleExecutor.java:68)
[WARNING]       at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleM
ain.java:102)
[WARNING]       at com.kms.katalon.console.application.Application.runConsole(Ap
plication.java:76)
[WARNING]       at com.kms.katalon.core.application.Application.runConsole(Appli
cation.java:76)
[WARNING]       at com.kms.katalon.core.application.Application.start(Applicatio
n.java:59)
[WARNING]       at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclipse
AppHandle.java:196)
[WARNING]       at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.
runApplication(EclipseAppLauncher.java:134)
[WARNING]       at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.
start(EclipseAppLauncher.java:104)
[WARNING]       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseSt
arter.java:388)
[WARNING]       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseSt
arter.java:243)
[WARNING]       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING]       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:62)
[WARNING]       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:43)
[WARNING]       at java.lang.reflect.Method.invoke(Method.java:498)
[WARNING]       at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:6
73)
[WARNING]       at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
[WARNING]       at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
[WARNING]

Documentation is here:

2 Likes

Hi @Harold_Owen

I confirmed this bug and added it into our back-log here. We will try to fix it in the upcoming releases.

Thanks for the report !

2 Likes