Katalon is not launch browser in Jenkins

I set up project Katalon in Jenkins as a tutorial but when trying to execute, the browser is not launched.

I tried to run by command line and it works well. Anybody can suggest me how to fix this issue?

Thank you for the question. What OS and command did you use?

I’m using Win10 and my command is:

katalon -runMode=console -projectPath=“E:\Katalon Workspace\Demo.prj” -reportFolder=“Reports\JUnit_Report” -reportFileName=“report” -retry=0 -testSuitePath=“Test Suites/General/Demo_Suite” -browserType=“Chrome”

Lower the version of your Google browser,it has something to do with chrome driver

I don’t think so, because I ran it normally when use this query. Only not run on Jenkins

Since I upgraded the Google browser to 73, I had the same problem as you. When I returned the version to 72, the problem was solved.

1 Like

thanks so much, issue was fixed. But when I run it, beforeTestcase has error. Do you know this issue?

Chrome will keep some configuration files, but there will be problems when it returns to 72, and there will be need to delete them.

Where I can find configuration files in Chrome? I installed version 72 but have the same issue before

Hi @alexsandro134,

Please show more execution logs detail, we needs to know what keyword causes this freeze?

@duyluong this issue is not belong to keyword, because i created new sample project in KTL and run in Jenkins and have the same issue

Hi @alexsandro134,

Yeah, but we need to know the step causes this failure: openBrowser or maximizeWindow? Please help us show more logs.

Thanks

Hi @duyluong

I have also the same issue. I downgraded to Chrome v72 but still the error existed. here is my log

@duyluong: i’m attached log as below. As i see, after function setText, this issue will occur:

Opening project file: C:\Users\tailet\Katalon Studio\Demo_Jenkins_KTL.prj\Jira UI Tests with Katalon Studio.prj
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
169 2.4.7.xx-201611170128-e46 = ACTIVE
/C%%Users%tailet%Katalon Studio%Demo_Jenkins_KTL.prj%Jira UI Tests with Katalon Studio.prj/Keywords/com/jira/components/SimpleIssueListItem.groovy: 22 Groovy:unable to resolve class internal.GlobalVariable
/C%%Users%tailet%Katalon Studio%Demo_Jenkins_KTL.prj%Jira UI Tests with Katalon Studio.prj/Keywords/com/jira/utils/JWait.groovy: 10 Groovy:unable to resolve class internal.GlobalVariable
/C%%Users%tailet%Katalon Studio%Demo_Jenkins_KTL.prj%Jira UI Tests with Katalon Studio.prj/Test Listeners/TestListener.groovy: 9 Groovy:unable to resolve class internal.GlobalVariable
Generating global variables…
Parsing custom keywords…
Project ‘Jira UI Tests with Katalon Studio’ opened


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)

2019-04-22 16:41:32.109 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/Regression Tests/Regression Tests
2019-04-22 16:41:32.618 INFO c.k.katalon.core.main.TestSuiteExecutor - hostName = HN-SD-0131-WK$ - HN-SD-0131-WK.HarveyNash.vn.local
2019-04-22 16:41:32.619 INFO c.k.katalon.core.main.TestSuiteExecutor - os = Windows 10 64bit
2019-04-22 16:41:32.619 INFO c.k.katalon.core.main.TestSuiteExecutor - hostAddress = 192.168.204.2
2019-04-22 16:41:32.620 INFO c.k.katalon.core.main.TestSuiteExecutor - katalonVersion = 6.1.0.1
2019-04-22 16:41:33.366 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-04-22 16:41:33.366 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Advance Examples/Tests/Create Issue Test/User should be able to create issue successfully
2019-04-22 16:41:33.485 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) project = Katalon-Demo (KD)
2019-04-22 16:41:33.495 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) issueType = Bug
2019-04-22 16:41:33.506 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) priority = Low
2019-04-22 16:41:33.519 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) description = As a User, I want to be able to create a new tickets, so that I can keep track all tasks
2019-04-22 16:41:33.530 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) summary = Ticket created at
2019-04-22 16:41:35.172 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome’ driver
2019-04-22 16:41:35.812 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)

2019-04-22 16:42:02.350 DEBUG uld be able to create issue successfully - 1: callTestCase(findTestCase(“Advance Examples/Pages/Login Page/Login with username and encrypted password”), [“username”:username, “encryptedPassword”:encrypted_password], STOP_ON_FAILURE)
2019-04-22 16:42:02.610 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-04-22 16:42:02.610 INFO c.k.katalon.core.main.TestCaseExecutor - CALL Test Cases/Advance Examples/Pages/Login Page/Login with username and encrypted password
2019-04-22 16:42:02.660 INFO c.k.katalon.core.main.TestCaseExecutor - username = tom
2019-04-22 16:42:02.661 INFO c.k.katalon.core.main.TestCaseExecutor - encryptedPassword = KLAk0b2rAgvA1EV7zgpKiS/uV+5nc48Y
2019-04-22 16:42:02.887 DEBUG gin with username and encrypted password - 1: setText(findTestObject(“Test Objects/Pages/Login Page/elUsername”), username)


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)


Test Suites/Regression Tests/Regression Tests - Chrome - 20190422_164115.0/1(0%)

hi,

if you wanna see Chrome browser during test execution then start Jenkins as process not the service
open jenkins as process
cd C:\Program Files (x86)\Jenkins
java -jar jenkins.war
Works fine with latest Chrome version 73.0.3683.103
1 Like

Hi Timo, so do you suggest we un-install jenkins and re-install it thru the war file?

hi,

no needed to uninstall it, just start it as process as I said
if started as service then stop it and start again with
java -jar jenkins.war
you will need to reinstall Katalon Studio plugin if is not there already, check

Hi Tino,

its already working now. but during execution, all my tc’s failed on the first step, which is WebUI.openBrowser, hence still not launching the browser in Jenkins
here is the error log.


openBrowser(“https://e2e-dev.ctech-ul.com/”) FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: ‘https://e2e-dev.ctech-ul.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 LoginUsingValidAccount.run(LoginUsingValidAccount:17)
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:342)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:333)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:312)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:304)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:238)
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 TempTestSuite1556087670029.run(TempTestSuite1556087670029.groovy:35)
Caused by: org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
(Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 10.0.14393 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 107 milliseconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘GMAEEAUTO-WVM’, ip: ‘172.16.3.4’, os.name: ‘Windows Server 2016’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: CChromeDriver
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600)
at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:20)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:142)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:147)
at com.kms.katalon.selenium.driver.CChromeDriver.(CChromeDriver.java:13)
at com.kms.katalon.core.webui.driver.DriverFactory.createNewChromeDriver(DriverFactory.java:281)
at com.kms.katalon.core.webui.driver.DriverFactory.startNewBrowser(DriverFactory.java:243)
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 Script1555041358395.run(Script1555041358395.groovy:17)


hi,

check this chain

or this chain

Great! Thank you Timo!