Executing using Katalon's docker for CircleCI - Folder Structure

Hi,

I am using the Katalon docker image for executing tests in Circle CI cloud. My tests run fine if I have Katalon project at the repository root in Github, but if the project is in a folder, tests do not execute, it appears that docker container does not look for the project path at the correct location if I provide project path in the command projectPath is added twice and it gets confused. It is important that I can execute from a folder under the repo as we would like to have E2E tests under the project report. Any pointers are much appreciated

Error

  • xvfb-run -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalon -browserType=Chrome -retry=0 -statusDelay=15 ‘-testSuitePath=Test Suites/xyz’ -executionProfile=xyz-dev -runMode=console -reportFolder=/root/project/report -projectPath=/tmp/katalon_execute/project
    Request sent successfully.
    Opening project file: /tmp/katalon_execute/project
    Invalid argument: Cannot find project ‘/tmp/katalon_execute/project’.

Folder Structure Which Works
— .circleci
– config.yml
– xyz.prj
– Test Suites
– abc.ts
– abc.groovy

Folder Structure Which does NOT Work
— .circleci
– config.yml
Katalon Project Folder
– xyz.prj
– Test Suites
– abc.ts
– abc.groovy

Could you please try cd into the directory before executing Katalon Studio?

version: 2
jobs:
  build:
    docker:
      - image: katalonstudio/katalon
    steps:
      - checkout
      - run:
          name: Execute Katalon Studio
          command: cd "Katalon Project Folder" && katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest"

Thanks a lot! That worked, sorry I am new to using docker.

1 Like