Katalon test cases are executed perfectly in Browser mode and Console mode. But some test cases failed when execute via Bamboo agent

Katalon test cases are executed perfectly in Browser mode and Console mode. But some test cases failed when executing in Bamboo agent. Please help to resolve the issue.

I have created a test case to import file to a website and once import it, click Yes button on the confirmation popup. Test case is working fine in Browser mode and Console mode. But when i tried to execute same test case using Bamboo agent test case is failed from clicking Yes button on the confirmation popup. Why its failing only in the Bamboo agent. ?

Following is the error -
Unable to focus on object ‘Object
Repository/Page_DataBrowse/input_IHQ_Katalon_Site1_btnYesImport’ (Root cause: com.
kms.katalon.core.exception.StepFailedException: Unable to focus on object ‘Object
Repository/Page_DataBrowse/input_IHQ_Katalon_Site1_btnYesImport’
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.FocusKeyword.focus
(FocusKeyword.groovy:90)
at com.kms.katalon.core.webui.keyword.builtin.FocusKeyword.execute
(FocusKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.
executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.focus
(WebUiBuiltInKeywords.groovy:859)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$focus$8.call
(Unknown Source)
at ImportProductListByDistributor.run(ImportProductListByDistributor:77)
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:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.
java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase
(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase
(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.
java:233)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase
(TestSuiteExecutor.java:169)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase
(TestSuiteExecutor.java:142)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:
91)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:
157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown
Source)
at TempTestSuite1568923760551.run(TempTestSuite1568923760551.groovy:35)
Caused by: org.openqa.selenium.ElementNotInteractableException: element not
interactable
(Session info: chrome=77.0.3865.90)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘BLD-009’, ip: ‘XXXXX’, os.name: ‘Windows 7’, os.arch:
‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0_181’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion:
77.0.3865.90, chrome: {chromedriverVersion: 77.0.3865.40 (f484704e052e0…, userDataDir:
C:\Users\svc\A…}, goog:chromeOptions: {debuggerAddress: localhost:},
javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal,
platform: XP, platformName: XP, proxy: Proxy(), setWindowRect: true,
strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000},unhandledPromptBehavior: dismiss and notify}
Session ID: 7db700dba35206e2c6c764bf5178d001
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException
(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode
(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode
(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute
(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute
(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.
java:552)
at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:
20)
at org.openqa.selenium.remote.RemoteWebElement.execute
(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.sendKeys
(RemoteWebElement.java:106)
at com.kms.katalon.core.webui.keyword.builtin.FocusKeyword$_focus_closure1.
doCall(FocusKeyword.groovy:80)
at com.kms.katalon.core.webui.keyword.builtin.FocusKeyword$_focus_closure1.
call(FocusKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword
(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.FocusKeyword.focus
(FocusKeyword.groovy:90)
at com.kms.katalon.core.webui.keyword.builtin.FocusKeyword.execute
(FocusKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.
executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.focus
(WebUiBuiltInKeywords.groovy:859)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$focus$8.call
(Unknown Source)
at Script1568597003876.run(Script1568597003876.groovy:77)
… 13 more
)

I guess you tried Browser mode and Console mode on your PC, and you executed Bamboo agent on another box (Linux?).

Have you installed Xvfb in the machine where Boomboo agent runs?

See the following post:

this post describes how to setup runtime environment for Jenkins, not Bamboo. But it will be still informative for you how the OS environement should be setup for CI tools in general.

Thanks for your reply. Yes I executed Bamboo agent on another box which is Windows 7. I haven’t configured Xvfb on bamboo Agent box.
All together there 18 test cases and all 18 test cases are perfectly executed on my local Browser mode and Console mode.
Via Bamboo agent on Windows 7, there only 14 test cases passed. 4 test cases failed.
How to configure Xvfb on Windows 7? Please give your advice…
Thanks

No, Xvfb is not required for Windows box. Xvfb is required for Linux only. Sorry to confuse you.

There must be some other reason why you get errors.

In the log you attached, I found the following fragment:

You need to look at this.

Try searching this forum with key “element not interactable”. You would find a bunch of previous posts on this error message. You should start with reading them through.

1 Like

Thanks for your reply. I’ll try search previous posts related to this issue…