Hi,
Im trying to run a test suite using jenkins chrome headless, but naviagetourl keyword in not working.
In katalon it works good when run as chrome headless.
jenkins command :
C:\Users\QAserver2\Downloads\Katalon_Studio_Windows_64-5.8.6\Katalon_Studio_Windows_64-5.8.6\katalon -runMode=console -projectPath=“D:\workspace\katalon\git\insight_automation\insight_automation_test.prj” -retry=0 -testSuitePath=“Test Suites/001_RegistJobNotice” -executionProfile=“Production_QA” -browserType=“Chrome (headless)”
jenkins logs :
Katalon workspace folder is set to default location: C:\Users\QAserver2\Downloads\Katalon_Studio_Windows_64-5.8.6\Katalon_Studio_Windows_64-5.8.6\config
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
170 2.4.7.xx-201611170128-e46 = ACTIVE
INFO: Katalon Version: 6.3.2
INFO: Command-line arguments: -runMode=console -projectPath=D:\workspace\katalon\git\insight_automation\insight_automation_test.prj -retry=0 -testSuitePath=Test Suites/001_RegistJobNotice -executionProfile=Production_QA -browserType=Chrome (headless)
INFO: User working dir: C:\Program Files (x86)\Jenkins\workspace\Insight Regression Project
INFO: User home: C:\Windows\system32\config\systemprofile
INFO: Java vendor: Oracle Corporation
INFO: Java version: 1.8.0_181
INFO: Local OS: Windows 7 64bit
INFO: CPU load: 24%
INFO: Total memory: 8149 MB
INFO: Free memory: 5296 MB
Delete folder: bin
Delete folder: Libs
Opening project file: D:\workspace\katalon\git\insight_automation\insight_automation_test.prj
Parsing custom keywords in Plugins folder…
09:28:50.882 [main] DEBUG org.eclipse.jgit.util.FS - readpipe [git, --version],C:\Program Files\Git\cmd
09:28:50.900 [main] DEBUG org.eclipse.jgit.util.FS - readpipe may return ‘git version 2.19.1.windows.1’
09:28:50.900 [main] DEBUG org.eclipse.jgit.util.FS - remaining output:
09:28:50.901 [main] DEBUG org.eclipse.jgit.util.FS - readpipe [git, config, --system, --edit],C:\Program Files\Git\cmd
09:28:50.925 [main] DEBUG org.eclipse.jgit.util.FS - readpipe may return ‘C:/Program Files/Git/mingw64/etc/gitconfig’
09:28:50.925 [main] DEBUG org.eclipse.jgit.util.FS - remaining output:
/D%%workspace%katalon%git%insight_automation%insight_automation_test.prj/Keywords/userdefinepkg/File_Handle.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%workspace%katalon%git%insight_automation%insight_automation_test.prj/Keywords/userdefinepkg/customFileupload.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%workspace%katalon%git%insight_automation%insight_automation_test.prj/Keywords/userdefinepkg/dynamicTestobject.groovy: 20 Groovy:unable to resolve class internal.GlobalVariable
/D%%workspace%katalon%git%insight_automation%insight_automation_test.prj/Keywords/userdefinepkg/forcestop.groovy: 20 Groovy:unable to resolve class internal.GlobalVariable
/D%%workspace%katalon%git%insight_automation%insight_automation_test.prj/Keywords/userdefinepkg/killchromeprocess.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
/D%%workspace%katalon%git%insight_automation%insight_automation_test.prj/Keywords/userdefinepkg/timeExpression.groovy: 18 Groovy:unable to resolve class groovy.time.TimeCategory
/D%%workspace%katalon%git%insight_automation%insight_automation_test.prj/Keywords/userdefinepkg/timeExpression.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable
Generating global variables…
Parsing custom keywords…
Project ‘insight_automation_test’ opened
chromedriver is located at default location: C:\Users\QAserver2\Downloads\Katalon_Studio_Windows_64-5.8.6\Katalon_Studio_Windows_64-5.8.6\configuration\resources\drivers\chromedriver_win32\chromedriver.exe. In case your browser is updated to a newer version, please use this command to update chromdriver: --config -webui.autoUpdateDrivers=true
Test Suites/001_RegistJobNotice - Chrome (headless) - 20190829_092854…0/1(0%)
2019-08-29 09:28:55.607 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/001_RegistJobNotice
2019-08-29 09:28:55.641 INFO c.k.katalon.core.main.TestSuiteExecutor - hostName = QASERVER2-PC$ - QAserver2-PC
2019-08-29 09:28:55.641 INFO c.k.katalon.core.main.TestSuiteExecutor - os = Windows 7 64bit
2019-08-29 09:28:55.642 INFO c.k.katalon.core.main.TestSuiteExecutor - hostAddress = 10.10.13.19
2019-08-29 09:28:55.642 INFO c.k.katalon.core.main.TestSuiteExecutor - katalonVersion = 6.3.2.4
2019-08-29 09:28:55.860 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-08-29 09:28:55.860 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/ETC/test
2019-08-29 09:28:56.087 DEBUG testcase.test - 1: openBrowser("")
2019-08-29 09:28:56.288 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome (headless)’ driver
8占쏙옙 29, 2019 9:28:56 占쏙옙占쏙옙 org.openqa.selenium.remote.DesiredCapabilities chrome
占쏙옙占쏙옙: Using new ChromeOptions()
is preferred to DesiredCapabilities.chrome()
2019-08-29 09:28:56.314 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds
Starting ChromeDriver 76.0.3809.68 (420c9498db8ce8fcd190a954d51297672c1515d5-refs/branch-heads/3809@{#864}) on port 48081
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
8占쏙옙 29, 2019 9:28:58 占쏙옙占쏙옙 org.openqa.selenium.remote.ProtocolHandshake createSession
占쏙옙占쏙옙: Detected dialect: W3C
2019-08-29 09:28:58.882 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 8a603a9e0296a34252abb80c6c4c85b2
2019-08-29 09:28:58.905 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 76.0.3809.132
2019-08-29 09:28:58.906 INFO c.k.k.core.webui.driver.DriverFactory - platform = Windows 7
2019-08-29 09:28:58.909 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59
2019-08-29 09:28:58.910 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}
2019-08-29 09:28:58.912 DEBUG testcase.test - 2: maximizeWindow()
2019-08-29 09:29:00.054 DEBUG testcase.test - 3: navigateToUrl(“http://www.google.com”)
Test Suites/001_RegistJobNotice - Chrome (headless) - 20190829_092854…0/1(0%)
Thank you for your help.