Run katalon in docker windows 10 - beginner

Hi guys, I try to run in the catalon test suite collection in windows 10 in docker, but I do not know the syntax structure. Would anyone be willing to help me run the test in the docker?

Here is we generate commnad from katalon:

katalon -noSplash -runMode = console -projectPath = “C: \ Users \ murban \ Katalon Studio \ AutomatTestCRM \ AutomatTestCRM_new.prj” -retry = 0 -testSuiteCollectionPath = “Test Suites / TestSuiteCollectionParallel / ParallelTest”

I have created in project folder: run_chrome.sh. What do I have to write into him?

I tried this, but it did not work :

docker run --rm -v //c/Users/murban/Katalon Studio\AutomatTestCRM/katalon:/katalon/katalon/source:ro -v /c/Users/murban/Katalon Studio\AutomatTestCRM/reports/chrome:/katalon/katalon/report -e ‘KATALON_OPTS=-browserType=“Chrome” -retry=0 -statusDelay=15 -testSuiteCollectionPath=“Test Suites/TestSuiteCollectionParallel/ParallelTest”’ katalonstudio/katalon

Thank you very much for your help.

Syntax Issue - backslash characters?

docker run --rm -v //c/Users/murban/Katalon Studio\AutomatTestCRM/katalon:/katalon/katalon/source:ro -v /c/Users/murban/Katalon Studio\AutomatTestCRM/reports/chrome:/katalon/katalon/report -e ‘KATALON_OPTS=-browserType=“Chrome” -retry=0 -statusDelay=15 -testSuiteCollectionPath=“Test Suites/TestSuiteCollectionParallel/ParallelTest”’ katalonstudio/katalon

Thanks for the answer, the problem was in the folders where I had a space, then in the reverse slashes, now I can run but something does not seem to him yet

there is a console log:

C:\Users\murban\KatalonStudio\AutomatTestCRM>run_chrome.bat

C:\Users\murban\KatalonStudio\AutomatTestCRM>docker run --rm -v //c/users/murban/katalonstudio/automattestcrm/katalon:/katalon/katalon/source:ro -v /c/users/murban/katalonstudio/automattestcrm/reports/chrome:/katalon/katalon/report -e katalon_opts="-browsertype=“chrome” -retry=0 -statusdelay=15 -testsuitecollectionpath=“testsuites/testsuitecollectionparallel/paralleltest”" katalonstudio/katalon

Google Chrome 66.0.3359.139

Mozilla Firefox 59.0.2

Katalon Studio 5.4.1

+ echo ‘Starting Katalon Studio’

Starting Katalon Studio

++ pwd

+ current_dir=/

+ tmp_dir=/katalon/katalon/tmp

+ mkdir -p /katalon/katalon/tmp

+ chmod -R 777 /katalon/katalon/tmp

+ project_dir=/katalon/katalon/project

+ mkdir -p /katalon/katalon/project

+ cp -r /katalon/katalon/source/. /katalon/katalon/project

+ touch /katalon/katalon/project/.classpath

+ chmod -R 777 /katalon/katalon/project

+ report_dir=/katalon/katalon/report

+ mkdir -p /katalon/katalon/report

+ chmod -R 777 /katalon/katalon/report

++ find /katalon/katalon/project -maxdepth 1 -type f -name ‘*.prj’

+ project_file=

+ cmd=’/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= ’

+ /katalon/base/scripts/xvfb.sh start

+ XVFB=/usr/bin/Xvfb

+ XVFBARGS=’:99 -screen 0 1024x768x24 -fbdir /var/run -ac’

+ PIDFILE=/var/run/xvfb.pid

+ case “$1” in

+ echo -n ‘Starting virtual X frame buffer :99 1024x768x24’

Starting virtual X frame buffer :99 1024x768x24+ start-stop-daemon --start --quiet --pidfile /var/run/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb – :99 -screen 0 1024x768x24 -fbdir /var/run -ac

+ echo .

.

+ exit 0

+ cd /katalon/katalon/tmp

+ eval '/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= ’

++ /opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath=

joptsimple.OptionMissingRequiredArgumentException: Option projectPath requires an argument

    at joptsimple.RequiredArgumentOptionSpec.detectOptionArgument(RequiredArgumentOptionSpec.java:48)

    at joptsimple.ArgumentAcceptingOptionSpec.handleOption(ArgumentAcceptingOptionSpec.java:257)

    at joptsimple.OptionParser.handleShortOptionToken(OptionParser.java:520)

    at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:59)

    at joptsimple.OptionParser.parse(OptionParser.java:396)

    at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:70)

    at com.kms.katalon.console.application.Application.runConsole(Application.java:69)

    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)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

I try to set the projectpath, but dont succeed:

C:\Users\murban\KatalonStudio\AutomatTestCRM>docker run --rm -v /c/users/murban/katalonstudio/automattestcrm/katalon:/katalon/katalon/source:ro -v /c/users/murban/katalonstudio/automattestcrm/reports/chrome:/katalon/katalon/report -p /c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj -e katalon_opts="-browsertype=“chrome” -retry=0 -statusdelay=15 -testsuitecollectionpath=“testsuites/testsuitecollectionparallel/paralleltest”" katalonstudio/katalon

docker: No port specified: /c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj.

See ‘docker run --help’.

I followed these instructions:

  • Execute test suite with katalon-container: docker run --rm --name test -v /Users/minhhoang/Workspace/WorkSpace/Docker/TestSample/:/KatalonTest/ -e p="/KatalonTest/TestSample.prj" -e s=“Test\ Suites/GUI” -e b=Chrome -it katalon-container
  • Link your project folder from host machine to docker container via -v /Users/minhhoang/Workspace/WorkSpace/Docker/TestSample/:/KatalonTest/
  • Set container environment variable in sample command above
  • List of args belows:
    -p – project path value
    -s – test suite path value
    -r – report path value
    -b – browser type value, default is firefox browser
    -v – enable console log mode in kataon

I don’t know Docker syntax, however, in the following command I see:

1. You have two -v arguments and no -r. Change second -v to -r
2. Consider relocating -p argument to “katalon_opts” section of the command in the form of -projectPath="/c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj"

C:\Users\murban\KatalonStudio\AutomatTestCRM>docker run --rm -v /c/users/murban/katalonstudio/automattestcrm/katalon:/katalon/katalon/source:ro -v /c/users/murban/katalonstudio/automattestcrm/reports/chrome:/katalon/katalon/report -p /c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj -e katalon_opts="-browsertype=“chrome” -retry=0 -statusdelay=15 -testsuitecollectionpath=“testsuites/testsuitecollectionparallel/paralleltest”" katalonstudio/katalon

Hi, thanks for your answer. I tried what you wrote, here is the result:

C:\Users\murban\KatalonStudio\AutomatTestCRM>docker run --rm -v /c/users/murban/katalonstudio/automattestcrm/katalon:/katalon/katalon/source:ro -v /c/users/murban/katalonstudio/automattestcrm/reports/chrome:/katalon/katalon/report -p /c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj -e katalon_opts="-browsertype=“chrome” -retry=0 -statusdelay=15 -projectpath="/c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj" -testsuitecollectionpath=“testsuites/testsuitecollectionparallel/paralleltest”" katalonstudio/katalon

docker: No port specified: /c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj.

See ‘docker run --help’.

This is my Windows 7 O/S Command Line for a Test Suite Collection…

katalon -noSplash -runMode=console -projectPath=“C:\Katalon Studio\Kuali\Kuali.prj” -reportFolder=“Reports/Kuali Test Suite Collection” -reportFileName=“Kuali Test Suite Collection” -retry=0 -testSuiteCollectionPath=“Test Suites/Kuali Test Suite Collection”

Notice there is no browser type argument listed. Browser type is configured in the Katalon Test Suite Collection…

-projectPath should be the complete address of the .prj file, including the .prj file name…

-testSuiteCollectionPath is the relative address of the folder, from the project file’s location…

-reportFolder is the relative address of the folder, from the project file’s location…

Also, notice the arguments are case sensitive in the Windows 7 O/S…

Try this less complicated version of a command line:

C:\Users\murban\KatalonStudio\AutomatTestCRM>docker run --rm -v /c/users/murban/katalonstudio/automattestcrm/katalon:/katalon/katalon/source:ro -v /c/users/murban/katalonstudio/automattestcrm/reports/chrome:/katalon/katalon/report
katalonstudio/katalon -e katalon_opts="-retry=0 -statusDelay=15 -projectPath="/c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj" -testSuiteCollectionPath=“test suites/testsuitecollectionparallel/paralleltest” -reportFolder=“reports/testsuitecollectionparallel/paralleltest” -reportFileName=“paralleltest”"

Michal
The -p in your command was the source of error about the “No port specified”?
We now know that docker:
-hates upper case.
-for windows we need to put a / in front of the paths
-quotes should be added when path names are containing spaces like “My documents”
-Katalon studio has a scheme for directories that contains spaces (Katalon Studio, Test Suites)…

Hope this will really help people trying to use Katalon with docker for windows using windows containers.
Assuming that:
- I am on Windows 10
- My user name is Houba and therefore for an english windows edition on local drive my files are located on C:/users/Houba
- I have created a project that I did not saved into the “Katalon Studio” folder but rather into “C:/users/Houba”
-The project is named Echelon (with uppercase !! C:/users/Houba/Echelon )
-My test suites are located into the default Katalon test suite folder structure , subfolder Smoke, test suite is named SmokeTest
-For test execution in Katalon I use a profile that is called vegap.
Then the windows command line I ve came up with is:
docker run --rm -v /c/users/houba/newton/katalon:/katalon/katalon/source:ro -v /c/users/houba/newton/reports/chrome:/katalon/katalon/report -v /c/users/houba/newton:/katalon/katalon/echelon.prj -e katalon_opts="-browsertype=“chrome” -retry=0 -statusdelay=15 -projectpath="/c/users/houba/echelon:/katalon/katalon/echelon.prj" -testSuitePath="“test suites/smoke/smoketest”" -executionProfile=“vegap”" katalonstudio/katalon

Please help improving the example
Alex

Hi, thanks for your answer. I tried what you wrote, here is the complete command line result:

PS C:\Users\murban\KatalonStudio\AutomatTestCRM> docker run --rm -v /c/users/murban/katalonstudio/automattestcrm/katalon:/katalon/katalon/source:ro -v /c/users/murban/katalonstudio/automattestcrm/reports

/chrome:/katalon/katalon/report katalonstudio/katalon -e katalon_opts="-retry=0 -statusDelay=15 -projectPath="/c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/automattestcrm_new.prj" -testSu

iteCollectionPath=“test suites/testsuitecollectionparallel/paralleltest” -reportFolder=“reports/testsuitecollectionparallel/paralleltest” -reportFileName=“paralleltest”"

Google Chrome 66.0.3359.139

Mozilla Firefox 59.0.2

Katalon Studio 5.4.1

+ echo ‘Starting Katalon Studio’

Starting Katalon Studio

++ pwd

  • current_dir=/

+ tmp_dir=/katalon/katalon/tmp

+ mkdir -p /katalon/katalon/tmp

+ chmod -R 777 /katalon/katalon/tmp

+ project_dir=/katalon/katalon/project

+ mkdir -p /katalon/katalon/project

+ cp -r /katalon/katalon/source/. /katalon/katalon/project

+ touch /katalon/katalon/project/.classpath

+ chmod -R 777 /katalon/katalon/project

+ report_dir=/katalon/katalon/report

+ mkdir -p /katalon/katalon/report

+ chmod -R 777 /katalon/katalon/report

++ find /katalon/katalon/project -maxdepth 1 -type f -name ‘*.prj’

+ project_file=

+ cmd=’/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= '

+ /katalon/base/scripts/xvfb.sh start

+ XVFB=/usr/bin/Xvfb

+ XVFBARGS=’:99 -screen 0 1024x768x24 -fbdir /var/run -ac’

+ PIDFILE=/var/run/xvfb.pid

+ case “$1” in

+ echo -n ‘Starting virtual X frame buffer :99 1024x768x24’

+ start-stop-daemon --start --quiet --pidfile /var/run/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb – :99 -screen 0 1024x768x24 -fbdir /var/run -ac

Starting virtual X frame buffer :99 1024x768x24.

+ echo .

+ exit 0

+ cd /katalon/katalon/tmp

+ eval '/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= ’

++ /opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath=

joptsimple.OptionMissingRequiredArgumentException: Option projectPath requires an argument

    at joptsimple.RequiredArgumentOptionSpec.detectOptionArgument(RequiredArgumentOptionSpec.java:48)

    at joptsimple.ArgumentAcceptingOptionSpec.handleOption(ArgumentAcceptingOptionSpec.java:257)

    at joptsimple.OptionParser.handleShortOptionToken(OptionParser.java:520)

    at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:59)

    at joptsimple.OptionParser.parse(OptionParser.java:396)

    at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:70)

    at com.kms.katalon.console.application.Application.runConsole(Application.java:69)

    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)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

There is some empty arguments:

+ current_dir=/
+ project_file=
-projectPath= ’

there is my generate command from Katalon for the project: ParallelTest:

katalon -noSplash -runMode=console -projectPath=“C:\Users\murban\KatalonStudio\AutomatTestCRM\AutomatTestCRM_new.prj” -retry=0 -testSuiteCollectionPath=“Test Suites/TestSuiteCollectionParallel/ParallelTest”

this is how i do it

below is the dockerfile

FROM katalonstudio/katalon

ENV KATALON_OPTS="-noSplash -consoleLog -retry=0 -testSuitePath=‘Test Suites/sometestsuite’ -browserType=‘docker’"

WORKDIR /katalon/katalon/source

ADD . .

then in poweshell or whereever

c:/git/myproject>docker build -t somename

c:/git/myproject>docker run somename

So always set the container running from command line

Hi Daniel ryan, thank you for replying, can you upload your complete katalon script? I would like to be inspired to write the Docker command correctly

Thanks for understand.

Have a nice day

I hope @Vin Nguyen is reading this for his new Tips thing.

Hi, do you know why my docker does not want to take the “Test Suite”?

there is command what i want to run:
docker run --rm -e KATALON_OPTS="-browserType=“Chrome” -retry=0 -statusDelay=15 -testSuiteCollectionPath="“test suites/testsuitecollectionparallel/paralleltest”"" -v /c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/source:ro -v /c/users/murban/katalonstudio/automattestcrm/reports:/katalon/katalon/report katalonstudio/katalon

there is result from command line:

docker : Unable to find image ‘suites/testsuitecollectionparallel/paralleltest:latest’ locally

At line:1 char:1

+ docker run --rm -e KATALON_OPTS="-browserType=“Chrome” -retry=0 -stat …

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

\+ CategoryInfo          : NotSpecified: (Unable to find ...latest' locally:String) \[\], RemoteException

\+ FullyQualifiedErrorId : NativeCommandError

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded whi

le awaiting headers).

See ‘C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help’.

When I try to remove a space in the “Test Suite” path to “TestSuite” the docker gets farther, but then it fades into error:

Google Chrome 67.0.3396.62

Mozilla Firefox 60.0.1

Katalon Studio 5.4.2

Starting Katalon Studio

docker : + echo ‘Starting Katalon Studio’

At line:1 char:1

+ docker run --rm -e KATALON_OPTS="-browserType=“Chrome” -retry=0 -stat …

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

\+ CategoryInfo          : NotSpecified: (+ echo 'Starting Katalon Studio':String) \[\], RemoteException

\+ FullyQualifiedErrorId : NativeCommandError

++ pwd

+ current_dir=/

+ tmp_dir=/katalon/katalon/tmp

+ mkdir -p /katalon/katalon/tmp

+ chmod -R 777 /katalon/katalon/tmp

+ project_dir=/katalon/katalon/project

+ mkdir -p /katalon/katalon/project

+ cp -r /katalon/katalon/source/. /katalon/katalon/project

+ touch /katalon/katalon/project/.classpath

+ chmod -R 777 /katalon/katalon/project

+ report_dir=/katalon/katalon/report

+ mkdir -p /katalon/katalon/report

+ chmod -R 777 /katalon/katalon/report

++ find /katalon/katalon/project -maxdepth 1 -type f -name ‘*.prj’

+ project_file=/katalon/katalon/project/AutomatTestCRM_new.prj

+ cmd=’/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath=/katalon/katalon/project/AutomatTestCRM_new.prj -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteCo

llectionPath=testsuites/testsuitecollectionparallel/paralleltest’

+ /katalon/base/scripts/xvfb.sh start

+ XVFB=/usr/bin/Xvfb

+ XVFBARGS=’:99 -screen 0 1024x768x24 -fbdir /var/run -ac’

+ PIDFILE=/var/run/xvfb.pid

+ case “$1” in

+ echo -n ‘Starting virtual X frame buffer :99 1024x768x24’

+ start-stop-daemon --start --quiet --pidfile /var/run/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb – :99 -screen 0 1024x768x24 -fbdir /var/run -ac

Starting virtual X frame buffer :99 1024x768x24.

+ echo .

+ exit 0

+ cd /katalon/katalon/tmp

+ eval '/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath=/katalon/katalon/project/AutomatTestCRM_new.prj -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteC

ollectionPath=testsuites/testsuitecollectionparallel/paralleltest’

++ /opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath=/katalon/katalon/project/AutomatTestCRM_new.prj -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteCollec

tionPath=testsuites/testsuitecollectionparallel/paralleltest

Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified

133 2.4.7.xx-201611170128-e46 = ACTIVE

**_Test suite ‘testsuites/testsuitecollectionparallel/paralleltest’ not found.

Have you please any tips to fix this?_**

Hi guys, I managed to run catalon in the docker, the final command is:

docker run --rm -e KATALON_OPTS="-browserType=“Chrome” -retry=0 -statusDelay=15 -testSuiteCollectionPath=Test\ Suites/TestSuiteCollectionParallel/ParallelTest" -v/c/users/murban/katalonstudio/automattestcrm:/katalon/katalon/source:ro -v /c/users/murban/katalonstudio/automattestcrm/reports:/katalon/katalon/report katalonstudio/katalon

Thank you all for your help, perhaps it will help someone.

4 Likes

Michal said:

Hi Daniel ryan, thank you for replying, can you upload your complete katalon script? I would like to be inspired to write the Docker command correctly

Thanks for understand.

hi…sorry for late reply!!

just copy and paste the below into notepad and save as ‘Dockerfile’

FROM katalonstudio/katalon

ENV KATALON_OPTS=“-noSplash -consoleLog -retry=0 -testSuitePath=‘Test Suites/sometestsuite’ -browserType=‘chrome’”

WORKDIR /katalon/katalon/source

ADD . .

then in powershell or command prompt…go to your folder where the project is saved

then type docker build -t nameofimage .

then type docker run nameofimage

Hi just wondering if anyone here could possibly help me also.

Following the katalon studio ci example “run_chrome.sh”

I have the following command in .sh file.

#!/bin/sh

set -xe

rm -rfv ./reports/chrome
mkdir -p ./reports/chrome

docker run -t --rm -v “$(pwd)”/TestProject:/katalon/katalon/source -v “$(pwd)”/reports/chrome:/katalon/katalon/report katalonstudio/katalon katalon-execute.sh -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePath=“Test Suites/TestProjectAll” -reportFolder=“reports/chrome” -reportFileName=“testreport”

output:

  • rm -rfv ./reports/chrome
    ./reports/chrome
  • mkdir -p ./reports/chrome
    ++ pwd
    ++ pwd
  • docker run -t --rm -v ‘/Users/tony/Katalon Studio/TestProject/testproject:/katalon/katalon/source’ -v ‘/Users/tony/Katalon Studio/TestProject/reports/chrome:/katalon/katalon/report’ katalonstudio/katalon katalon-execute.sh -browserType=Chrome -retry=0 -statusDelay=15 ‘-testSuitePath=Test Suites/TestProjectAll’ -reportFolder=reports/chrome -reportFileName=testreport
  • echo ‘Starting Katalon Studio’
    Starting Katalon Studio
  • cat /katalon/version
    Google Chrome 77.0.3865.120
    Mozilla Firefox 69.0.2
    Katalon Studio 7.1.2
    ++ pwd
  • current_dir=/
  • workspace_dir=/tmp/katalon_execute/workspace
  • mkdir -p /tmp/katalon_execute/workspace
  • chmod -R 777 /tmp/katalon_execute/workspace
  • source_dir=/katalon/katalon/source
  • ‘[’ -d /katalon/katalon/source ‘]’
  • project_dir=/tmp/katalon_execute/project
  • mkdir -p /tmp/katalon_execute/project
  • cp -r /katalon/katalon/source/report /tmp/katalon_execute/project
    ++ find /tmp/katalon_execute/project -name ‘*.prj’
  • project_prj_file=
  • cd /tmp/katalon_execute/project
  • ‘[’ -f /tmp/katalon_execute/project/build.gradle ‘]’
  • cd /
  • touch /tmp/katalon_execute/project/.classpath
  • chmod -R 777 /tmp/katalon_execute/project
  • rm -rf /tmp/katalon_execute/project/bin
  • rm -rf /tmp/katalon_execute/project/Libs
  • ls -la /tmp/katalon_execute/project
    total 12
    drwxrwxrwx 3 root root 4096 Jan 6 13:54 .
    drwxr-xr-x 4 root root 4096 Jan 6 13:54 …
    -rwxrwxrwx 1 root root 0 Jan 6 13:54 .classpath
    drwxrwxrwx 2 root root 4096 Jan 6 13:54 report
  • report_dir=/katalon/katalon/report
  • ‘[’ -d /katalon/katalon/report ‘]’
  • mkdir -p /katalon/katalon/report
  • args=(“$KATALON_KATALON_INSTALL_DIR/katalonc” “$@”)
  • args+=(“-runMode=console”)
  • args+=(“-reportFolder=$report_dir”)
  • args+=(“-projectPath=$project_prj_file”)
  • cd /tmp/katalon_execute/workspace
  • xvfb-run -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalonc -browserType=Chrome -retry=0 -statusDelay=15 ‘-testSuitePath=Test Suites/TestProjectAll’ -reportFolder=reports/chrome -reportFileName=testreport -runMode=console -reportFolder=/katalon/katalon/report -projectPath=
    Katalon workspace folder is set to default location: /opt/katalonstudio/config/session-db61d6aa
    Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
    173 2.4.7.xx-201611170128-e46 = ACTIVE
    joptsimple.OptionMissingRequiredArgumentException: Option projectPath requires an argument
    at joptsimple.RequiredArgumentOptionSpec.detectOptionArgument(RequiredArgumentOptionSpec.java:48)
    at joptsimple.ArgumentAcceptingOptionSpec.handleOption(ArgumentAcceptingOptionSpec.java:257)
    at joptsimple.OptionParser.handleShortOptionToken(OptionParser.java:520)
    at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:59)
    at joptsimple.OptionParser.parse(OptionParser.java:396)
    at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:132)
    at com.kms.katalon.console.application.Application.runConsole(Application.java:71)
    at com.kms.katalon.core.application.Application.runConsole(Application.java:98)
    at com.kms.katalon.core.application.Application.start(Application.java:73)
    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)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

All launchers terminated

  • ret_code=2
    ++ id -u
    ++ id -g
  • chown -R 0:0 /katalon/katalon/report
  • chmod -R 777 /katalon/katalon/report
  • ls /katalon/katalon/report
  • cd /
  • exit 2

I have tried various things mentioned here and adding / setting -projectPath= and other things, unable to get any further as a newbie to docker and katalon.

Any guidance would be grateful.

Thanks