# Can't override propertiesFile properties with command line parameters

**URL:** <https://forum.katalon.com/t/cant-override-propertiesfile-properties-with-command-line-parameters/12584>\
**Category:** Bug Report\
**Tags:** katalon-studio, bugs-report\
**Created:** [August 12, 2018, 3:40am UTC](https://forum.katalon.com/t/cant-override-propertiesfile-properties-with-command-line-parameters/12584 "2018-08-12T03:40:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [August 12, 2018, 3:40am UTC](https://forum.katalon.com/t/cant-override-propertiesfile-properties-with-command-line-parameters/12584/1 "2018-08-12T03:40:24Z")

</div>

**## Background**

Per the documentation on [Console Mode Execution](https://docs.katalon.com/display/KD/Console+Mode+Execution), we should be able to override a property specified in the console.properties (-propertiesFile) on the command line when executing Katalon tests. For example, if “projectPath” is defined in the properties file, we should be able to use a “-projectPath” parameter on the command line to override it.

Currently, when trying to override projectPath, there is an exception about finding “multiple arguments for option”.

\*\*## OS: \*\*OSX High Sierra 10.13.6

**##**  **Katalon Studio Version:** 5.6.0 build 1

**## Katalon Studio logs:**

```auto
joptsimple.MultipleArgumentsForOptionException: Found multiple arguments for option projectPath, but you asked for only one
at joptsimple.OptionSet.valueOf(OptionSet.java:179)
at joptsimple.OptionSet.valueOf(OptionSet.java:153)
at com.kms.katalon.execution.console.ConsoleMain.findProject(ConsoleMain.java:146)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:90)
at com.kms.katalon.console.application.Application.runConsole(Application.java:76)
at com.kms.katalon.core.application.Application.runConsole(Application.java:72)
at com.kms.katalon.core.application.Application.start(Application.java:56)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

```

**## Steps to reproduce -**

- Create a new Project named “MobileTestingSample”
- Create a new Test Case named “My Test Case”
- Create a new Test Suite named “My Test Suite”
- Add the Test Case to the Test Suite
- Create a new properties file in your project’s folder, e.g. test.properties
- Start an Android emulator (running on port 5554)
- Add to the properties file the following properties:

```auto
noSplash=true
runMode=console
projectPath=MobileTestingSample.prj
consoleLog=true
browserType=Android
deviceId=emulator-5554
testSuitePath=Test Suites/My Test Suite

```

- From the command line, execute your Katalon Studio Test Suite, specifying the properties file and overriding the projectPath property:

```auto
/Applications/Katalon\ Studio.app/Contents/MacOS/katalon -propertiesFile='/Users/chris/Katalon Studio/MobileTestingSample/test.properties' -runMode=console -projectPath='/Users/chris/Katalon Studio/MobileTestingSample/MobileTestingSample.prj'

```

**## Expected Behavior -**

The MobileTestingSample.prj Test Suite named “My Test Suite” should start from the command line and run to completion.

**## Actual Behavior -**

An exception is thrown on the command line:

```auto
joptsimple.MultipleArgumentsForOptionException: Found multiple arguments for option projectPath, but you asked for only one

```

---

<div class="post-metadata">

**Author:** ![Alice](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/alice/32/472_2.png) [@Alice](https://forum.katalon.com/u/Alice)\
**Post date:** [August 13, 2018, 10:11am UTC](https://forum.katalon.com/t/cant-override-propertiesfile-properties-with-command-line-parameters/12584/2 "2018-08-13T10:11:20Z")

</div>

Hi  
Chris Trevarthen,  
Thanks for your information. I’ve logged this one into our backlog and will be fixed in the next release.

Feel free to post any questions or feedback to make Katalon Studio better. 😃

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [November 2, 2019, 4:43am UTC](https://forum.katalon.com/t/cant-override-propertiesfile-properties-with-command-line-parameters/12584/3 "2019-11-02T04:43:25Z")

</div>

Closed on November 2, 2019, 4:43am UTC


