How to launch browser from Jenkins directly when the test cases are running

Hi all
Here i need the know the input from you guys.

How to launch browser from Jenkins directly when the test cases are running


You need to give more information Hemanth.

What do you mean by ‘launch browser from Jenkins directly’ ? I may get better understanding if you explain you scenario.

1 Like

Hi Rudra,

I also want the solution of this so explaining my scenarios below:

I have configured Jenkins with Katalon studio but not able to launch the browser. Can anybody let me know what configuration we need to set it to launch (Chrome) browser in using Jenkins with Katalon studio.

I have set up below command and able to run my Job with Headless execution but I also need to the browser to get launch.

katalon -noSplash  -runMode=console -projectPath="C:\NeerajS\Katalon\Automation\Automation.prj" -retry=0 -testSuitePath="Test Suites/TC_01" -executionProfile="default" -browserType="Chrome"

Please provide any solution ASAP.

Hi @neeraj.srivastava
Could you post console log here?

you cmd line code seems to be correct

Building in workspace C:\Program Files (x86)\Jenkins\workspace\KatalonStudioPOC
[KatalonStudioPOC] $ cmd /c call C:\Windows\TEMP\jenkins5412286998303710275.bat

C:\Program Files (x86)\Jenkins\workspace\KatalonStudioPOC>C:

C:\Program Files (x86)\Jenkins\workspace\KatalonStudioPOC>cd C:\Users\nsrivastava\Downloads\Katalon_Studio_Windows_64-5.10.1

C:\Users\nsrivastava\Downloads\Katalon_Studio_Windows_64-5.10.1>katalon -noSplash -runMode=console -projectPath=“C:\NeerajS\Katalon\Automation\Automation.prj” -retry=0 -testSuitePath=“Test Suites/TC_01” -executionProfile=“default” -browserType=“Chrome”
[EL Warning]: 2019-02-14 05:06:26.055–Ignoring attribute [lastRun] on class [TestSuiteEntity] as no Property was generated for it.
Delete folder: bin
Delete folder: Libs
Opening project file: C:\NeerajS\Katalon\Automation.prj
Request sent successfully.
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
166 2.4.7.xx-201611170128-e46 = ACTIVE
/C%%NeerajS%Katalon%Automation%Automation.prj/Keywords/customKeywords/selectCheckBox.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
Parsing custom keywords…
/C%%NeerajS%Katalon%Automation%Automation.prj/Keywords/customKeywords/selectCheckBox.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/C%%NeerajS%Katalon%Automation%Automation.prj/Keywords/customKeywords/selectCheckBox.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
Generating global variables…
Project ‘Automation’ opened

Test Suites/TC_01 - Chrome - 20190214_050632…0/1(0%)

Request sent successfully.
2019-02-14 05:06:35.588 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/TC_01
2019-02-14 05:06:35.651 INFO c.k.katalon.core.main.TestSuiteExecutor - os = Windows Server 2016 64bit
2019-02-14 05:06:35.653 INFO c.k.katalon.core.main.TestSuiteExecutor - katalonVersion =
2019-02-14 05:06:35.932 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-02-14 05:06:35.933 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/TC_01
2019-02-14 05:06:36.608 DEBUG testcase.TC_01 - 1: openBrowser("")
2019-02-14 05:06:37.052 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome’ driver
2019-02-14 05:06:37.118 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds
Starting ChromeDriver 2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a) on port 14665
Only local connections are allowed.
Feb 14, 2019 5:06:40 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
2019-02-14 05:06:40.178 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 3538f1e25894e3a1d40cf2fd9bd6329c
2019-02-14 05:06:40.249 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 72.0.3626.81
2019-02-14 05:06:40.250 INFO c.k.k.core.webui.driver.DriverFactory - platform = Windows Server 2016
2019-02-14 05:06:40.254 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.7.1
2019-02-14 05:06:40.255 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}
2019-02-14 05:06:40.256 DEBUG testcase.TC_01 - 2: navigateToUrl(“myURL”)
2019-02-14 05:06:43.191 DEBUG

Test Suites/TC_01 - Chrome - 20190214_050632…0/1(0%)

2019-02-14 05:06:52.779 INFO c.k.katalon.core.main.TestSuiteExecutor - --------------------
2019-02-14 05:06:52.780 INFO c.k.katalon.core.main.TestSuiteExecutor - END Test Suites/TC_01
2019-02-14 05:06:52.780 INFO c.k.katalon.core.main.TestSuiteExecutor - ====================

Test Suites/TC_01 - Chrome - 20190214_050632…1/1(100%)

Test Suites/TC_01 - Chrome - 20190214_050632…1/1(100%)

C:\Users\nsrivastava\Downloads\Katalon_Studio_Windows_64-5.10.1>exit 0
Finished: SUCCESS

Hi Rudra,

Please find the console logs its executed successfully but chrome browser not launched. It executed headless.

Can you try updating ChromeDriver ? Chrome 72 is supported by chromedriver version 2.45/45 only. You are using Chromedriver 2.43

Hi Rudra,

I have updated the driver as well but chrome browser not get launched while running job from Jenkins. Please look into this issue.

Starting ChromeDriver 2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1) on port 61262 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.

Feb 15, 2019 1:39:48 AM org.openqa.selenium.remote.ProtocolHandshake createSession

It seems Jenkins servers firewall or malware is blocking chromedriver to connect to host. Can you check with your organization’s IT Team?

I can be reached at skype: trivedirudresh in case you want to contact.

Hi Rudra,

You are saying that my firewall is blocking my chrome to get launch?
So is there any specific setting or parameter to execute headless and to launch real browser that required in Katalon.

As I am able to execute headless chrome.