[Sharing is learning] [Get rewards] Join Us Now to Become Katalon Champions. Learn more
Zhou
Katalon Apprentice
04/16/2018
edited April 16

Docker Katalon doesn't recognize the projectPath that I set

Hi 

I am executing the my project using below docker run command. Which I create follow the rule mentioned here : https://github.com/katalon-studio/docker-images

katalon_opts='-browserType="Firefox(headless)" -runMode=console -retry=0 -statusDelay=15 -projectPath="/var/jenkins_home/katalon_docker/DrcDemo.prj" -testSuitePath="Test Suites/drc_login" -reportFolder="/var/jenkins_home/katalon_docker/Reports"' sudo docker run -v /var/jenkins_home/katalon_docker/DrcDemo.prj:/katalon/katalon/source:ro -v /var/jenkins_home/katalon_docker/Reports:/katalon/katalon/report -e KATALON_OPTS="$katalon_opts" katalonstudio/katalon

I got error like this:

$ /bin/sh -xe /tmp/jenkins7694852805772157339.sh + katalon_opts=-browserType="Firefox(headless)" -runMode=console -retry=0 -statusDelay=15 -projectPath="/var/jenkins_home/katalon_docker/DrcDemo.prj" -testSuitePath="Test Suites/drc_login" -reportFolder="/var/jenkins_home/katalon_docker/Reports" sudo docker run -v /var/jenkins_home/katalon_docker/DrcDemo.prj:/katalon/katalon/source:ro -v /var/jenkins_home/katalon_docker/Reports:/katalon/katalon/report -e KATALON_OPTS= katalonstudio/katalon Google Chrome 64.0.3282.186 Mozilla Firefox 58.0.2 Katalon Studio 5.3.1 + echo 'Starting Katalon Studio' ++ pwd + current_dir=/ + tmp_dir=/katalon/katalon/tmp + mkdir -p /katalon/katalon/tmp Starting Katalon Studio + 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 Starting virtual X frame buffer :99 1024x768x24+ 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 . + 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:62) 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)

 Have I done something wrong? Any help?

 Thanks.
Upvote
Quote

Comments

  • Michal
    Katalon Apprentice
    06/20/2018
    Hi, my command to run docker 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

    ParallelTest is name of TestSuiteCollection
    automattestcrm is my project name

    I hope that is helpful for you

    Upvote
    Quote
Sign In or Register to comment.