Skip to content

Instantly share code, notes, and snippets.

@kool79
Created September 3, 2018 17:52
Show Gist options
  • Select an option

  • Save kool79/bbe16df469ea016cffaae4aef87bf6c4 to your computer and use it in GitHub Desktop.

Select an option

Save kool79/bbe16df469ea016cffaae4aef87bf6c4 to your computer and use it in GitHub Desktop.
2018-09-03 20:32:57:485 - [Appium] Welcome to Appium v1.9.0
2018-09-03 20:32:57:486 - [Appium] Non-default server args:
2018-09-03 20:32:57:487 - [Appium] port: 4724
2018-09-03 20:32:57:487 - [Appium] sessionOverride: true
2018-09-03 20:32:57:488 - [Appium] logTimestamp: true
2018-09-03 20:32:57:488 - [Appium] localTimezone: true
2018-09-03 20:32:57:488 - [Appium] nodeconfig: node-appium.json
2018-09-03 20:32:57:488 - [Appium] debugLogSpacing: true
2018-09-03 20:32:57:488 - [Appium] defaultCapabilities: {
2018-09-03 20:32:57:489 - [Appium] appium:newCommandTimeout: 100
2018-09-03 20:32:57:489 - [Appium] }
2018-09-03 20:32:57:489 - [Appium] relaxedSecurityEnabled: true
2018-09-03 20:32:57:490 - [Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
2018-09-03 20:32:57:490 - [Appium] appium:newCommandTimeout: 100
2018-09-03 20:32:57:521 - [debug] [Appium] No registration sent (false = false)
2018-09-03 20:32:57:536 - [Appium] Appium REST http interface listener started on 0.0.0.0:4724
2018-09-03 20:47:16:105 - [HTTP] --> POST /wd/hub/session
2018-09-03 20:47:16:105 - [HTTP] {"desiredCapabilities":{"appium:newCommandTimeout":15,"browserName":"safari","appium:deviceName":"iPhone 7","platformName":"IOS","appium:automationName":"XCUITest","appium:platformVersion":"11.4"},"capabilities":{"firstMatch":[{"appium:automationName":"XCUITest","appium:deviceName":"iPhone 7","appium:newCommandTimeout":15,"appium:platformVersion":"11.4","browserName":"safari","platformName":"ios"}]}}
2018-09-03 20:47:16:108 - [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"appium:newCommandTimeout":15,"browserName":"safari","appium:deviceName":"iPhone 7","platformName":"IOS","appium:automationName":"XCUITest","appium:platformVersion":"11.4"},null,{"firstMatch":[{"appium:automationName":"XCUITest","appium:deviceName":"iPhone 7","appium:newCommandTimeout":15,"appium:platformVersion":"11.4","browserName":"safari","platformName":"ios"}]}]
2018-09-03 20:47:16:109 - [debug] [BaseDriver] Event 'newSessionRequested' logged at 1535996836109 (20:47:16 GMT+0300 (EEST))
2018-09-03 20:47:16:115 - [BaseDriver] property 'newCommandTimeout' should not exist on both primary ({"newCommandTimeout":100}) and secondary ({"browserName":"safari","platformName":"ios","automationName":"XCUITest","deviceName":"iPhone 7","newCommandTimeout":15,"platformVersion":"11.4"}) object
2018-09-03 20:47:16:116 - [Appium] Could not parse W3C capabilities: The arguments passed to the command are either invalid or malformed
2018-09-03 20:47:16:116 - [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps
2018-09-03 20:47:16:117 - [BaseDriver] The capabilities ["newCommandTimeout","automationName","deviceName","platformVersion"] are not standard capabilities and should have an extension prefix
2018-09-03 20:47:16:119 - [BaseDriver] property 'newCommandTimeout' should not exist on both primary ({"newCommandTimeout":100}) and secondary ({"browserName":"safari","platformName":"ios","automationName":"XCUITest","deviceName":"iPhone 7","newCommandTimeout":15,"platformVersion":"11.4"}) object
2018-09-03 20:47:16:119 - [Appium] Could not parse fixed W3C capabilities: The arguments passed to the command are either invalid or malformed. Falling back to JSONWP protocol
2018-09-03 20:47:16:120 - [Appium] Creating new XCUITestDriver (v2.92.0) session
2018-09-03 20:47:16:120 - [Appium] Capabilities:
2018-09-03 20:47:16:120 - [Appium] newCommandTimeout: 15
2018-09-03 20:47:16:121 - [Appium] browserName: safari
2018-09-03 20:47:16:121 - [Appium] deviceName: iPhone 7
2018-09-03 20:47:16:121 - [Appium] platformName: IOS
2018-09-03 20:47:16:121 - [Appium] automationName: XCUITest
2018-09-03 20:47:16:121 - [Appium] platformVersion: 11.4
2018-09-03 20:47:16:124 - [Appium] Applying relaxed security to 'XCUITestDriver' as per server command line argument
2018-09-03 20:47:16:125 - [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"newCommandTimeout":15,"br...
2018-09-03 20:47:16:130 - [BaseDriver] Session created with session id: f0a7801c-cdbc-4c19-85c0-8f595c9f86e5
@kool79
Copy link
Author

kool79 commented Sep 3, 2018

Lines 21, 25 - wrong warning. there are no 'primary' and 'secondary' objects in any configuration
Line 24 - all my caps were with "appium:" prefix
Line 26 - appium switched to jsonwp but should not

Appium launched with:
> appium --default-capabilities='{"appium:newCommandTimeout":100}' --relaxed-security

Session was created with POST (grabbed by wireshark):

{
  "desiredCapabilities": {
    "appium:newCommandTimeout": 15,
    "browserName": "safari",
    "appium:deviceName": "iPhone 7",
    "platformName": "IOS",
    "appium:automationName": "XCUITest",
    "appium:platformVersion": "11.4"
  },
  "capabilities": {
    "firstMatch": [
      {
        "appium:automationName": "XCUITest",
        "appium:deviceName": "iPhone 7",
        "appium:newCommandTimeout": 15,
        "appium:platformVersion": "11.4",
        "browserName": "safari",
        "platformName": "ios"
      }
    ]
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment