Invalid argument: Cannot find project '-browserType=Chrome'

@"Vinh Nguyen" - Can you help me with this issue?

PS C:\dockertest> docker run --rm -e KATALON_OPTS="-browserType=“Chrome” -retry=0 -statusDelay=15 -testSuiteCollectionPa

th=Test Suites/E24EDJourneySuite" -v /C/dockertest:/katalon/katalon/source:ro -v /C/dockertest/reports/Chrome:/katalon/k

atalon/report katalonstudio/katalon

Google Chrome 67.0.3396.62

Mozilla Firefox 60.0.1

Katalon Studio 5.4.2

+ echo ‘Starting Katalon Studio’

++ pwd

Starting Katalon Studio

+ 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= -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteCollectionPath=Test Suites/E24EDJourneySuite’

+ /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= -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteCollectionPath=Test Suites/E24EDJourneySuite’

++ /opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteCollectionPath=Test Suites/E24EDJourneySuite

Invalid argument: Cannot find project ‘-browserType=Chrome’.

1 Like

@Vinh Nguyen - can you please help me with the above problem? I did a pull on your recent project from github and when you run either run_chrome.bat or run_chrome.sh keeps failing due to Invalid argument: Cannot find project ‘-browserType=Chrome’

projectPath= -browserType=Chrome

You need to pass in project’s path after ‘projectPath’ parameter. Please correct your command, e.g:

eval '/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath="/user/projectPath" -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteCollectionPath=Test Suites/E24EDJourneySuite'

Vinh, I had the same problem earlier today. This comes up when you run the docker image, like Natarajan is doing.

https://github.com/katalon-studio/docker-images states:

katalon_opts='-browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest" --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTP -proxy.server.address=192.168.1.221 -proxy.server.port=8888'
docker run --rm -v /home/ubuntu/katalon-test:/katalon/katalon/source:ro -v /home/ubuntu/report:/katalon/katalon/report -e KATALON_OPTS="$katalon_opts" katalonstudio/katalonand when you do that the KATALON_OPTS-part injects -projectpath without arguments. As far as I can tell, this didn't use to happen.This works for me now: def projectpath = env.WORKSPACE + '/katalon'		
def reportsDir = env.WORKSPACE + '/Reports' 
def run = 'docker run -v '+projectpath +':/katalon/katalon/source:ro -v '+reportsDir+':/katalon/katalon/report -e KATALON_OPTS=\''+projectpath +' -retry=0 -statusDelay=5 -testSuiteCollectionPath="Test Suites/TestCollection"\' katalonstudio/katalon  || true'but I used to only have "-e KATALON_OPTS=' -retry=0...." 

1 Like

Hi Katalon…what is the official way to pass the project path in when running executing tests in docker, this error only just started happening, when i pass the project path in as suggested by @Vinh Nguyen i get this error

Invalid argument: Cannot find project ‘-projectPath=c:/myproject/myproject.prj’

can anyone provide an example of how to inject the project path in correctly through .sh script?, i was able to run tests through docker perfectly up until a week ago…now it seems to unexpectedly require the project path…what has changed? this testing tool has the potential to be the best out there when executed through docker, but over the last month or so it has become very, very flaky/buggy, to the point where its taking up too much testing resource to justify using it…




  

  

Hi i have the same problem. This script was functional a month ago, but it stopped working after the docker update. It does not even help to add the projectpath argument to Katalon OPTS.

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

Google Chrome 67.0.3396.99

Mozilla Firefox 61.0.1

Katalon Studio 5.5

Starting Katalon Studio

docker : + echo ‘Starting Katalon Studio’

At line:1 char:1

+ docker run --rm -v /c/users/murban/katalonstudio/automattestcrm/autom …

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

\+ 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=

+ cmd=’/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteCollectionPath=Test\ Suites/TestSuiteCollectionPa

rallel/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

+ echo .

+ exit 0

Starting virtual X frame buffer :99 1024x768x24.

+ cd /katalon/katalon/tmp

+ eval '/opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= -browserType=Chrome -retry=0 -statusDelay=15 -testSuiteCollectionPath=Test\ Suites/TestSuiteCollectionP

arallel/ParallelTest’

++ /opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= -browserType=Chrome -retry=0 -statusDelay=15 '-testSuiteCollectionPath=Test Suites/TestSuiteCollectionParall

el/ParallelTest’

**Invalid argument: Cannot find project ‘-browserType=Chrome’.

Please can you help me with this?**

1 Like

Hi i find problem in my run command, I have bad path to source. There is Finaly run command

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

Hi I Still getting the same error
Can you help on this?