Forum Discussion

Denis1's avatar
Denis1
New Contributor
11 months ago

Unable to connect Appium Inspector to session with Bitbar device

Hello, 
I'm trying to connect Appium Inspector to a device on Bitbar, but it always returns an error: "Failed to create session. Request timed out" or "Failed to create session. All non-standard capabilities should have a vendor prefix. The following capabilities did not have one: source".
Am I passing some wrong parameter, or missing something?

Caps:
{
"appium:bitbar_device": "Apple iPhone 12 Pro Max A2411 16.0",
"platformName": "iOS",
"appium:bitbar_app": "201000000",
"appium:bundleId": "br",
"appium:newCommandTimeout": "8000",
"appium:automationName": "XCUITest",
"appium:autoGrantPermissions": "true",
"appium:autoDismissAlerts": "true",
"appium:bitbar_frameworkId": "900",
"appium:bitbar_testTimeout": "8000"
}

  
Can anyone help me? 

  • Hi Denis

    there're two parts to your problem:

    1. Appium Inspector seems to require (or adds on it's own) "source" capability, which is not supported. Good news is, incoming release (December 5th) brings this support.

    2. The way you create keys for capabilities isn't correct. W3C requires you to preffix to vendor specific capabilities, which "appium:" for appium specific capabilties and respectively "bitbar:" to bitbar ones. However you added "appium:" to bitbar capabilities. You should remove that and leave just "bitbar_XYZ"

     

    One more thing that's worth mentioning (if you'd like to switch entirely to W3C format), which is Appium Inspector inherent problem, that we discovered: Appium Inspector does internal mapping/replacement of capabilitiies when you use W3C format with bitbar specific capabilities to incorrect ones. Meaning: don't use "bitbar:options:" object, just stick to "bitbar_XYZ" format (they way you do, but remember to remove "appium:", what I explained eariler)

     

    enjoy testing!

  • Hi Denis

    there're two parts to your problem:

    1. Appium Inspector seems to require (or adds on it's own) "source" capability, which is not supported. Good news is, incoming release (December 5th) brings this support.

    2. The way you create keys for capabilities isn't correct. W3C requires you to preffix to vendor specific capabilities, which "appium:" for appium specific capabilties and respectively "bitbar:" to bitbar ones. However you added "appium:" to bitbar capabilities. You should remove that and leave just "bitbar_XYZ"

     

    One more thing that's worth mentioning (if you'd like to switch entirely to W3C format), which is Appium Inspector inherent problem, that we discovered: Appium Inspector does internal mapping/replacement of capabilitiies when you use W3C format with bitbar specific capabilities to incorrect ones. Meaning: don't use "bitbar:options:" object, just stick to "bitbar_XYZ" format (they way you do, but remember to remove "appium:", what I explained eariler)

     

    enjoy testing!