# ExecutionException: Unable to execute test suite

**URL:** <https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913>\
**Category:** Integrations\
**Tags:** integrations, katalon-studio\
**Created:** [April 2, 2022, 2:53am UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913 "2022-04-02T02:53:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![catherine.larchevequ](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/catherine.larchevequ/32/16104_2.png) [@catherine.larchevequ](https://forum.katalon.com/u/catherine.larchevequ)\
**Post date:** [April 2, 2022, 2:53am UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/1 "2022-04-02T02:53:54Z")

</div>

Hello,

I am currently using Katalon Version 8.2.5, and I’m experiencing an error when using the Katalon Runtime Engine through Jenkins. I am able to execute my test collections manually through Katalon Studio, but not in Jenkins. I believe it may have to do with the execution profiles we just created in Katalon Studio.

**The command I am using to execute my test suite collection:**

`docker run --shm-size=1048m -t --rm -v ${PWD}:${WORKSPACE} katalonstudio/katalon katalonc.sh -projectPath='${WORKSPACE}/workspace/${PROJECT_NAME_ENV}/${KATALON_REPO_NAME}.prj' -reportFolder='${WORKSPACE}/workspace/${PROJECT_NAME_ENV}/${TEST_SUITE}/' -browserType='Chrome (headless)' -noSplash -runMode='console' -retry=0 -statusDelay=15 -testSuiteCollectionPath=\"${'Test Suites/' + TEST_SUITE}\" -executionProfile='${ENVIRONMENT}' -apiKey= ******** --config -webui.autoUpdateDrivers=true`

**The error that we are receiving is:**

> com.kms.katalon.execution.exception.ExecutionException: Unable to execute test suite ‘Test Suites/Co-Pilot Header Regression’  
> at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.buildLauncher(TestSuiteCollectionConsoleLauncher.java:258)  
> at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.buildSubLaunchers(TestSuiteCollectionConsoleLauncher.java:150)  
> at com.kms.katalon.execution.launcher.TestSuiteCollectionConsoleLauncher.newInstance(TestSuiteCollectionConsoleLauncher.java:88)  
> at com.kms.katalon.execution.console.entity.TestSuiteCollectionLauncherOptionParser.getConsoleLauncher(TestSuiteCollectionLauncherOptionParser.java:140)  
> at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:74)  
> at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:528)  
> at com.kms.katalon.console.application.ConsoleApplicationStarter.start(ConsoleApplicationStarter.java:37)  
> at com.kms.katalon.application.Application.runConsole(Application.java:125)  
> at com.kms.katalon.application.Application.start(Application.java:88)  
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)  
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)  
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)  
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)  
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)  
> 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:657)  
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)  
> at org.eclipse.equinox.launcher.Main.run(Main.java:1447)  
> at org.eclipse.equinox.launcher.Main.main(Main.java:1420)

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 2, 2022, 1:08pm UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/2 "2022-04-02T13:08:08Z")

</div>

> [@catherine.larchevequ](#):
>
> ${PWD}:${WORKSPACE}

These are interpolated strings which need to be wrapped in pairs of double quotes:

```auto
"${PWD}:${WORKSPACE}"

```

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [April 2, 2022, 7:37pm UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/3 "2022-04-02T19:37:22Z")

</div>

> [@Russ\_Thomas](#):
>
> These are interpolated strings which need to be wrapped in pairs of double quotes:

Nope!  
Are not interpolated.  
In linux shell terms, we may have to speak about variables expansion, which is a different animal and may have sometime subtle behavior.

The comment made by @Russ_Thomas it is still somehow valid …  
More insights:

> **[Shell Parameter Expansion (Bash Reference Manual)](https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html)**
>
> Shell Parameter Expansion (Bash Reference Manual)

[https://tldp.org/LDP/abs/html/parameter-substitution.html](https://tldp.org/LDP/abs/html/parameter-substitution.html)

> <https://stackoverflow.com/questions/13799789/expansion-of-variables-inside-single-quotes-in-a-command-in-bash>

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 2, 2022, 11:55pm UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/4 "2022-04-02T23:55:36Z")

</div>

I tried the following one line in the bash shell on Mac:

```auto
$ echo docker run --shm-size=1048m -t --rm -v ${PWD}:${WORKSPACE} katalonstudio/katalon katalonc.sh -projectPath='${WORKSPACE}/workspace/${PROJECT_NAME_ENV}/${KATALON_REPO_NAME}.prj' -reportFolder='${WORKSPACE}/workspace/${PROJECT_NAME_ENV}/${TEST_SUITE}/' -browserType='Chrome (headless)' -noSplash -runMode='console' -retry=0 -statusDelay=15 -testSuiteCollectionPath=\"${'Test Suites/' + TEST_SUITE}\" -executionProfile='${ENVIRONMENT}' -apiKey= ******** --config -webui.autoUpdateDrivers=true

```

Bash replied with the following message:

```auto
-bash: -testSuiteCollectionPath=\"${'Test Suites/' + TEST_SUITE}\": bad substitution

```

This must be the reason why @catherine.larchevequ got an error.

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [April 3, 2022, 8:55am UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/5 "2022-04-03T08:55:09Z")

</div>

> [@kazurayam](#):
>
> "${‘Test Suites/’ + TEST\_SUITE}"

I suppose the intention is:

```auto
"Test\ Suites/${TEST_SUITE}"

```

---

<div class="post-metadata">

**Author:** ![catherine.larchevequ](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/catherine.larchevequ/32/16104_2.png) [@catherine.larchevequ](https://forum.katalon.com/u/catherine.larchevequ)\
**Post date:** [April 4, 2022, 2:29am UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/6 "2022-04-04T02:29:32Z")

</div>

I don’t believe the problem stems from syntax errors, although the recommendations are appreciated! The command has been executed successfully in Jenkins a few hundred times now. The error I received started happening after another developer created execution profiles in Katalon Studio. I know this was the cause of the error for others but no one has posted a solution.

See:

> [@com.kms.katalon.execution.exception.ExecutionException: Unable to execute test suite](http://forum.katalon.com/t/com-kms-katalon-execution-exception-executionexception-unable-to-execute-test-suite/61989):
>
> Hi Guys, I have updated to 8.2.5 my katalon studio enterprise and now I have an error on azure pipeline during the execution. Could you help me? thank you 2022-01-27T10:55:34.2689135Z 2022-01-27T10:55:34.9263163Z Plugin “BrowserStack Integration” has been installed. 2022-01-27T10:55:34.9345308Z 2022-01-27T10:55:34.9350566Z 2022-01-27T10:55:34.9352458Z Plugin “UploadFile Keywords” has been installed. 2022-01-27T10:55:34.9353219Z 2022-01-27T10:55:34.9353881Z 2022-01-27T10:55:34.9354517Z…

> [@Unable to execute test suite](http://forum.katalon.com/t/unable-to-execute-test-suite/63198):
>
> Hi, We are using Katalon Version: 8.1.0 and experiencing the following issue only when using the Runtime engine through Jenkins. The same test collection runs well using Studio. This collection also worked previously Did something change in a newer version? The command arrangements that we are using in Jenkins are below: INFO: Command-line arguments: -projectPath=/home/jenkins/workspace/app/test-automation/katalon/gfmWeb/Web.prj -retry=4 -runMode=console -retryStrategy=failedExecutions -testS…

@jsoule @valeria.perchiazzi

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [April 4, 2022, 8:00am UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/7 "2022-04-04T08:00:34Z")

</div>

> [@catherine.larchevequ](#):
>
> The command has been executed successfully in Jenkins a few hundred times now. The error I received started happening after another developer created execution profiles in Katalon Studio.

So … did you had this before in your command?

```auto
-executionProfile='${ENVIRONMENT}'

```

If the profiles were just created, seems like the developer changed also the command used in Jenkins …

Does the `${ENVIRONMENT}` variable have a valid value?

Note also, from your command:

```auto
-testSuiteCollectionPath=\blah

```

You are running a Collection. A collection, as far as I know, is a collection of suites, each tied to a specific profile (and a given browser).  
I don’t think you can override the Profile in use from the command line (I never tried and I cannot test this since I don’t have a KRE licence) in such case.  
The executionProfile override from CLI should work fine when running a test suite.

LE: from:  
[https://docs.katalon.com/katalon-studio/docs/console-mode-execution.html#general-options](https://docs.katalon.com/katalon-studio/docs/console-mode-execution.html#general-options)

> From version 7.6+, you can use this option in Test Suite Collection execution. The specified execution profile is applied to all test suites in that collection.

So, this should work also … perhaps is a regression? (provided the ENVIRONMENT variable is valid)

---

<div class="post-metadata">

**Author:** ![catherine.larchevequ](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/catherine.larchevequ/32/16104_2.png) [@catherine.larchevequ](https://forum.katalon.com/u/catherine.larchevequ)\
**Post date:** [April 4, 2022, 4:28pm UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/8 "2022-04-04T16:28:37Z")

</div>

Oops, you are correct. I did change one thing in the command: the execution profile flag. It evaluates to develop, quality, or production depending on the environment (confirmed in the Jenkins console). We have those corresponding profiles set up in Katalon Studio. As per the docs:

> -executionProfile: From version 7.6+, you can use this option in Test Suite Collection execution. The specified execution profile is applied to all test suites in that collection.

All our test suites in the execution collection should have the same execution profile applied to them. Could you elaborate more on what a regression is? @anon46315158

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [April 5, 2022, 7:31am UTC](https://forum.katalon.com/t/executionexception-unable-to-execute-test-suite/63913/9 "2022-04-05T07:31:11Z")

</div>

> [@catherine.larchevequ](#):
>
> Could you elaborate more on what a regression is?

Well …a regression is an old bug re-introduced in a new version (or a feature known to work in previous versions stops to work in a new release).  
It can happens sometime, when fixing a bug or adding a new feature, by mistake the developer can push an old code (or add new code conflicting with some features)

So, you can try some older versions of Katalon to see if is still failing …
