Docker integration

Hi, I’m trying to integrate Docker into Katalon Studio. It seems however I’m doing something wrong since the test will not execute.

I’m working on Windows 10 and using the latest version of Katalon.

In PowerShell I type this command:

docker run -t --rm -v /dockertest:/katalon/katalon/source -w /dockertest/Reports:/katalon/katalon/report katalonstudio/katalon katalon-execute.sh -browserType=“Chrome” -retry=0 - statusDelay=15 testSuitePath=“Test Suites/DockerTS”

I get the following log:

  • echo ‘Starting Katalon Studio’
    Starting Katalon Studio
  • cat /katalon/version
    Google Chrome 71.0.3578.98
    Mozilla Firefox 64.0
    Katalon Studio 5.10.1
    ++ pwd
  • current_dir=/dockertest/Reports:/katalon/katalon/report
  • 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/’ /tmp/katalon_execute/project
    cp: cannot stat '/katalon/katalon/source/
    ’: No such file or directory
  • 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 8
    drwxrwxrwx 2 root root 4096 Feb 6 15:06 .
    drwxr-xr-x 4 root root 4096 Feb 6 15:06 …
    -rwxrwxrwx 1 root root 0 Feb 6 15:06 .classpath
  • report_dir=/katalon/katalon/report
  • ‘[’ -d /katalon/katalon/report ‘]’
  • report_dir=/katalon/katalon/source/report
  • mkdir -p /katalon/katalon/source/report
  • args=("$KATALON_KATALON_INSTALL_DIR/katalon" “$@”)
  • args+=("-runMode=console")
  • args+=("-reportFolder=$report_dir")
  • args+=("-projectPath=$project_dir")
  • cd /tmp/katalon_execute/workspace
  • xvfb-run -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalon -browserType=Chrome -retry=0 -statusDelay=15 ‘-testSuitePath=Test Suites/DockerTS’ -runMode=console -reportFolder=/katalon/katalon/source/report -projectPath=/tmp/katalon_execute/project
    Opening project file: /tmp/katalon_execute/project
    Invalid argument: Cannot find project ‘/tmp/katalon_execute/project’.
  • ret_code=4
    ++ id -u
    ++ id -g
  • chown -R 0:0 /katalon/katalon/source/report
  • chmod -R 777 /katalon/katalon/source/report
  • ls /katalon/katalon/source/report
  • cd /dockertest/Reports:/katalon/katalon/report
  • exit 4
    PS C:\users\rewien.durga\Desktop> docker run -t --rm -v /dockertest:/katalon/katalon/source -w /dockertest/Reports:/kata
    lon/katalon/report katalonstudio/katalon katalon-execute.sh -browserType=“Chrome” -retry=0 -statusDelay=15 -testSuitePat
    h=“Test Suites/DockerTS”
  • echo ‘Starting Katalon Studio’
    Starting Katalon Studio
  • cat /katalon/version
    Google Chrome 71.0.3578.98
    Mozilla Firefox 64.0
    Katalon Studio 5.10.1
    ++ pwd
  • current_dir=/dockertest/Reports:/katalon/katalon/report
  • 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
  • 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 Feb 6 15:13 .
    drwxr-xr-x 4 root root 4096 Feb 6 15:13 …
    -rwxrwxrwx 1 root root 0 Feb 6 15:13 .classpath
    drwxrwxrwx 2 root root 4096 Feb 6 15:13 report
  • report_dir=/katalon/katalon/report
  • ‘[’ -d /katalon/katalon/report ‘]’
  • report_dir=/katalon/katalon/source/report
  • mkdir -p /katalon/katalon/source/report
  • args=("$KATALON_KATALON_INSTALL_DIR/katalon" “$@”)
  • args+=("-runMode=console")
  • args+=("-reportFolder=$report_dir")
  • args+=("-projectPath=$project_dir")
  • cd /tmp/katalon_execute/workspace
  • xvfb-run -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalon -browserType=Chrome -retry=0 -statusDelay=15 ‘-testSuitePath=Test Suites/DockerTS’ -runMode=console -reportFolder=/katalon/katalon/source/report -projectPath=/tmp/katalon_execute/project
    Opening project file: /tmp/katalon_execute/project
    Invalid argument: Cannot find project ‘/tmp/katalon_execute/project’.
  • ret_code=4
    ++ id -u
    ++ id -g
  • chown -R 0:0 /katalon/katalon/source/report
  • chmod -R 777 /katalon/katalon/source/report
  • ls /katalon/katalon/source/report
  • cd /dockertest/Reports:/katalon/katalon/report
  • exit 4

Any help would be greatly appreciated.

Hi @rvdurga

From this line I think it is possible that this path is not correct, can you try again with the absolute file path instead ?

Regards !

Could you please confirm that /dockertest was the location of your project? It doesn’t look like a valid Windows file path.

Apparently that fixed it. Thank you!