Can't open the browser via the cmd (I could via the IDE)

Hi Everyone,

I am trying to run my test via the cmd and I am getting this error:

2019-12-24 01:59:35.649 ERROR c.k.k.core.keyword.internal.KeywordMain - ? Unable to open browser with url: ‘http://katalon.com/’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: ‘http://katalon.com/
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.openBrowser(OpenBrowserKeyword.groovy:81)
at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.execute(OpenBrowserKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.openBrowser(WebUiBuiltInKeywords.groovy:60)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$openBrowser.call(Unknown Source)
at WebBrowsing.webBrowsing_salesLogin(Script1555509946044.groovy:456)
at WebBrowsing$webBrowsing_salesLogin.call(Unknown Source)
at Runner.run(Script1555509946044.groovy:159)
at Runner$run.call(Unknown Source)
at CreateOrg.run(CreateOrg:81)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:331)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:322)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:301)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:293)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:227)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1577145566192.run(TempTestSuite1577145566192.groovy:35)
Caused by: com.kms.katalon.core.exception.StepFailedException: No driver is set for execution.
at com.kms.katalon.core.webui.driver.DriverFactory.startNewBrowser(DriverFactory.java:213)
at com.kms.katalon.core.webui.driver.DriverFactory.openWebDriver(DriverFactory.java:188)
at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword$_openBrowser_closure1.doCall(OpenBrowserKeyword.groovy:74)
at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword$_openBrowser_closure1.call(OpenBrowserKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.openBrowser(OpenBrowserKeyword.groovy:81)
at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.execute(OpenBrowserKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.openBrowser(WebUiBuiltInKeywords.groovy:60)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$openBrowser.call(Unknown Source)
at WebBrowsing.webBrowsing_salesLogin(Script1555509946044.groovy:456)
at WebBrowsing$webBrowsing_salesLogin.call(Unknown Source)
at Runner.run(Script1555509946044.groovy:159)
at Runner$run.call(Unknown Source)
at Script1555509946044.run(Script1555509946044.groovy:81)
… 13 more

The browser opens perfectly well when running it via the IDE

Can you share command you are using?

1 Like

Hey @Andrej_Podhajsky ,
My CMD line is:
katalon -noSplash -runMode=console -consoleLog -noExit -projectPath="C:\Users\NewUser\Katalon Studio\GIT\shieldox-automation\SanityTests\Shieldox.prj" -retry=0 -testSuitePath="Test Suites/Sanity" -executionProfile="default" -browserType="Web Service"

This seems to be incorrect.

1 Like