Ask a Question

Need help to run automated test using Bitbar

Occasional Contributor

Need help to run automated test using Bitbar

Need to run the automated test with ruby and appium with cucumber framework getting some issues


Appium REST http interface listener started on
2019-12-04 09:47:04:394 - [HTTP] --> POST /wd/hub/session
2019-12-04 09:47:04:394 - [HTTP] {"desiredCapabilities":{"platformName":"Android","automationName":"Appium","appPackage":"com.rttdriver","deviceName":"Android device","app":"/test"},"capabilities":{"firstMatch":[{"platformName":"Android","appium:automationName":"Appium","appium:appPackage":"com.rttdriver","appium:deviceName":"Android device","appium:app":"/test"}]}}


replace [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(EOF or read error, treating as "[N]one" ...)
inflating: setup_appium.rb
linking: TEST-all.xml -> *.xml
finishing deferred symbolic links:
TEST-all.xml -> *.xml
Starting Appium ...
2019-12-04 09:47:04:396 - [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","automationName":"Appium","appPackage":"com.rttdriver","deviceName":"Android device","app":"/test"},null,{"firstMatch":[{"platformName":"Android","appium:automationName":"Appium","appium:appPackage":"com.rttdriver","appium:deviceName":"Android device","appium:app":"/test"}]}]
2019-12-04 09:47:04:396 - [debug] [BaseDriver] Event 'newSessionRequested' logged at 1575452824396 (09:47:04 GMT+0000 (Coordinated Universal Time))
2019-12-04 09:47:04:403 - [Appium]
2019-12-04 09:47:04:403 - [Appium] ======================================================================
2019-12-04 09:47:04:403 - [Appium] DEPRECATION WARNING:
2019-12-04 09:47:04:403 - [Appium]
2019-12-04 09:47:04:403 - [Appium] The 'automationName' capability was not provided in the desired
2019-12-04 09:47:04:404 - [Appium] capabilities for this Android session
2019-12-04 09:47:04:404 - [Appium]
2019-12-04 09:47:04:404 - [Appium] Setting 'automationName=UiAutomator2' by default and using the
2019-12-04 09:47:04:404 - [Appium] UiAutomator2 Driver
2019-12-04 09:47:04:404 - [Appium]
2019-12-04 09:47:04:404 - [Appium] The next major version of Appium (2.x) will **require** the
2019-12-04 09:47:04:404 - [Appium] 'automationName' capability to be set for all sessions on all
2019-12-04 09:47:04:404 - [Appium] platforms
2019-12-04 09:47:04:404 - [Appium]
2019-12-04 09:47:04:404 - [Appium] In previous versions (Appium <= 1.13.x), the default was
2019-12-04 09:47:04:405 - [Appium] 'automationName=UiAutomator1'




Hello van1,


Just as a note, to be able to better help you, in future posts please provide a direct link to any test run connected with the question. This way it is easier to debug and find the root of the problem.


When you want to run automated tests on the Bitbar Cloud, you have two options,

On the one hand there is Client Side, let’s call it the “standard way” of execution, where you start the test run from your own computer against a device in the cloud (1 to 1). To test more devices means more sessions.I would say this is a good starting point. With changing some capabilities, adding your API key, hub URL and uploading the app you will be starting your Appium test against the selected cloud device.

Then on the other hand we have Cloud side, which is when you want to scale up your testing and start running fast parallel runs. Here you offload all the execution to the cloud, by uploading the test suite with all its components in a zip file. As well as the application. This is then executed in the cloud against as many devices as you would wish at the same time. This requires to create zip, with one additional file for our cloud to start the test run. Otherwise the tests / project are the same as locally just zipped in a neat package.


Your zip package was missing this file (also needs to be named just, and therefore did not execute, this needs to be modified to start your test run in the way you would start it locally. I would recommend checking how our samples have the configured.
Also inside the file, the application name defined is incorrect, it needs to be “application.apk” in this instance, as the cloud renames every application, so therefore the should be looking for application.apk, even though the uploaded app has a different name.

The Bitbar documentation contains a wealth of information about the test execution.

Here is a link to our Ruby Sample, feel free to even use this as a base for your test. .

PS If You would need to use higher version of ruby modify first line from from '#!/bin/bash' to '#!/bin/bash -l' and add this command is next/second line 'rvm use ruby-2.5.0' then Your test will use ruby 2.5.0 under execution.


If you have any more specific questions, please reach out!
Kind Regards,

Showing results for 
Search instead for 
Did you mean: