Test suite is passed in Katalon 5.9.1 windows environment, failing in Linux (ubuntu)


#1

My Test suite is passed in Katalon 5.9.1 windows environment, but the same script is continuously failing in Linux environment (ubuntu)

FAILED Unable to call Test Case 'Test Cases/Way_Web_common/Add_to_bag_Common' (Root cause: com.kms.katalon.core.exception.StepFailedException: Call Test Case 'Test Cases/Way_Web_common/Add_to_bag_Common' failed)
13:48:50.539 FAILED callTestCase(findTestCase("Way_Web_common/Add_to_bag_Common"), [:], STOP_ON_FAILURE) FAILED. Reason: com.kms.katalon.core.exception.StepFailedException: Unable to click on object 'Object Repository/Web_OR/Parking_Details_Page/add_to_bag_button' (Root cause: org.openqa.selenium.WebDriverException: Failed to decode response from marionette Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z' System info: host: 'studio01', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-139-generic', java.version: '1.8.0_191' Driver info: com.kms.katalon.core.webui.driver.firefox.CGeckoDriver Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 63.0.3, javascriptEnabled: true, moz:accessibilityChecks: false, moz:geckodriverVersion: 0.23.0, moz:headless: true, moz:processID: 26372, moz:profile: /tmp/rust_mozprofile.fGo7CU..., moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.4.0-139-generic, proxy: Proxy(direct), rotatable: false, setWindowRect: true, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify} Session ID: 0f743967-8b67-4cb9-8881-0b2d55223ce9 *** Element info: {Using=xpath, value=//button[@id="addToBag_parkingDetail_page"]}) at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36) at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65) at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27) at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86) at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:67) at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53) at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616) at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$4.call(Unknown Source) at Add_to_bag_Common.run(Add_to_bag_Common:25) 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:321) at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:312) at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:291) at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:283) at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:222) at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:106) at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword$_callTestCase_closure1.doCall(CallTestCaseKeyword.groovy:59) at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword$_callTestCase_closure1.call(CallTestCaseKeyword.groovy) at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:54) at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword.callTestCase(CallTestCaseKeyword.groovy:80) at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword.execute(CallTestCaseKeyword.groovy:44) at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53) at com.kms.katalon.core.keyword.BuiltinKeywords.callTestCase(BuiltinKeywords.groovy:334) at Common_Checkout_Cancellation_Flow.run(Common_Checkout_Cancellation_Flow:51) 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:321) at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:312) at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:291) at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:283) at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:222) 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:149) at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source) at TempTestSuite1544075215752.run(TempTestSuite1544075215752.groovy:36)

#2

Hi,
if you are using Chrome try to add --no-sandbox capabilities to Chrome properties file

C:\KatalonStudio\\settings\internal\com.kms.katalon.core.webui.chrome.properties

{“CHROME_DRIVER”:{“args”:["–no-sandbox","–disable-infobars"]}}