Browserstack integration problem

I refer to https://docs.katalon.com/display/KD/BrowserStack+Integration to set up. However, the document is out up date. So I can not set up running mobile app on BrowserStack.
I tried to set up as screenshot below but I don’t know how to running mobile app with Katalon on BrowsersStack.
I found the same issue but it is not resolved.
BrowserStack & SauceLabs integration Problem - Katalon Studio - Katalon Community
Could you please help us update the content of above link and step to using StartApplication for BrowserStack.
Thank you very much.

This is console loglog
1. For startApplication

- [START] - Start Test Suite : Test Suites/Demo/Demo

04-18-2018 04:07:55 PM - [RUN_DATA] - Logging run data ‘hostName’ with value ‘trieu.pham - 192.168.2.39’

04-18-2018 04:07:55 PM - [RUN_DATA] - Logging run data ‘os’ with value ‘Mac OS X 64bit’

04-18-2018 04:07:55 PM - [RUN_DATA] - Logging run data ‘hostAddress’ with value ‘192.168.2.39’

04-18-2018 04:07:55 PM - [RUN_DATA] - Logging run data ‘katalonVersion’ with value ‘5.3.1.1’

04-18-2018 04:07:56 PM - [START] - Start listener action : sampleBeforeTestSuite

04-18-2018 04:07:56 PM - [INFO] - Starting invoke ‘com.kms.katalon.core.annotation.BeforeTestSuite’ method: ‘DemoAndroid.sampleBeforeTestSuite(…)’

04-18-2018 04:07:56 PM - [START] - Start action : Statement - println(testSuiteContext.getTestSuiteId())

Test Suites/Demo/Demo

04-18-2018 04:07:56 PM - [END] - End action : Statement - println(testSuiteContext.getTestSuiteId())

04-18-2018 04:07:56 PM - [START] - Start action : startApplication

04-18-2018 04:07:56 PM - [INFO] - Starting app at: ‘bs://aef27e576368a45b9e05055a7026db17bc83ddae’

04-18-2018 04:07:56 PM - [FAILED] - Unable to start app at: ‘bs://aef27e576368a45b9e05055a7026db17bc83ddae’ (Root cause: java.lang.IllegalArgumentException: The mobile device is missing. Please select the mobile device to be executed and try again.)

04-18-2018 04:07:56 PM - [ERROR] - Unable to start app at: ‘bs://aef27e576368a45b9e05055a7026db17bc83ddae’ (Root cause: java.lang.IllegalArgumentException: The mobile device is missing. Please select the mobile device to be executed and try again.)

04-18-2018 04:07:56 PM - [END] - End action : startApplication

2. For openbrowser

04-18-2018 04:02:49 PM - [START] - Start Test Suite : Test Suites/Demo/Demo

04-18-2018 04:02:49 PM - [RUN_DATA] - Logging run data ‘hostName’ with value ‘trieu.pham - 192.168.2.39’

04-18-2018 04:02:49 PM - [RUN_DATA] - Logging run data ‘os’ with value ‘Mac OS X 64bit’

04-18-2018 04:02:49 PM - [RUN_DATA] - Logging run data ‘hostAddress’ with value ‘192.168.2.39’

04-18-2018 04:02:49 PM - [RUN_DATA] - Logging run data ‘katalonVersion’ with value ‘5.3.1.1’

04-18-2018 04:02:49 PM - [START] - Start listener action : sampleBeforeTestSuite

04-18-2018 04:02:49 PM - [INFO] - Starting invoke ‘com.kms.katalon.core.annotation.BeforeTestSuite’ method: ‘DemoAndroid.sampleBeforeTestSuite(…)’

04-18-2018 04:02:49 PM - [START] - Start action : Statement - println(testSuiteContext.getTestSuiteId())

Test Suites/Demo/Demo

04-18-2018 04:02:49 PM - [END] - End action : Statement - println(testSuiteContext.getTestSuiteId())

04-18-2018 04:02:49 PM - [START] - Start action : openBrowser

04-18-2018 04:02:50 PM - [INFO] - Opening browser

04-18-2018 04:02:50 PM - [INFO] - Starting ‘Remote’ driver

04-18-2018 04:02:50 PM - [INFO] - User set preference: [‘device’, ‘Samsung Galaxy S8’]

04-18-2018 04:02:50 PM - [INFO] - User set preference: [‘os_version’, ‘7.0’]

04-18-2018 04:02:50 PM - [INFO] - User set preference: [‘realMobile’, ‘true’]

04-18-2018 04:02:50 PM - [INFO] - Connecting to remote web server ‘http://xxxx@hub-cloud.browserstack.com/wd/hub’ with type ‘Appium’

04-18-2018 04:02:50 PM - [FAILED] - Unable to open browser with url: ‘https:google.com.vn’ (Root cause: Missing property ‘platformName’ for appium remote web driver)

04-18-2018 04:02:50 PM - [ERROR] - Unable to open browser with url: ‘https:google.com.vn’ (Root cause: Missing property ‘platformName’ for appium remote web driver)

04-18-2018 04:02:50 PM - [END] - End action : openBrowser

browserstack integration problem.png

I tried to update setting as screenshot.
The openbrowsers can work. However the startApplication can not work.
could you please help us how to work for startApplication.
This is the log:

04-18-2018 04:56:26 PM - [START] - Start Test Suite : Test Suites/Demo/Demo

04-18-2018 04:56:26 PM - [RUN_DATA] - Logging run data ‘hostName’ with value ‘trieu.pham - 192.168.2.39’

04-18-2018 04:56:26 PM - [RUN_DATA] - Logging run data ‘os’ with value ‘Mac OS X 64bit’

04-18-2018 04:56:26 PM - [RUN_DATA] - Logging run data ‘hostAddress’ with value ‘192.168.2.39’

04-18-2018 04:56:26 PM - [RUN_DATA] - Logging run data ‘katalonVersion’ with value ‘5.3.1.1’

04-18-2018 04:56:27 PM - [START] - Start listener action : sampleBeforeTestSuite

04-18-2018 04:56:27 PM - [INFO] - Starting invoke ‘com.kms.katalon.core.annotation.BeforeTestSuite’ method: ‘DemoAndroid.sampleBeforeTestSuite(…)’

04-18-2018 04:56:27 PM - [START] - Start action : Statement - println(testSuiteContext.getTestSuiteId())

Test Suites/Demo/Demo

04-18-2018 04:56:27 PM - [END] - End action : Statement - println(testSuiteContext.getTestSuiteId())

04-18-2018 04:56:27 PM - [START] - Start action : openBrowser

04-18-2018 04:56:27 PM - [INFO] - Opening browser

04-18-2018 04:56:27 PM - [INFO] - Starting ‘Remote’ driver

04-18-2018 04:56:28 PM - [INFO] - User set preference: [‘device’, ‘Samsung Galaxy S8’]

04-18-2018 04:56:28 PM - [INFO] - User set preference: [‘os_version’, ‘7.0’]

04-18-2018 04:56:28 PM - [INFO] - User set preference: [‘realMobile’, ‘true’]

04-18-2018 04:56:28 PM - [INFO] - User set preference: [‘platformName’, ‘android’]

04-18-2018 04:56:28 PM - [INFO] - User set preference: [‘browserName’, ‘android’]

04-18-2018 04:56:28 PM - [INFO] - Connecting to remote web server ‘http://xxx:xxx@hub-cloud.browserstack.com/wd/hub’ with type ‘Appium’

Apr 18, 2018 4:56:54 PM org.openqa.selenium.remote.ProtocolHandshake createSession

INFO: Detected dialect: OSS

04-18-2018 04:56:58 PM - [RUN_DATA] - Logging run data ‘sessionId’ with value ‘7aee8369a413f07c07a0f48e4ad61efa3adec997’

04-18-2018 04:56:58 PM - [RUN_DATA] - Logging run data ‘browser’ with value ‘Chrome 63.0.3239.111’

04-18-2018 04:56:58 PM - [RUN_DATA] - Logging run data ‘platform’ with value ‘Mac OS X’

04-18-2018 04:56:58 PM - [RUN_DATA] - Logging run data ‘seleniumVersion’ with value ‘3.7.1’

04-18-2018 04:56:58 PM - [RUN_DATA] - Logging run data ‘proxyInformation’ with value ‘ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}’

04-18-2018 04:56:58 PM - [INFO] - Navigating browser to: ‘http://google.com.vn

04-18-2018 04:57:00 PM - [PASSED] - Browser is opened with url: ‘google.com.vn’

04-18-2018 04:57:00 PM - [END] - End action : openBrowser

04-18-2018 04:57:00 PM - [START] - Start action : startApplication

04-18-2018 04:57:01 PM - [INFO] - Starting app at: ‘bs://aef27e576368a45b9e05055a7026db17bc83ddae’

04-18-2018 04:57:01 PM - [FAILED] - Unable to start app at: ‘bs://aef27e576368a45b9e05055a7026db17bc83ddae’ (Root cause: java.lang.IllegalArgumentException: The mobile device is missing. Please select the mobile device to be executed and try again.)

04-18-2018 04:57:01 PM - [ERROR] - Unable to start app at: ‘bs://aef27e576368a45b9e05055a7026db17bc83ddae’ (Root cause: java.lang.IllegalArgumentException: The mobile device is missing. Please select the mobile device to be executed and try again.)

04-18-2018 04:57:01 PM - [END] - End action : startApplication

browserstack integration problem 2.png

Hello @2532-phamtrieu

Did you find a solution ?

I tried and faced similar challenges while trying to integration Browser Stack with Katalon studio for mobile web testing. My main challenge was to find a solution for testing iOS devices while not having access to Mac.

This video helped - https://youtu.be/__pmzEhMvnk and i was able to run the test suites browsers & devices without any hassle

I have the same issue.
Cannot set Katalon Studio to work with the Browserstack.

  1. Uploaded app file
  2. copied hashed app id
  3. set up Custom Capabilities
  4. Started test and it is failing with com.kms.katalon.core.exception.StepFailedException: No driver found

I tried many different things and all tests with Custom Capabilities for Appium are failing for Browserstack.
If I do the same for Custom Capabilities for Selenium web testing, then it works without a problem.
I have Katalon 6.1.0. and appium 1.8.1.
Integration with Kobiton works without any problems.

2 Likes

Solved The mobile device is missing using same capabilities of example in: https://docs.katalon.com/katalon-studio/docs/desired-capabilities-for-kobiton-devices.html