katalon-studio-samples / ci-samples

Sample configurations for various CI systems.
Apache License 2.0
54 stars 169 forks source link

Could not find .prj file in source folder #3

Closed minhdoan159 closed 5 years ago

minhdoan159 commented 6 years ago

I am running Katalon image using Docker for Windows. I meet an issue that the projectfile could not be found in source folder so the katalon execution command failed: C:\Users\minhdoan\kat-docker-examples\docker-images-samples (master -> origin) λ bash .\katalon\run_chrome.sh ++ pwd

It seems the line of code did not works for me: + cp -r /katalon/katalon/source/. /katalon/katalon/project so the project file could not be found: find /katalon/katalon/project -maxdepth 1 -type f -name '*.prj'

Please help to clarify it and any fix/work around on it! Thanks!

jejey commented 6 years ago

hey, I have the exact same issue, I ran run_chrome.sh and run_firefox.sh and I get the same error : Invalid argument: Cannot find project '-browserType=Chrome'. (didn't forget to change the test suite name, and the script is in the root of katalon project)

Did you find a workaround ?

edit : it seems to be the project path that is empty, in the last command line : /opt/katalonstudio/katalon -runMode=console -reportFolder=/katalon/katalon/report -projectPath= -browserType=Chrome -retry=0 -statusDelay=15 '-testSuitePath=Test Suites/login' valid argument: Cannot find project '-browserType=Firefox'.

Is it the expected behaviour ? Maybe adding " " after the = could solve the problem

jejey commented 6 years ago

It was because there was a space in the path, ("My Program Files"), it's solved now

MichalUrban999 commented 6 years ago

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.

devalex88 commented 5 years ago

@MichalUrban999 We've simplified the syntax with more detailed sample scripts.