Cannot run visual checkpoint tests in TestOps

I have a visual checkpoint test that I created in studio and uploaded to TestOps via a GIT repository. When I run the test via TestOps it fails because it cannot take the screenshot.

The specific errors are:

  • [2023-12-22T20:24:55.853Z] [DEBUG]: 2023-12-22 20:24:55.852 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Cannot take screenshot (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot

  • Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null

I’m wondering if this might be due to some test listeners that were set up on this project that appear to be executing when I run a test suite via TestOps - even though I don’t see those listeners listed in the repository. I find the following line the the log in the list of executed steps:
[2023-12-22T20:24:55.885Z] [DEBUG]: 2023-12-22 20:24:55.884 WARN c.k.k.core.webui.driver.DriverFactory - A browser is already opened. Closing browser and opening a new one

Here are the contents of the debug log from TestOps
[2023-12-22T20:24:23.385Z] [INFO]: Triggered by Katalon TestCloud Agent v1.20.0.
[2023-12-22T20:24:23.385Z] [INFO]: Triggered by Katalon TestCloud Agent v1.20.0.
[2023-12-22T20:24:23.387Z] [INFO]: Agent server: https://testops.katalon.io
[2023-12-22T20:24:23.387Z] [INFO]: Agent user: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[2023-12-22T20:24:23.387Z] [INFO]: Start parsing test scripts in Linux machine to execute tests on a remote environment.
[2023-12-22T20:24:23.387Z] [INFO]: Cloning from XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (refs/heads/main) into /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git. It may take a few minutes.
[2023-12-22T20:24:23.959Z] [DEBUG]: Configure Katalon TestOps integration.
[2023-12-22T20:24:23.961Z] [DEBUG]: Finish configuring Katalon TestOps integration.
[2023-12-22T20:24:23.961Z] [DEBUG]: Start: Configure TestCloud keyword.
[2023-12-22T20:24:23.961Z] [DEBUG]: Finished: Configure TestCloud keyword.
[2023-12-22T20:24:23.963Z] [DEBUG]: Start downloading extra files.
[2023-12-22T20:24:23.963Z] [DEBUG]: Finish downloading extra files.
[2023-12-22T20:24:23.963Z] [DEBUG]: Executing with the latest version of KRE that is compatible with your selected environment.
[2023-12-22T20:24:24.036Z] [INFO]: Katalon Folder: /katalon-agent/.katalon/9.0.0
[2023-12-22T20:24:24.083Z] [INFO]: Katalon Executable File: /katalon-agent/.katalon/9.0.0/Katalon_Studio_Engine_Linux_64-9.0.0/katalonc
[2023-12-22T20:24:24.084Z] [INFO]: KRE LICENSE IS NOT REQUIRED FOR RUNNING TESTCLOUD AGENT.
[2023-12-22T20:24:24.084Z] [INFO]: Execute Katalon Studio: /katalon-agent/.katalon/9.0.0/Katalon_Studio_Engine_Linux_64-9.0.0/katalonc -noSplash -runMode=“console” -projectPath=“/katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/QA.AutomationTrainingRepo.prj” -testSuitePath=“Test Suites/Mark Test Suites/Suites/VisualTestSuite” -executionProfile=“default” --config -webui.autoUpdateDrivers=false -executionUUID=******** -orgId=XXXXXX -testOps.jobUUID=5100f3c5-3a86-4ce7-9001-be35cef61606 -apiKey=********
[2023-12-22T20:24:24.085Z] [INFO]: Execute “sh -c xvfb-run -a -n 0 -s “-screen 0 1920x1080x24” /katalon-agent/.katalon/9.0.0/Katalon_Studio_Engine_Linux_64-9.0.0/katalonc -noSplash -runMode=“console” -projectPath=”/katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/QA.AutomationTrainingRepo.prj" -testSuitePath=“Test Suites/Mark Test Suites/Suites/VisualTestSuite” -executionProfile=“default” --config -webui.autoUpdateDrivers=false -executionUUID=******** -orgId=XXXXXX -testOps.jobUUID=5100f3c5-3a86-4ce7-9001-be35cef61606 -apiKey=********" in /tmp/tmp-38-sFj9U8lYTPyN.
[2023-12-22T20:24:28.978Z] [DEBUG]: Katalon workspace folder is set to default location: /tmp/session-1be31276

[2023-12-22T20:24:29.170Z] [DEBUG]: Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified

[2023-12-22T20:24:29.171Z] [DEBUG]: 167
[2023-12-22T20:24:29.171Z] [DEBUG]: org.codehaus.groovy_3.0.17.v202303311542-e2303 ACTIVE

[2023-12-22T20:24:29.399Z] [DEBUG]: Activating…

[2023-12-22T20:24:29.401Z] [DEBUG]: Start getting machine ID on Linux
[2023-12-22T20:24:29.401Z] [DEBUG]:

[2023-12-22T20:24:29.410Z] [DEBUG]: End getting machine ID on Linux a07e2f4c8e544f7d757fcf126565bb7d
[2023-12-22T20:24:29.410Z] [DEBUG]:
Start appending additional signatures

[2023-12-22T20:24:29.411Z] [DEBUG]: hardwareSerialNumber
[2023-12-22T20:24:29.411Z] [DEBUG]:
osDependentUsername agent

[2023-12-22T20:24:29.411Z] [DEBUG]: End appending additional signatures a07e2f4c8e544f7d757fcf126565bb7d__agent

[2023-12-22T20:24:29.415Z] [DEBUG]: Start activating offline…

[2023-12-22T20:24:29.415Z] [DEBUG]: Search for valid offline licenses in folder: /katalon-agent/.katalon/license
[2023-12-22T20:24:29.415Z] [DEBUG]:

[2023-12-22T20:24:29.418Z] [DEBUG]: Start checking license: ENGINE_katalon-special-license_141393352.lic

[2023-12-22T20:24:29.617Z] [DEBUG]: ENGINE_katalon-special-license_141393352.lic is valid.

[2023-12-22T20:24:29.617Z] [DEBUG]: The number of valid offline licenses: 1

[2023-12-22T20:24:29.625Z] [DEBUG]: The number of Runtime Engine running sessions: 1

[2023-12-22T20:24:30.007Z] [DEBUG]: Activated successfully with Katalon Runtime Engine license.

[2023-12-22T20:24:30.007Z] [DEBUG]: Activated successfully with TestCloud license.

[2023-12-22T20:24:30.009Z] [DEBUG]:

[2023-12-22T20:24:30.009Z] [DEBUG]:
INFO: Katalon Version: 9.0.0

[2023-12-22T20:24:30.010Z] [DEBUG]: INFO: Command-line arguments: -runMode=console -projectPath=/katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/QA.AutomationTrainingRepo.prj -testSuitePath=Test Suites/Mark Test Suites/Suites/VisualTestSuite -executionProfile=default --config -webui.autoUpdateDrivers=false -executionUUID=******** -orgId=XXXXXX -testOps.jobUUID=5100f3c5-3a86-4ce7-9001-be35cef61606 -apiKey=********
[2023-12-22T20:24:30.010Z] [DEBUG]:
INFO: User working dir: /tmp/tmp-38-sFj9U8lYTPyN

[2023-12-22T20:24:30.011Z] [DEBUG]: INFO: Error log: /tmp/session-1be31276/.metadata/.log
INFO: Katalon KatOne server URL: https://admin.katalon.com

[2023-12-22T20:24:30.011Z] [DEBUG]: INFO: Katalon TestOps server URL: https://testops.katalon.io

[2023-12-22T20:24:30.011Z] [DEBUG]: INFO: Katalon Store server URL: https://store.katalon.com
INFO: User home: /katalon-agent

[2023-12-22T20:24:30.011Z] [DEBUG]: INFO: Java vendor: Private Build
INFO: Java version: 17.0.8.1
[2023-12-22T20:24:30.011Z] [DEBUG]:
INFO: Local OS: Linux 64bit

[2023-12-22T20:24:30.051Z] [DEBUG]: INFO: CPU load: 40%

[2023-12-22T20:24:30.051Z] [DEBUG]: INFO: Total memory: 6144 MB
[2023-12-22T20:24:30.051Z] [DEBUG]:

[2023-12-22T20:24:30.052Z] [DEBUG]: INFO: Free memory: 4430 MB

[2023-12-22T20:24:30.052Z] [DEBUG]: INFO: Machine ID: 13a0d6c424caeda6e18983af94ae701e

[2023-12-22T20:24:30.052Z] [DEBUG]:

[2023-12-22T20:24:30.053Z] [DEBUG]: Cleaning up workspace
[2023-12-22T20:24:30.053Z] [DEBUG]:

[2023-12-22T20:24:30.053Z] [DEBUG]: Opening project file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/QA.AutomationTrainingRepo.prj

[2023-12-22T20:24:30.823Z] [DEBUG]: Generating global variables…

[2023-12-22T20:24:31.815Z] [DEBUG]: Project ‘QA.AutomationTrainingRepo’ opened

[2023-12-22T20:24:31.824Z] [DEBUG]: Start reloading plugins…

[2023-12-22T20:24:32.236Z] [DEBUG]: Katalon version: 9.0.0
[2023-12-22T20:24:32.237Z] [DEBUG]:
Plugin info URL: https://store.katalon.com/api/products/ks?appVersion=9.0.0&appType=ENGINE&licenseType=ENTERPRISE

[2023-12-22T20:24:33.107Z] [DEBUG]: Start checking license task

[2023-12-22T20:24:36.011Z] [DEBUG]: INFO: KATALON_JAVA_HOME: null

[2023-12-22T20:24:36.038Z] [DEBUG]:

Test Suites/Mark Test Suites/Suites/VisualTestSuite - Remote - 20231222_202434…
…0/1(0%)

[2023-12-22T20:24:38.286Z] [DEBUG]: 2023-12-22 20:24:38.284 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/Mark Test Suites/Suites/VisualTestSuite

[2023-12-22T20:24:38.309Z] [DEBUG]: 2023-12-22 20:24:38.308 INFO c.k.katalon.core.main.TestSuiteExecutor - hostName = agent - 288317winchrome119-2828326-katalon-agent-bsx65

[2023-12-22T20:24:38.310Z] [DEBUG]: 2023-12-22 20:24:38.309 INFO c.k.katalon.core.main.TestSuiteExecutor - os = Linux 64bit

[2023-12-22T20:24:38.310Z] [DEBUG]: 2023-12-22 20:24:38.310 INFO c.k.katalon.core.main.TestSuiteExecutor - hostAddress = 172.48.124.83
[2023-12-22T20:24:38.310Z] [DEBUG]:

[2023-12-22T20:24:38.311Z] [DEBUG]: 2023-12-22 20:24:38.310 INFO c.k.katalon.core.main.TestSuiteExecutor - katalonVersion = 9.0.0.212

[2023-12-22T20:24:38.797Z] [DEBUG]: 2023-12-22 20:24:38.796 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘appName’, ‘’]

[2023-12-22T20:24:38.797Z] [DEBUG]: 2023-12-22 20:24:38.797 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘katalon:option’, ‘{runFromTestCloud=true}’]

[2023-12-22T20:24:38.798Z] [DEBUG]: 2023-12-22 20:24:38.798 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnel’, ‘false’]

[2023-12-22T20:24:38.798Z] [DEBUG]: 2023-12-22 20:24:38.798 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnelName’, ‘’]

[2023-12-22T20:24:38.799Z] [DEBUG]: 2023-12-22 20:24:38.799 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘privateCloud’, ‘false’]

[2023-12-22T20:24:38.799Z] [DEBUG]: 2023-12-22 20:24:38.799 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserName’, ‘Chrome’]

[2023-12-22T20:24:38.800Z] [DEBUG]: 2023-12-22 20:24:38.799 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘platformName’, ‘Windows 10’]

[2023-12-22T20:24:38.800Z] [DEBUG]: 2023-12-22 20:24:38.800 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserVersion’, ‘119.0’]
[2023-12-22T20:24:38.800Z] [DEBUG]:

[2023-12-22T20:24:38.905Z] [DEBUG]: 2023-12-22 20:24:38.904 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 milliseconds

[2023-12-22T20:24:42.516Z] [DEBUG]: Dec 22, 2023 8:24:42 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
[2023-12-22T20:24:42.517Z] [DEBUG]:

[2023-12-22T20:24:42.596Z] [DEBUG]: 2023-12-22 20:24:42.596 INFO c.k.k.core.webui.driver.DriverFactory - desiredCapabilities = {
[2023-12-22T20:24:42.596Z] [DEBUG]:
“networkConnectionEnabled”: false,
“chrome”: {
“chromedriverVersion”: “119.0.6045.9 (c7ec5863fa5c563b4b9057148aa2ae3f09f7994e-refs/branch-heads/6045@{#87})”,
“userDataDir”: “C:\Program Files (x86)\scoped_dir4692_181651941”
},
“timeouts”: {
“implicit”: 0,
“pageLoad”: 300000,
“script”: 30000
},
“pageLoadStrategy”: “normal”,
“unhandledPromptBehavior”: “dismiss and notify”,
“strictFileInteractability”: false,
“platform”: “WINDOWS”,
“proxy”: {
“proxyType”: “DIRECT”,
“autodetect”: false
},
“webauthn:extension:minPinLength”: true,
“goog:chromeOptions”: {

[2023-12-22T20:24:42.597Z] [DEBUG]: “debuggerAddress”: “localhost:53608”
},
“webdriver.remote.sessionid”: “05b561c8c8697bd3a4579fbb89f8f25a”,
“webauthn:extension:credBlob”: true,
“webauthn:extension:prf”: true,
“acceptInsecureCerts”: false,
“browserVersion”: “119.0.6045.106”,
“fedcm:accounts”: true,
“browserName”: “chrome”,
“javascriptEnabled”: true,
“platformName”: “WINDOWS”,
“setWindowRect”: true,
“webauthn:extension:largeBlob”: true,
“webauthn:virtualAuthenticators”: true
}

[2023-12-22T20:24:42.597Z] [DEBUG]: 2023-12-22 20:24:42.597 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 05b561c8c8697bd3a4579fbb89f8f25a

[2023-12-22T20:24:42.642Z] [DEBUG]: 2023-12-22 20:24:42.642 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 119.0.0.0

[2023-12-22T20:24:42.643Z] [DEBUG]: 2023-12-22 20:24:42.642 INFO c.k.k.core.webui.driver.DriverFactory - platform = Linux

[2023-12-22T20:24:42.643Z] [DEBUG]: 2023-12-22 20:24:42.643 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59

[2023-12-22T20:24:42.644Z] [DEBUG]: 2023-12-22 20:24:42.643 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList=“”, isApplyToDesiredCapabilities=true }

[2023-12-22T20:24:43.202Z] [DEBUG]: 2023-12-22 20:24:43.201 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2023-12-22 20:24:43.201 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test

[2023-12-22T20:24:43.281Z] [DEBUG]: 2023-12-22 20:24:43.280 DEBUG testcase.Visual Test - 1: openBrowser(“https://katalon-demo-cura.herokuapp.com/”)

[2023-12-22T20:24:43.285Z] [DEBUG]: 2023-12-22 20:24:43.285 WARN c.k.k.core.webui.driver.DriverFactory - A browser is already opened. Closing browser and opening a new one

[2023-12-22T20:24:43.371Z] [DEBUG]: 2023-12-22 20:24:43.371 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘appName’, ‘’]

[2023-12-22T20:24:43.372Z] [DEBUG]: 2023-12-22 20:24:43.372 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘katalon:option’, ‘{runFromTestCloud=true}’]

[2023-12-22T20:24:43.372Z] [DEBUG]: 2023-12-22 20:24:43.372 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnel’, ‘false’]

[2023-12-22T20:24:43.373Z] [DEBUG]: 2023-12-22 20:24:43.372 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnelName’, ‘’]
2023-12-22 20:24:43.372 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘privateCloud’, ‘false’]

[2023-12-22T20:24:43.373Z] [DEBUG]: 2023-12-22 20:24:43.373 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserName’, ‘Chrome’]

[2023-12-22T20:24:43.373Z] [DEBUG]: 2023-12-22 20:24:43.373 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘platformName’, ‘Windows 10’]

[2023-12-22T20:24:43.373Z] [DEBUG]: 2023-12-22 20:24:43.373 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserVersion’, ‘119.0’]

[2023-12-22T20:24:43.375Z] [DEBUG]: 2023-12-22 20:24:43.375 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 milliseconds

[2023-12-22T20:24:46.835Z] [DEBUG]: Dec 22, 2023 8:24:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

[2023-12-22T20:24:46.913Z] [DEBUG]: 2023-12-22 20:24:46.912 INFO c.k.k.core.webui.driver.DriverFactory - desiredCapabilities = {
“networkConnectionEnabled”: false,

[2023-12-22T20:24:46.913Z] [DEBUG]: “chrome”: {
“chromedriverVersion”: “119.0.6045.9 (c7ec5863fa5c563b4b9057148aa2ae3f09f7994e-refs/branch-heads/6045@{#87})”,
“userDataDir”: “C:\Program Files (x86)\scoped_dir3656_1262054396”
},
“timeouts”: {
“implicit”: 0,
“pageLoad”: 300000,
“script”: 30000
},
“pageLoadStrategy”: “normal”,
“unhandledPromptBehavior”: “dismiss and notify”,
“strictFileInteractability”: false,
“platform”: “WINDOWS”,
“proxy”: {
“proxyType”: “DIRECT”,
“autodetect”: false
},
“webauthn:extension:minPinLength”: true,
“goog:chromeOptions”: {
“debuggerAddress”: “localhost:59358”
},
“webdriver.remote.sessionid”: “ef67470dbbb15f23f13ed15a4e7b78c9”,
“webauthn:extension:credBlob”: true,
“webauthn:extension:prf”: true,
“acceptInsecureCerts”: false,
“browserVersion”: “119.0.6045.106”,
“fedcm:accounts”: true,
“browserName”: “chrome”,
“javascriptEnabled”: true,
“platformName”: “WINDOWS”,
“setWindowRect”: true,
“webauthn:extension:largeBlob”: true,
“webauthn:virtualAuthenticators”: true
}

[2023-12-22T20:24:46.914Z] [DEBUG]: 2023-12-22 20:24:46.913 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = ef67470dbbb15f23f13ed15a4e7b78c9

[2023-12-22T20:24:46.965Z] [DEBUG]: 2023-12-22 20:24:46.964 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 119.0.0.0

[2023-12-22T20:24:46.965Z] [DEBUG]: 2023-12-22 20:24:46.965 INFO c.k.k.core.webui.driver.DriverFactory - platform = Linux

[2023-12-22T20:24:46.965Z] [DEBUG]: 2023-12-22 20:24:46.965 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59

[2023-12-22T20:24:46.966Z] [DEBUG]: 2023-12-22 20:24:46.966 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList=“”, isApplyToDesiredCapabilities=true }
[2023-12-22T20:24:46.966Z] [DEBUG]:

[2023-12-22T20:24:47.386Z] [DEBUG]: 2023-12-22 20:24:47.386 DEBUG testcase.Visual Test - 2: maximizeWindow(STOP_ON_FAILURE)

[2023-12-22T20:24:47.588Z] [DEBUG]: 2023-12-22 20:24:47.587 DEBUG testcase.Visual Test - 3: delay(5)

[2023-12-22T20:24:51.038Z] [DEBUG]:

Test Suites/Mark Test Suites/Suites/VisualTestSuite - Remote - 20231222_202434…
…0/1(0%)

[2023-12-22T20:24:52.601Z] [DEBUG]: 2023-12-22 20:24:52.601 DEBUG testcase.Visual Test - 4: takeScreenshotAsCheckpoint(“Healthcare Demo”)

[2023-12-22T20:24:55.853Z] [DEBUG]: 2023-12-22 20:24:55.852 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Cannot take screenshot (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
[2023-12-22T20:24:55.854Z] [DEBUG]:
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.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Visual Test.run(Visual Test:26)
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:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:148)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:187)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1703276674802.run(TempTestSuite1703276674802.groovy:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null
at com.kms.katalon.core.webui.util.FileUtil.takeViewportScreenshot(FileUtil.java:307)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:67)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:127)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Script1703270795846.run(Script1703270795846.groovy:26)
… 16 more
)

[2023-12-22T20:24:55.857Z] [DEBUG]: 2023-12-22 20:24:55.856 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test FAILED.
[2023-12-22T20:24:55.857Z] [DEBUG]:
Reason:
com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
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.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Visual Test.run(Visual Test:26)
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:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:148)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:187)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1703276674802.run(TempTestSuite1703276674802.groovy:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2023-12-22T20:24:55.857Z] [DEBUG]:
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null
at com.kms.katalon.core.webui.util.FileUtil.takeViewportScreenshot(FileUtil.java:307)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:67)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:127)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
… 22 more

[2023-12-22T20:24:55.867Z] [DEBUG]: 2023-12-22 20:24:55.859 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test

[2023-12-22T20:24:55.868Z] [DEBUG]: 2023-12-22 20:24:55.863 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2023-12-22 20:24:55.863 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test

[2023-12-22T20:24:55.880Z] [DEBUG]: 2023-12-22 20:24:55.879 DEBUG testcase.Visual Test - 1: openBrowser(“https://katalon-demo-cura.herokuapp.com/”)

[2023-12-22T20:24:55.885Z] [DEBUG]: 2023-12-22 20:24:55.884 WARN c.k.k.core.webui.driver.DriverFactory - A browser is already opened. Closing browser and opening a new one

[2023-12-22T20:24:55.968Z] [DEBUG]: 2023-12-22 20:24:55.950 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘appName’, ‘’]

[2023-12-22T20:24:55.968Z] [DEBUG]: 2023-12-22 20:24:55.968 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘katalon:option’, ‘{runFromTestCloud=true}’]

[2023-12-22T20:24:55.968Z] [DEBUG]: 2023-12-22 20:24:55.968 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnel’, ‘false’]

[2023-12-22T20:24:55.969Z] [DEBUG]: 2023-12-22 20:24:55.968 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnelName’, ‘’]

[2023-12-22T20:24:55.969Z] [DEBUG]: 2023-12-22 20:24:55.969 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘privateCloud’, ‘false’]
2023-12-22 20:24:55.969 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserName’, ‘Chrome’]
2023-12-22 20:24:55.969 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘platformName’, ‘Windows 10’]

[2023-12-22T20:24:55.970Z] [DEBUG]: 2023-12-22 20:24:55.969 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserVersion’, ‘119.0’]

[2023-12-22T20:24:55.972Z] [DEBUG]: 2023-12-22 20:24:55.971 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 milliseconds

[2023-12-22T20:24:59.322Z] [DEBUG]: Dec 22, 2023 8:24:59 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

[2023-12-22T20:24:59.389Z] [DEBUG]: 2023-12-22 20:24:59.388 INFO c.k.k.core.webui.driver.DriverFactory - desiredCapabilities = {
“networkConnectionEnabled”: false,

[2023-12-22T20:24:59.389Z] [DEBUG]: “chrome”: {
“chromedriverVersion”: “119.0.6045.9 (c7ec5863fa5c563b4b9057148aa2ae3f09f7994e-refs/branch-heads/6045@{#87})”,
“userDataDir”: “C:\Program Files (x86)\scoped_dir5280_985708086”
},
“timeouts”: {
“implicit”: 0,
“pageLoad”: 300000,
“script”: 30000
},
“pageLoadStrategy”: “normal”,
“unhandledPromptBehavior”: “dismiss and notify”,
“strictFileInteractability”: false,
“platform”: “WINDOWS”,
“proxy”: {
“proxyType”: “DIRECT”,
“autodetect”: false
},
“webauthn:extension:minPinLength”: true,
“goog:chromeOptions”: {
“debuggerAddress”: “localhost:64578”
},
“webdriver.remote.sessionid”: “3843722c4396299f8af638e00f113893”,
“webauthn:extension:credBlob”: true,
“webauthn:extension:prf”: true,
“acceptInsecureCerts”: false,
“browserVersion”: “119.0.6045.106”,
“fedcm:accounts”: true,
“browserName”: “chrome”,
“javascriptEnabled”: true,
“platformName”: “WINDOWS”,
“setWindowRect”: true,
“webauthn:extension:largeBlob”: true,

[2023-12-22T20:24:59.390Z] [DEBUG]: “webauthn:virtualAuthenticators”: true
}
2023-12-22 20:24:59.389 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 3843722c4396299f8af638e00f113893

[2023-12-22T20:24:59.429Z] [DEBUG]: 2023-12-22 20:24:59.428 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 119.0.0.0
[2023-12-22T20:24:59.429Z] [DEBUG]:

[2023-12-22T20:24:59.429Z] [DEBUG]: 2023-12-22 20:24:59.429 INFO c.k.k.core.webui.driver.DriverFactory - platform = Linux

[2023-12-22T20:24:59.430Z] [DEBUG]: 2023-12-22 20:24:59.429 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59

[2023-12-22T20:24:59.430Z] [DEBUG]: 2023-12-22 20:24:59.430 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList=“”, isApplyToDesiredCapabilities=true }

[2023-12-22T20:24:59.844Z] [DEBUG]: 2023-12-22 20:24:59.844 DEBUG testcase.Visual Test - 2: maximizeWindow(STOP_ON_FAILURE)

[2023-12-22T20:25:00.016Z] [DEBUG]: 2023-12-22 20:25:00.015 DEBUG testcase.Visual Test - 3: delay(5)

[2023-12-22T20:25:05.018Z] [DEBUG]: 2023-12-22 20:25:05.018 DEBUG testcase.Visual Test - 4: takeScreenshotAsCheckpoint(“Healthcare Demo”)

[2023-12-22T20:25:06.038Z] [DEBUG]:

Test Suites/Mark Test Suites/Suites/VisualTestSuite - Remote - 20231222_202434…
…1/1(100%)

[2023-12-22T20:25:06.039Z] [DEBUG]:

[2023-12-22T20:25:07.937Z] [DEBUG]: 2023-12-22 20:25:07.937 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Cannot take screenshot (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)

[2023-12-22T20:25:07.938Z] [DEBUG]: at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Visual Test.run(Visual Test:26)
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:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:148)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:187)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1703276674802.run(TempTestSuite1703276674802.groovy:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null
at com.kms.katalon.core.webui.util.FileUtil.takeViewportScreenshot(FileUtil.java:307)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:67)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:127)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Script1703270795846.run(Script1703270795846.groovy:26)
… 17 more
)

[2023-12-22T20:25:07.939Z] [DEBUG]: 2023-12-22 20:25:07.939 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test FAILED.
[2023-12-22T20:25:07.939Z] [DEBUG]:
Reason:
com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
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.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Visual Test.run(Visual Test:26)
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:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
[2023-12-22T20:25:07.940Z] [DEBUG]:
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:148)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:187)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1703276674802.run(TempTestSuite1703276674802.groovy:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null
at com.kms.katalon.core.webui.util.FileUtil.takeViewportScreenshot(FileUtil.java:307)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:67)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:127)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
[2023-12-22T20:25:07.940Z] [DEBUG]:
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
… 23 more

[2023-12-22T20:25:07.941Z] [DEBUG]: 2023-12-22 20:25:07.941 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test
[2023-12-22T20:25:07.942Z] [DEBUG]:

[2023-12-22T20:25:07.943Z] [DEBUG]: 2023-12-22 20:25:07.943 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------

[2023-12-22T20:25:07.943Z] [DEBUG]: 2023-12-22 20:25:07.943 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test

[2023-12-22T20:25:07.955Z] [DEBUG]: 2023-12-22 20:25:07.954 DEBUG testcase.Visual Test - 1: openBrowser(“https://katalon-demo-cura.herokuapp.com/”)

[2023-12-22T20:25:07.967Z] [DEBUG]: 2023-12-22 20:25:07.958 WARN c.k.k.core.webui.driver.DriverFactory - A browser is already opened. Closing browser and opening a new one

[2023-12-22T20:25:08.041Z] [DEBUG]: 2023-12-22 20:25:08.041 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘appName’, ‘’]

[2023-12-22T20:25:08.041Z] [DEBUG]: 2023-12-22 20:25:08.041 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘katalon:option’, ‘{runFromTestCloud=true}’]

[2023-12-22T20:25:08.042Z] [DEBUG]: 2023-12-22 20:25:08.041 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnel’, ‘false’]

[2023-12-22T20:25:08.042Z] [DEBUG]: 2023-12-22 20:25:08.042 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnelName’, ‘’]
2023-12-22 20:25:08.042 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘privateCloud’, ‘false’]

[2023-12-22T20:25:08.042Z] [DEBUG]: 2023-12-22 20:25:08.042 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserName’, ‘Chrome’]

[2023-12-22T20:25:08.043Z] [DEBUG]: 2023-12-22 20:25:08.042 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘platformName’, ‘Windows 10’]

[2023-12-22T20:25:08.043Z] [DEBUG]: 2023-12-22 20:25:08.043 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserVersion’, ‘119.0’]

[2023-12-22T20:25:08.045Z] [DEBUG]: 2023-12-22 20:25:08.044 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 milliseconds

[2023-12-22T20:25:11.433Z] [DEBUG]: Dec 22, 2023 8:25:11 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

[2023-12-22T20:25:11.516Z] [DEBUG]: 2023-12-22 20:25:11.516 INFO c.k.k.core.webui.driver.DriverFactory - desiredCapabilities = {
“networkConnectionEnabled”: false,
“chrome”: {
“chromedriverVersion”: “119.0.6045.9 (c7ec5863fa5c563b4b9057148aa2ae3f09f7994e-refs/branch-heads/6045@{#87})”,

[2023-12-22T20:25:11.517Z] [DEBUG]: “userDataDir”: “C:\Program Files (x86)\scoped_dir1724_27439218”
},
“timeouts”: {
“implicit”: 0,
“pageLoad”: 300000,
“script”: 30000
},
“pageLoadStrategy”: “normal”,
“unhandledPromptBehavior”: “dismiss and notify”,
“strictFileInteractability”: false,
“platform”: “WINDOWS”,
“proxy”: {
“proxyType”: “DIRECT”,
“autodetect”: false
},
“webauthn:extension:minPinLength”: true,
“goog:chromeOptions”: {
“debuggerAddress”: “localhost:58618”
},
“webdriver.remote.sessionid”: “34625336385d48549be8c1e847f53327”,
“webauthn:extension:credBlob”: true,
“webauthn:extension:prf”: true,
“acceptInsecureCerts”: false,
“browserVersion”: “119.0.6045.106”,
“fedcm:accounts”: true,
“browserName”: “chrome”,
“javascriptEnabled”: true,
“platformName”: “WINDOWS”,
“setWindowRect”: true,
“webauthn:extension:largeBlob”: true,
“webauthn:virtualAuthenticators”: true
}

[2023-12-22T20:25:11.517Z] [DEBUG]: 2023-12-22 20:25:11.517 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 34625336385d48549be8c1e847f53327

[2023-12-22T20:25:11.556Z] [DEBUG]: 2023-12-22 20:25:11.555 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 119.0.0.0

[2023-12-22T20:25:11.556Z] [DEBUG]: 2023-12-22 20:25:11.556 INFO c.k.k.core.webui.driver.DriverFactory - platform = Linux

[2023-12-22T20:25:11.556Z] [DEBUG]: 2023-12-22 20:25:11.556 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59

[2023-12-22T20:25:11.557Z] [DEBUG]: 2023-12-22 20:25:11.557 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList=“”, isApplyToDesiredCapabilities=true }

[2023-12-22T20:25:11.725Z] [DEBUG]: 2023-12-22 20:25:11.724 DEBUG testcase.Visual Test - 2: maximizeWindow(STOP_ON_FAILURE)

[2023-12-22T20:25:12.125Z] [DEBUG]: 2023-12-22 20:25:12.125 DEBUG testcase.Visual Test - 3: delay(5)

[2023-12-22T20:25:17.129Z] [DEBUG]: 2023-12-22 20:25:17.128 DEBUG testcase.Visual Test - 4: takeScreenshotAsCheckpoint(“Healthcare Demo”)

[2023-12-22T20:25:19.865Z] [DEBUG]: 2023-12-22 20:25:19.865 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Cannot take screenshot (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot

[2023-12-22T20:25:19.866Z] [DEBUG]: 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.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Visual Test.run(Visual Test:26)
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:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:148)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:187)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1703276674802.run(TempTestSuite1703276674802.groovy:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null
at com.kms.katalon.core.webui.util.FileUtil.takeViewportScreenshot(FileUtil.java:307)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:67)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:127)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Script1703270795846.run(Script1703270795846.groovy:26)
… 18 more
[2023-12-22T20:25:19.866Z] [DEBUG]:
)

[2023-12-22T20:25:19.868Z] [DEBUG]: 2023-12-22 20:25:19.867 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test FAILED.

[2023-12-22T20:25:19.868Z] [DEBUG]: Reason:
com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
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.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Visual Test.run(Visual Test:26)
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:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:148)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:187)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1703276674802.run(TempTestSuite1703276674802.groovy:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[2023-12-22T20:25:19.868Z] [DEBUG]: Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null
at com.kms.katalon.core.webui.util.FileUtil.takeViewportScreenshot(FileUtil.java:307)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:67)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:127)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
… 24 more

[2023-12-22T20:25:19.874Z] [DEBUG]: 2023-12-22 20:25:19.871 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test
2023-12-22 20:25:19.873 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2023-12-22 20:25:19.873 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test

[2023-12-22T20:25:19.879Z] [DEBUG]: 2023-12-22 20:25:19.879 DEBUG testcase.Visual Test - 1: openBrowser(“https://katalon-demo-cura.herokuapp.com/”)

[2023-12-22T20:25:19.884Z] [DEBUG]: 2023-12-22 20:25:19.883 WARN c.k.k.core.webui.driver.DriverFactory - A browser is already opened. Closing browser and opening a new one

[2023-12-22T20:25:19.947Z] [DEBUG]: 2023-12-22 20:25:19.946 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘appName’, ‘’]

[2023-12-22T20:25:19.947Z] [DEBUG]: 2023-12-22 20:25:19.947 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘katalon:option’, ‘{runFromTestCloud=true}’]

[2023-12-22T20:25:19.947Z] [DEBUG]: 2023-12-22 20:25:19.947 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnel’, ‘false’]

[2023-12-22T20:25:19.947Z] [DEBUG]: 2023-12-22 20:25:19.947 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘tunnelName’, ‘’]
2023-12-22 20:25:19.947 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘privateCloud’, ‘false’]

[2023-12-22T20:25:19.948Z] [DEBUG]: 2023-12-22 20:25:19.947 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserName’, ‘Chrome’]

[2023-12-22T20:25:19.948Z] [DEBUG]: 2023-12-22 20:25:19.948 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘platformName’, ‘Windows 10’]

[2023-12-22T20:25:19.948Z] [DEBUG]: 2023-12-22 20:25:19.948 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: [‘browserVersion’, ‘119.0’]

[2023-12-22T20:25:19.949Z] [DEBUG]: 2023-12-22 20:25:19.949 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 milliseconds

[2023-12-22T20:25:21.039Z] [DEBUG]:

Test Suites/Mark Test Suites/Suites/VisualTestSuite - Remote - 20231222_202434…
…1/1(100%)

[2023-12-22T20:25:24.297Z] [DEBUG]: Dec 22, 2023 8:25:24 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

[2023-12-22T20:25:24.370Z] [DEBUG]: 2023-12-22 20:25:24.370 INFO c.k.k.core.webui.driver.DriverFactory - desiredCapabilities = {
“networkConnectionEnabled”: false,

[2023-12-22T20:25:24.371Z] [DEBUG]: “chrome”: {
“chromedriverVersion”: “119.0.6045.9 (c7ec5863fa5c563b4b9057148aa2ae3f09f7994e-refs/branch-heads/6045@{#87})”,
“userDataDir”: “C:\Program Files (x86)\scoped_dir5148_1337952808”
},
“timeouts”: {
“implicit”: 0,
“pageLoad”: 300000,
“script”: 30000
},
“pageLoadStrategy”: “normal”,
“unhandledPromptBehavior”: “dismiss and notify”,
“strictFileInteractability”: false,
“platform”: “WINDOWS”,
“proxy”: {
“proxyType”: “DIRECT”,
“autodetect”: false
},
“webauthn:extension:minPinLength”: true,
“goog:chromeOptions”: {
“debuggerAddress”: “localhost:61875”
},
“webdriver.remote.sessionid”: “e8f4082148f8d6a8e1449fb133a06380”,
“webauthn:extension:credBlob”: true,
“webauthn:extension:prf”: true,
“acceptInsecureCerts”: false,
“browserVersion”: “119.0.6045.106”,
“fedcm:accounts”: true,
“browserName”: “chrome”,
“javascriptEnabled”: true,
“platformName”: “WINDOWS”,
“setWindowRect”: true,
[2023-12-22T20:25:24.371Z] [DEBUG]:
“webauthn:extension:largeBlob”: true,
“webauthn:virtualAuthenticators”: true
}
2023-12-22 20:25:24.370 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = e8f4082148f8d6a8e1449fb133a06380

[2023-12-22T20:25:24.436Z] [DEBUG]: 2023-12-22 20:25:24.436 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 119.0.0.0

[2023-12-22T20:25:24.436Z] [DEBUG]: 2023-12-22 20:25:24.436 INFO c.k.k.core.webui.driver.DriverFactory - platform = Linux

[2023-12-22T20:25:24.437Z] [DEBUG]: 2023-12-22 20:25:24.436 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59

[2023-12-22T20:25:24.437Z] [DEBUG]: 2023-12-22 20:25:24.437 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList=“”, isApplyToDesiredCapabilities=true }

[2023-12-22T20:25:24.914Z] [DEBUG]: 2023-12-22 20:25:24.914 DEBUG testcase.Visual Test - 2: maximizeWindow(STOP_ON_FAILURE)

[2023-12-22T20:25:25.110Z] [DEBUG]: 2023-12-22 20:25:25.110 DEBUG testcase.Visual Test - 3: delay(5)

[2023-12-22T20:25:30.113Z] [DEBUG]: 2023-12-22 20:25:30.112 DEBUG testcase.Visual Test - 4: takeScreenshotAsCheckpoint(“Healthcare Demo”)

[2023-12-22T20:25:33.152Z] [DEBUG]: 2023-12-22 20:25:33.151 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Cannot take screenshot (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)

[2023-12-22T20:25:33.152Z] [DEBUG]: at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Visual Test.run(Visual Test:26)
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:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:148)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:187)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1703276674802.run(TempTestSuite1703276674802.groovy:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null
at com.kms.katalon.core.webui.util.FileUtil.takeViewportScreenshot(FileUtil.java:307)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:67)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:127)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Script1703270795846.run(Script1703270795846.groovy:26)
… 19 more
)

[2023-12-22T20:25:33.154Z] [DEBUG]: 2023-12-22 20:25:33.153 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test FAILED.

[2023-12-22T20:25:33.154Z] [DEBUG]: Reason:
com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
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.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:126)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:84)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshotAsCheckpoint(WebUiBuiltInKeywords.groovy:3140)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshotAsCheckpoint$2.call(Unknown Source)
at Visual Test.run(Visual Test:26)
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:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:369)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:148)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:187)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1703276674802.run(TempTestSuite1703276674802.groovy:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException: Cannot invoke “com.kms.katalon.core.driver.DriverType.getName()” because the return value of “com.kms.katalon.core.webui.driver.DriverFactory.getExecutedBrowser()” is null
at com.kms.katalon.core.webui.util.FileUtil.takeViewportScreenshot(FileUtil.java:307)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:67)

[2023-12-22T20:25:33.154Z] [DEBUG]: at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:127)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
… 25 more

[2023-12-22T20:25:33.156Z] [DEBUG]: 2023-12-22 20:25:33.156 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Mark Test Cases/Visual Testing Demo/Visual Test

[2023-12-22T20:25:33.419Z] [DEBUG]: 2023-12-22 20:25:33.419 INFO com.kms.katalon.core.util.KeywordUtil - Start generating HTML report folder at: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434…

[2023-12-22T20:25:33.561Z] [DEBUG]: 2023-12-22 20:25:33.560 INFO com.kms.katalon.core.util.KeywordUtil - HTML report generated

[2023-12-22T20:25:33.561Z] [DEBUG]: 2023-12-22 20:25:33.561 INFO com.kms.katalon.core.util.KeywordUtil - Start generating CSV report folder at: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434…

[2023-12-22T20:25:33.572Z] [DEBUG]: 2023-12-22 20:25:33.572 INFO com.kms.katalon.core.util.KeywordUtil - CSV report generated

[2023-12-22T20:25:33.589Z] [DEBUG]: 2023-12-22 20:25:33.589 INFO c.k.katalon.core.main.TestSuiteExecutor - --------------------
2023-12-22 20:25:33.589 INFO c.k.katalon.core.main.TestSuiteExecutor - END Test Suites/Mark Test Suites/Suites/VisualTestSuite
2023-12-22 20:25:33.589 INFO c.k.katalon.core.main.TestSuiteExecutor - ====================

[2023-12-22T20:25:33.596Z] [DEBUG]: Launcher status after execution process completed: Running

[2023-12-22T20:25:33.881Z] [DEBUG]: Start writing execution.uuid file to folder: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434

[2023-12-22T20:25:33.881Z] [DEBUG]: Start generating JUnit report folder at: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434…

[2023-12-22T20:25:33.903Z] [DEBUG]: JUnit report were generated at folder: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434

[2023-12-22T20:25:33.904Z] [DEBUG]: For real-time monitoring and better reporting capabilities please integrate this project with Katalon TestOps (more details at https://docs.katalon.com/katalon-analytics/docs/integration-with-katalon-studio.html#enable-integration)

[2023-12-22T20:25:33.907Z] [DEBUG]: Uploading report to Katalon TestOps…

[2023-12-22T20:25:33.908Z] [DEBUG]: Start sending test result to Katalon TestOps

[2023-12-22T20:25:33.909Z] [DEBUG]: Uploading log files of test suite

[2023-12-22T20:25:34.189Z] [DEBUG]: Sending file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434/20231222_202434.html

[2023-12-22T20:25:34.326Z] [DEBUG]: Sending file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434/execution.properties

[2023-12-22T20:25:34.398Z] [DEBUG]: Sending file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434/JUnit_Report.xml

[2023-12-22T20:25:34.470Z] [DEBUG]: Sending file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434/execution.uuid

[2023-12-22T20:25:34.541Z] [DEBUG]: Sending file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434/20231222_202434.csv

[2023-12-22T20:25:34.631Z] [DEBUG]: Sending file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434/testCaseBinding

[2023-12-22T20:25:34.716Z] [DEBUG]: Sending file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434/execution0.log

[2023-12-22T20:25:34.940Z] [DEBUG]: Sending file: /katalon-agent/tmp/2023.12.22-20.24–38-GameiKLPnJem-2828326/QA.AutomationTrainingRepo.git/Reports/20231222_202433/Mark Test Suites/Suites/VisualTestSuite/20231222_202434/tsc_id.txt

[2023-12-22T20:25:35.010Z] [DEBUG]: Katalon TestOps: Start uploading report to Katalon TestOps server: https://testops.katalon.io

[2023-12-22T20:25:35.340Z] [DEBUG]: Katalon TestOps - Execution URL: Katalon TestOps
End sending to Katalon TestOps

[2023-12-22T20:25:35.341Z] [DEBUG]: Report has been sent to Katalon TestOps

[2023-12-22T20:25:36.039Z] [DEBUG]:

Test Suites/Mark Test Suites/Suites/VisualTestSuite - Remote - 20231222_202434…
…1/1(100%)

[2023-12-22T20:25:36.039Z] [DEBUG]: Execution completed. Exit code: 1.

[2023-12-22T20:25:36.040Z] [DEBUG]: Start clean up session

[2023-12-22T20:25:36.040Z] [DEBUG]: End check license task
End clean up session
Start release license task

[2023-12-22T20:25:36.045Z] [DEBUG]: End release license task

[2023-12-22T20:25:36.045Z] [DEBUG]: All launchers terminated

[2023-12-22T20:25:36.749Z] [INFO]: Exit code: 1.

1 Like

Hi,

I will investigate more on this but found this similar interesting discussion: How to get browser name from the RunConfiguration - #3 by Ashish_Kumar

I read through that thread but I’m not sure how that would apply here. This is a really simple test case and there are no actions that are trying to use the browser name. It just opens a webpage, takes a screenshot and then closes the browser.

Is there something in the screenshot command that uses the browser name? I’m not clear on exactly what is going on here behind the scenes but on the surface, this appears to be a really simple test case.

Hi,

Sorry for my late response due to holiday. I will ask my team and back to you soon. Happy new year

I have been able to get the visual test to run from within Katalon Studio and it uses the first baseline collection in our TestOps instance. However, I cannot get the test to run if I schedule it from within TestOps and use TestCloud it fails with the error I included in my initial post.

At this point I’m seeing a couple of major issues with how this works that greatly reduce its overall usefulness and viability as an end-to-end solution for managing our test automation.

  1. The inability to use TestCloud for visual testing. Without that ability the visual testing feature has little to no value for our needs.
  2. I don’t see any way to specify which baseline collection to use for comparison when running a visual test in Katalon Studio. It chooses the first collection in our list every time. Without the ability to specify a collection for comparison using studio or the RTE for visual testing doesn’t seem to offer much value since we would effectively only be able to test one page or interface.

I have watched several of Katalon’s videos regarding visual testing and I have not seen either of these issues discussed or addressed.

Here is an update on where I am with the visual testing issues.

I have been able to run visual tests from Studio and via TestOps using a Test Agent as the environment. I still cannot run a visual test via TestOps using TestCloud as the environment as it fails with the error I originally posted. I haven’t found any documentation that states you cannot use TestCloud for this purpose so my expectation is that it should work.

Using a Test Agent does give us a path to run such tests unattended though it is somewhat less desirable as that configuration would require a dedicated machine with Studio and an Agent installed and that could be a licensing issue depending on the cost of such a configuration.

Hi,

Now I have received the update from the internal team that we have acknowledged and fixed this problem in v9.1.0 but not for TestCloud environment due to some internal progress. Other users, if facing this issue not using TestCloud, please upgrade to v9.1.0.

Your problem with TestCloud will be fixed and released in v9.2.0. Please wait for the release and help us verify it soon. Thank you!

I have been able to get this to work. The fix was there all along it appears. When scheduling the test run I was selecting “Latest” for the Katalon Runtime Engine Version. I decided to try and select a specific version and when I did my tests started running as expected.

I assume what your post meant was that the issue is with KRE v9.2.0
image