Coder Social home page Coder Social logo

appiumtestdistribution / appium-device-farm Goto Github PK

View Code? Open in Web Editor NEW
268.0 14.0 82.0 73.72 MB

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.

Home Page: https://devicefarm.org/

License: MIT License

JavaScript 8.76% Shell 0.31% TypeScript 90.93%
appium-plugin polling driver-session ios-simulators android appium-device-farm appium plugin parallel-testing device-farm

appium-device-farm's Introduction

appium-device-farm


DeviceFarm


Build Status npm version

This is an Appium plugin designed to manage and create driver session on connected android devices and iOS Simulators.

Documentation

The Documentation is hosted separately at https://appium-device-farm-eight.vercel.app/

Contributing & Development

Clone this project from GitHub and run:

npm install

To run unit/functional tests:

npm test # unit 
npm run integration-android # Android integration tests
npm run integration-ios # iOS integration tests

To build docs locally:

npm install 
npm run build 
npm run install-docs-deps
npm run build:docs

Navigate to site directory and open index.html to view the site locally.

Thanks to contributors πŸ’™

appium-device-farm's People

Contributors

afathonih avatar alka1703 avatar anandbagmar avatar anilpatidar avatar deepsourcebot avatar dependabot-preview[bot] avatar dependabot[bot] avatar dileep17 avatar gurleen-makkar avatar hariharanweb avatar joelwhitney avatar kandji-joel avatar kazucocoa avatar kd100100 avatar narmadha956 avatar renovate-bot avatar renovate[bot] avatar saikrishna321 avatar srinivasantarget avatar ssk-14 avatar sudharsan-selvaraj avatar valzron avatar wolfmosrioja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appium-device-farm's Issues

Render test results in modal

Clicking on device card, we should be able to render test executed on that device.

  1. Total Test
  2. Total Pass
  3. Total Fail

Get: localhost:4723/testResult?udid=123432232

Returns:

[
  {
    "testcasename": "asdasd",
    "status": "pass/fail"
  },
  {
    "testcasename": "asdasd",
    "status": "pass/fail"
  }
]

Cannot read property 'getConnectedDevices' of undefined error

mac % appium server -ka 1000 -p 4723 --log-level error:debug --use-plugins=device-farm,appium-dashboard --base-path /wd/hub --plugin-device-farm-platform=android --allow-insecure=adb_shell --nodeconfig ./nodeconfig.json
In Con android
[appium-dashboard] Unable to create adb instance.
TypeError: Cannot read property 'getConnectedDevices' of undefined
at AndroidDeviceManager. (/Users/liulingshan/.appium/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:83:48)
at Generator.next ()
at fulfilled (/Users/liulingshan/.appium/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:5:58)
(node:46563) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)

how to solve it?

Stucking at createSession step

the test is stucking at this step when I run test.

[Appium] Plugins which can handle cmd 'createSession': device-farm (sessionless)
[Appium] Plugin device-farm (sessionless) is now handling cmd 'createSession'

const wdio = require("webdriverio");

const opts = {
    hostname: '0.0.0.0',
    path: '/wd/hub',
    port: 4723,
    capabilities: {
      platformName: "Android",
      'appium:deviceName': "Android 11",
      'appium:app': "/Users/phamnhuvu/Documents/GitHub/eibanam/ApiDemos-debug.apk",
      'appium:automationName': "UiAutomator2",
    }
  };
    
async function main () {
  const client = await wdio.remote(opts);

  await client.deleteSession();
}
    
main();

phamnhuvu@Phams-Mac-mini ~ % appium server --base-path /wd/hub --plugins=device-farm
[Appium] Attempting to load plugin device-farm...
[device-manager] Device Dashboard listening at http://localhost:3333
[Appium] Welcome to Appium v2.0.0-beta.13
[Appium] Non-default server args:
[Appium] plugins: {
[Appium] 0: device-farm
[Appium] }
[Appium] basePath: /wd/hub
[Appium] tmpDir: /var/folders/dg/pyczk8292qb79_92s55c_5d40000gn/T
[Appium] Attempting to load driver xcuitest...
[Appium] Attempting to load driver uiautomator2...
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] Available drivers:
[Appium] - [email protected] (automationName 'XCUITest')
[Appium] - [email protected] (automationName 'UiAutomator2')
[Appium] Available plugins:
[Appium] - [email protected] (ACTIVE)
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:deviceName":"Android 11","appium:app":"/Users/phamnhuvu/Documents/GitHub/eibanam/ApiDemos-debug.apk","appium:automationName":"UiAutomator2"},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:deviceName":"Android 11","appium:app":"/Users/phamnhuvu/Documents/GitHub/eibanam/ApiDemos-debug.apk","appium:automationName":"UiAutomator2"}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:deviceName":"Android 11","appium:app":"/Users/phamnhuvu/Documents/GitHub/eibanam/ApiDemos-debug.apk","appium:automationName":"UiAutomator2"},null,{"alwaysMatch":{"platformName":"Android","appium:deviceName":"Android 11","appium:app":"/Users/phamnhuvu/Documents/GitHub/eibanam/ApiDemos-debug.apk","appium:automationName":"UiAutomator2"},"firstMatch":[{}]}]
[Appium] Plugins which can handle cmd 'createSession': device-farm (sessionless)
[Appium] Plugin device-farm (sessionless) is now handling cmd 'createSession'
[device-manager] Fetching all connected devices
[device-manager] Fetching iOS Devices
[device-manager] Fetching Android Devices
[ADB] Found 4 'build-tools' folders under '/Users/phamnhuvu/Library/Android/sdk' (newest first):
[ADB] /Users/phamnhuvu/Library/Android/sdk/build-tools/31.0.0
[ADB] /Users/phamnhuvu/Library/Android/sdk/build-tools/30.0.3
[ADB] /Users/phamnhuvu/Library/Android/sdk/build-tools/29.0.2
[ADB] /Users/phamnhuvu/Library/Android/sdk/build-tools/28.0.3
[ADB] Using 'adb' from '/Users/phamnhuvu/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Running '/Users/phamnhuvu/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[debug] [ADB] Running '/Users/phamnhuvu/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Running '/Users/phamnhuvu/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.characteristics'
[debug] [ADB] Running '/Users/phamnhuvu/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.name'
[device-manager] Android Devices found [{"busy":false,"state":"device","udid":"emulator-5554","platform":"android","sdk":"11","realDevice":false,"name":"sdk_gphone_x86_64"}]
[device-manager] Starting & initializing the listen to device changes
[device-manager] Finding Free Device for Platform Android
[device-manager] Waiting for free device
[device-manager] Finding Free Device for Platform Android
[device-manager] Fetching Android Devices
[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[debug] [ADB] Running '/Users/phamnhuvu/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Running '/Users/phamnhuvu/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.characteristics'
[debug] [ADB] Running '/Users/phamnhuvu/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.name'

reallocate the test to healthy device

If the test fails for infra issue for example: socket hangup on espresso/uiautomator/wda we need to remove this device from the device poll and re-assign the test to new device.

Handle only at createSession failure

Remote Execution

Device-farm should be able to consider remote devices and orchestrate test execution. remote branch has basic implementation.

  • Able to retrieve remote devices and store them in memory
  • Wait for the remote server to start.
  • Disable local execution when want to run only remote.
    • Added remote arg as mandatory which will take an array. To run locally 127.0.0.1 and remote IP.

[Question] Why use "appium-device-farm" over Selenium Grid?

@saikrishna321 @SrinivasanTarget @sudharsan-selvaraj
I was pretty blown away when I gave appium-device-farm and appium-dashboard-plugin I try over the weekend. I can see a lot of benefits and use cases for using something like this over Selenium Grid, which requires a lot more overhead to maintain. I was hoping to get your takes on why this should be used over Selenium Grid (may be good to include in README as well)

Reasons to use appium-device-farm

  • Native testing only (Appium)
  • Easy setup for single machine infrastructure
  • More session info out-of-box when coupled with appium-dashboard

Reasons to use Grid

  • Native and web app testing (Appium and Selenium)
  • Supports Appium (Grid 3 only) and Selenium

[Feature Request] Remote Test Execution

I wanted to request support for remote test execution. The requirement is to run the tests from a remote machine but the devices will be connected to a host mac machine on my desk. Question is, how will device-farm detect the devices connected on host machine but test is triggered from a remote VM machine in google cloud for example.

Unable to start server due to missing module/dependency

Describe the bug

After installing the packages in the order specified

  1. Appium next
  2. uiautomator
  3. appium plugin install --source=npm appium-device-farm
  4. appium plugin install --source=npm appium-dashboard

When I start the server using appium server -ka 800 --use-plugins=device-farm,appium-dashboard -pa /wd/hub --plugin-device-farm-platform=android The following error is shown in the log

Link to Appium logs

Logs can be found here GIST

Environment

  1. Appium version (or git revision) that exhibits the issue: v2.0.0-beta.43
  2. Last Appium version that did not exhibit the issue (if applicable):
  3. Node.js version (unless using Appium.app|exe): v16.14.2
  4. Npm or Yarn package manager: npm v8.5.0
  5. Mobile platform/version under test: NA
  6. Real device or emulator/simulator: NA
  7. Appium CLI or Appium.app|exe: Appium CLI

Plugin doesn't select a device and exit with time out

I'm trying to run the plugin with 2 Android devices attached using Android studio.
I'm getting a timeout error after few minute of trying to run a test script.
It looks like the plugin is looping over and over the devices list but does not select any device

Server command:
appium --plugin=device-farm

adb devices returns:
List of devices attached
emulator-5554 device
emulator-5556 device

Error:

[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"},{"udid":"emulator-5556","state":"device"}]
[debug] [ADB] Running 'C:\Users\omadmin\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Running 'C:\Users\omadmin\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.characteristics'
[debug] [ADB] Running 'C:\Users\omadmin\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.product.name'
[debug] [ADB] Running 'C:\Users\omadmin\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5556 shell getprop ro.build.version.release'
[debug] [ADB] Running 'C:\Users\omadmin\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5556 shell getprop ro.build.characteristics'
[debug] [ADB] Running 'C:\Users\omadmin\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5556 shell getprop ro.product.name'
[device-manager] Android Devices found [{"busy":false,"state":"device","udid":"emulator-5554","platform":"android","sdk":"8.1.0","realDevice":false,"name":"sdk_gphone_x86"},{"busy":false,"state":"device","udid":"emulator-5556","platform":"android","sdk":"8.1.0","realDevice":false,"name":"sdk_gphone_x86"}]
[device-manager] Fetching iOS Devices
[debug] [ios-device] Error: connect ECONNREFUSED 127.0.0.1:27015
[debug] [ios-device] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1133:16)
[Appium] Command 'createSession' was not handled by the following beahviors or plugins, even though they were registered to handle it: ["default"]. The command was handled by these: ["device-farm (sessionless)"].
[debug] [W3C] Encountered internal error running command: Error: Timeout waiting for device to be free
[debug] [W3C] at C:\Users\omadmin.appium\appium-device-farm\node_modules\appium-device-farm\lib\plugin.js:50:39
[debug] [W3C] at Generator.throw ()
[debug] [W3C] at rejected (C:\Users\omadmin.appium\appium-device-farm\node_modules\appium-device-farm\lib\plugin.js:6:65)
[HTTP] <-- POST /session 500 180469 ms - 639

"Cannot convert undefined or null to object" error when running test on iOS simulator

When I start automation test using device farm on a remote machine, session can not be created because of an error:
"org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot convert undefined or null to object"

After this happens, one / multiple or even all simulator statuses go from "available" to "busy". Only restarting the server gets them back to "available" state.

Link to Appium logs

Gist appium logs

Environment

  1. Appium version: [email protected]
  2. Appium device-farm version: 2.0.0-beta2
  3. Mobile platform/version under test: iOS (iPhone 12 Pro 15.5)
  4. Real device or emulator/simulator: Simulator (Did not try with real device though) - Running on android does not have this issue.

Device shown as busy after failed test

Im running a UI test on android devices.
When the scripts fails because no element found, the script end and the device status stays busy.

[HTTP] --> DELETE /session/4f41f275-1165-4b15-88c7-c83a6b14c3ec [HTTP] {} [debug] [W3C (4f41f275)] Calling AppiumDriver.deleteSession() with args: ["4f41f275-1165-4b15-88c7-c83a6b14c3ec"] [Appium] Plugins which can handle cmd 'deleteSession': device-farm (sessionless) [Appium] Plugin device-farm (sessionless) is now handling cmd 'deleteSession' [device-manager] Unblocking device UDID: be1f2f9a0820 from session 4f41f275-1165-4b15-88c7-c83a6b14c3ec [device-manager] Deleting Session and device UDID be1f2f9a0820 is unblocked [Appium] Executing default handling behavior for command 'deleteSession' [debug] [BaseDriver] Event 'quitSessionRequested' logged at 1634737996088 (06:53:16 GMT-0700 (Pacific Daylight Time)) [Appium] Removing session 4f41f275-1165-4b15-88c7-c83a6b14c3ec from our master session list [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [WD Proxy] Matched '/' to command name 'deleteSession' [debug] [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:45309/wd/hub/session/7d0589a2-b5a0-43ea-bfc5-add5bd3e54a2] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"7d0589a2-b5a0-43ea-bfc5-add5bd3e54a2","value":null} [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 shell am force-stop com.dc-monitor.com' [debug] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 45309 [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 forward --remove tcp:45309' [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' [debug] [BaseDriver] Event 'quitSessionFinished' logged at 1634737996294 (06:53:16 GMT-0700 (Pacific Daylight Time)) [debug] [W3C (4f41f275)] Received response: null [debug] [W3C (4f41f275)] But deleting session, so not returning [debug] [W3C (4f41f275)] Responding to client with driver.deleteSession() result: null [HTTP] <-- DELETE /session/4f41f275-1165-4b15-88c7-c83a6b14c3ec 200 213 ms - 14 [HTTP] [debug] [Instrumentation] . [debug] [Instrumentation] Time: 9.068 [debug] [Instrumentation] [debug] [Instrumentation] OK (1 test) [debug] [Instrumentation] The process has exited with code 0 [device-manager] Fetching Android Devices [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"be1f2f9a0820","state":"device"}] [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 shell getprop ro.build.version.release' [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 shell getprop ro.build.characteristics' [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 shell getprop ro.product.name' [device-manager] Android Devices found [{"busy":false,"state":"device","udid":"be1f2f9a0820","platform":"android","sdk":"10","realDevice":true,"name":"citrus_global"}] [device-manager] Fetching iOS Devices [debug] [ios-device] Error: The usbmuxd socket at '/var/run/usbmuxd' does not exist or is not accessible [debug] [ios-device] at getDefaultSocket (/root/.appium/appium-device-farm/node_modules/appium-ios-device/lib/usbmux/index.js:80:11) [debug] [ios-device] at Object.getConnectedDevices (/root/.appium/appium-device-farm/node_modules/appium-ios-device/lib/utilities.js:26:35) [device-manager] Fetching Android Devices [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"be1f2f9a0820","state":"device"}] [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 shell getprop ro.build.version.release' [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 shell getprop ro.build.characteristics' [debug] [ADB] Running '/root/platform-tools/adb -P 5037 -s be1f2f9a0820 shell getprop ro.product.name' [device-manager] Android Devices found [{"busy":false,"state":"device","udid":"be1f2f9a0820","platform":"android","sdk":"10","realDevice":true,"name":"citrus_global"}]

UI - Should show online and offline state of the device

At the start of the server I had two devices and the Device list had two devices update. During the time of polling one of the adb commands failed and the device list got updated to one device but the UI still shows both the devices.

Before the adb call failed

[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"},{"udid":"emulator-5556","state":"device"}]
[debug] [ADB] Running '/Users/saikrishna/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Running '/Users/saikrishna/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.characteristics'
[debug] [ADB] Running '/Users/saikrishna/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.name'
[debug] [ADB] Running '/Users/saikrishna/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5556 shell getprop ro.build.version.release'
[debug] [ADB] Running '/Users/saikrishna/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5556 shell getprop ro.build.characteristics'
[debug] [ADB] Running '/Users/saikrishna/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5556 shell getprop ro.product.name'
[device-farm] Device list updated: ["sdk_phone_x86","sdk_gphone_x86"]

After the adb command failed

Error: Command '/Users/saikrishna/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5556 shell getprop ro.build.version.release' timed out after 20000ms
    at Timeout._onTimeout (/Users/saikrishna/Documents/git/appium-device-farm/node_modules/teen_process/lib/exec.js:125:19)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7) {
  stdout: '',
  stderr: '',
  code: null
}
[device-farm] Device list updated: ["sdk_phone_x86"]

Unable to Load Dashboard with Devices on Windows

Appium Version : 2.0.0-beta.25
OS : Windows 10
Node : v14.17.5

Logs :
[HTTP] --> GET /dashboard/api/sessions?
[HTTP] {}
(node:12668) UnhandledPromiseRejectionWarning: Error:
at Database. (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\dialects\sqlite\query.js:227:27)
at C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\dialects\sqlite\query.js:225:50
at new Promise ()
at Query.run (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\dialects\sqlite\query.js:225:12)
at C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\sequelize.js:642:28
at SQLiteQueryInterface.rawSelect (C:
DashboardIssueSS
Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\dialects\abstract\query-interface.js:1021:18)
at Function.aggregate (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\model.js:2022:19)
at Function.count (C:\Users\Rohit Prabhu\A
DashboardIssue.txt
ppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\model.js:2070:20)
at async Promise.all (index 0)
at Function.findAndCountAll (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\model.js:2129:27)
(node:12668) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:12668) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency appium-ios-device to v2.7.16
  • Update dependency chai-as-promised to v7.1.2
  • Update dependency http-proxy-agent to v7.0.2
  • Update dependency https-proxy-agent to v7.0.4
  • Update dependency semver to v7.6.2
  • Update dependency ts-node to v10.9.2
  • Update material-ui monorepo to v5.15.18 (@mui/icons-material, @mui/material)
  • Update dependency @types/lodash to v4.17.4
  • Update dependency appium-uiautomator2-driver to v3.5.1
  • Update dependency appium-xcuitest-driver to v7.15.3
  • Update dependency chai to v4.4.1 (chai, @types/chai)
  • Update dependency eslint to v8.57.0
  • Update dependency eslint-config-prettier to v9.1.0
  • Update dependency lint-staged to v15.2.2
  • Update dependency node-simctl to v7.4.4
  • Update dependency ramda to v0.30.0
  • Update dependency reflect-metadata to ^0.2.0
  • Update dependency typescript to v5.4.5
  • Update macos orb to v2.5.1
  • Update prisma monorepo to v5.14.0 (@prisma/client, prisma)
  • Update actions/checkout action to v4
  • Update actions/setup-java action to v4
  • Update actions/setup-node action to v4
  • Update android-actions/setup-android action to v3
  • Update dependency @appium/docutils to v1
  • Update dependency appium-adb to v12
  • Update dependency chai to v5
  • Update dependency emittery to v1
  • Update dependency eslint to v9
  • Update dependency get-port to v7
  • Update dependency husky to v9
  • Update dependency ip to v2
  • Update dependency node-persist to v4
  • Update dependency normalize-url to v8
  • Update dependency ora to v8
  • Update dependency sinon to v18
  • Update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • πŸ” Create all rate-limited PRs at once πŸ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

circleci
.circleci/config.yml
  • macos 2.3.6
github-actions
.github/workflows/npm-publish.yml
  • actions/checkout v2
  • haya14busa/action-cond v1
  • justincy/github-action-npm-release 2.0.2
  • actions/setup-node v3
  • actions/checkout v2
  • haya14busa/action-bumpr v1
.github/workflows/test.yml
  • actions/checkout v3
  • actions/setup-java v3
  • android-actions/setup-android v2.0.10
  • actions/checkout v3
  • actions/checkout v3
  • actions/checkout v4
  • reactivecircus/android-emulator-runner v2
  • actions/checkout v3
  • actions/checkout v3
  • actions/checkout v3
  • actions/checkout v3
  • actions/setup-java v3
  • android-actions/setup-android v2.0.10
  • actions/checkout v3
npm
documentation/package.json
  • @appium/docutils ^1.0.7
package.json
  • @appium/base-plugin ^2.2.31
  • @appium/types ^0.14.1
  • @devicefarmer/adbkit ^3.2.6
  • @emotion/react ^11.11.4
  • @emotion/styled ^11.11.0
  • @ffmpeg-installer/ffmpeg ^1.1.0
  • @mui/icons-material ^5.15.14
  • @mui/material ^5.15.14
  • @prisma/client ^5.4.1
  • @types/appium-adb ^9.10.4
  • @types/node-persist ^3.1.5
  • appium-adb ^11.0.3
  • appium-chromedriver ^5.6.19
  • appium-ios-device ^2.7.13
  • appium-xcuitest-driver ^7.9.1
  • async-lock ^1.2.8
  • async-wait-until ^2.0.12
  • asyncbox ^3.0.0
  • axios ^1.6.7
  • bluebird ^3.7.2
  • cors ^2.8.5
  • crypto ^1.0.1
  • emittery 0.13.1
  • eventemitter2 ^6.4.9
  • express ^4.17.3
  • form-data ^4.0.0
  • formidable ^3.5.1
  • fs-extra ^11.1.1
  • get-port ^5.1.1
  • http-proxy-agent 7.0.0
  • http-proxy-middleware ^3.0.0-beta.1
  • https-proxy-agent 7.0.2
  • ip ^1.1.8
  • jsonschema 1.4.1
  • lodash 4.17.21
  • lokijs ^1.5.12
  • lru-cache ^10.2.2
  • mjpeg-consumer ^2.0.0
  • mjpeg-proxy ^0.3.0
  • multer ^1.4.5-lts.1
  • node-abort-controller ^3.1.1
  • node-cache ^5.1.2
  • node-persist ^3.1.3
  • node-schedule ^2.1.1
  • node-simctl ^7.3.13
  • normalize-url 6.1.0
  • nyc ^15.1.0
  • ora 5.4.1
  • path-exists-cli ^2.0.0
  • plist ^3.1.0
  • portscanner ^2.2.0
  • prisma ^5.4.1
  • q ^1.5.1
  • ramda ^0.28.0
  • reflect-metadata ^0.1.13
  • semver ^7.5.4
  • tcp-port-used ^1.0.2
  • typedi ^0.10.0
  • uuid ^8.3.2
  • ws ^8.17.0
  • yargs ^17.7.2
  • @appium/docutils ^0.4.11
  • @appium/fake-driver ^5.2.10
  • @appium/plugin-test-support ^0.3.23
  • @babel/core 7.23.9
  • @babel/plugin-proposal-class-properties 7.18.6
  • @types/async-lock 1.4.2
  • @types/chai 4.3.10
  • @types/chai-as-promised ^7.1.8
  • @types/express 4.17.21
  • @types/formidable ^3.4.5
  • @types/fs-extra ^11.0.0
  • @types/ip ^1.1.2
  • @types/js-yaml ^4.0.9
  • @types/lodash 4.14.202
  • @types/lokijs 1.5.14
  • @types/mocha 9.1.1
  • @types/multer ^1.4.11
  • @types/node-schedule 1.3.2
  • @types/plist ^3.0.5
  • @types/portscanner ^2.1.4
  • @types/sinon ^17.0.2
  • @types/sinon-chai ^3.2.12
  • @types/tcp-port-used 1.0.4
  • @types/uuid 8.3.4
  • @types/yargs 17.0.32
  • @typescript-eslint/eslint-plugin 5.62.0
  • @typescript-eslint/parser 5.62.0
  • @wdio/types ^8.24.2
  • appium-uiautomator2-driver ^3.0.4
  • babel-eslint 10.1.0
  • chai 4.3.10
  • chai-as-promised ^7.1.1
  • chai-exclude ^2.1.0
  • dotenv ^16.3.1
  • eslint 8.52.0
  • eslint-config-prettier 9.0.0
  • eslint-plugin-import 2.29.1
  • eslint-plugin-prettier ^5.0.0
  • husky 7.0.4
  • javascript-obfuscator ^4.1.0
  • js-yaml ^4.1.0
  • lint-staged 15.0.2
  • mocha 9.2.2
  • prettier ^3.0.3
  • ramda 0.29.1
  • remove-files-webpack-plugin ^1.5.0
  • sinon 17.0.0
  • sinon-chai ^3.7.0
  • ts-node 10.9.1
  • typescript 5.2.2
  • vite ^4.5.0
  • wait-on ^7.2.0
  • webdriverio ^8.20.4
  • webpack-cli ^5.1.4
  • webpack-node-externals ^3.0.0
  • webpack-obfuscator ^3.5.1
  • appium ^2.5.4
  • node ^14.17.0 || ^16.13.0 || >=18.0.0
  • npm >=8

  • Check this box to trigger a request for Renovate to run again on this repository

Plugin should be able to pick only user given devices

When a user starts the plugin with CLI args as

appium server -ka 800 --plugins=device-farm -pa /wd/hub --plugin-args='{"device-farm": {"Platform": "android", "UDIDS": ['udid1', 'udid2']}}'

In this case only the specified devices should be considered into device pool

Unit Tests

Add unit tests for,

  • Device.ts event emitters, etc
  • tests for plugin.ts

TypeError: Cannot read properties of undefined (reading 'plugin') running appium server device farm

The problem

Error running appium server device farm (1.0.0-beta.20): TypeError: Cannot read properties of undefined (reading 'plugin')

Details

Running appium-device-farm as the README.md says:

$ appium --port 4724 -ka 800 --use-plugins=device-farm,appium-dashboard,relaxed-caps  -pa /wd/hub --plugin-device-farm-platform=android --plugin-device-farm-include-simulators --relaxed-security

it is returning the error TypeError: Cannot read properties of undefined (reading 'plugin')
** Same problem in default port (4723)

Link to Appium logs

GIST

Environment

Unable to detect adb connected devices

Hi,

I have multiple devices connected to the system running appium device farm, but none of them are detected.

I get the following error after starting the server:

TypeError: Cannot read property 'getConnectedDevices' of undefined
    at AndroidDeviceManager.<anonymous> (/home/techm/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:83:48)
    at Generator.next (<anonymous>)
    at fulfilled (/home/techm/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:5:58)

Installed and ran using the following commands:

npm -g install [email protected]
appium driver install uiautomator2
appium plugin install --source=npm appium-device-farm
appium plugin install --source=npm appium-dashboard
appium server -ka 800 --use-plugins=device-farm,appium-dashboard  -pa /wd/hub --plugin-device-farm-platform=android

Here's the full logs:

$ appium server -ka 800 --use-plugins=device-farm,appium-dashboard  -pa /wd/hub --plugin-device-farm-platform=android
(node:30327) ExperimentalWarning: Package name self resolution is an experimental feature. This feature could change at any time
[Appium] Attempting to load plugin device-farm...
In Con android
[Appium] Attempting to load plugin appium-dashboard...
[appium-dashboard] Video directory created /home/techm/.cache/appium-dashboard-plugin/videos
[Appium] Welcome to Appium v2.0.0-beta.21 (REV 28bc2fd99149bbc8462df8b9962786b7ee91966c)
[Appium] Non-default server args:
[Appium]   basePath: /wd/hub
[Appium]   keepAliveTimeout: 800
[Appium]   usePlugins: {
[Appium]     0: device-farm
[Appium]     1: appium-dashboard
[Appium]   }
[Appium] Attempting to load driver uiautomator2...
[device-farm] Device Farm Plugin will be served at http://localhost:4723/device-farm
[device-farm] If the appium server is started with different port other than 4723, then use the correct port number to access the device farm dashboard
TypeError: Cannot read property 'getConnectedDevices' of undefined
    at AndroidDeviceManager.<anonymous> (/home/techm/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:83:48)
    at Generator.next (<anonymous>)
    at fulfilled (/home/techm/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:5:58)
[device-farm] Device list updated: []
[appium-dashboard] Dashboard plugin is enabled and will be served at http://localhost:4723/dashboard
[appium-dashboard] If the appium server is started with different port other than 4723, then use the correct port number to access the device farm dashboard
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] Available drivers:
[Appium]   - [email protected] (automationName 'UiAutomator2')
[Appium] Available plugins:
[Appium]   - [email protected] (ACTIVE)
[Appium]   - [email protected] (ACTIVE)
[device-farm] Device list updated: []
[device-farm] Device list updated: []

Expose new route to add test result information

Refer: https://github.com/appium/appium-plugins/blob/master/packages/fake/lib/plugin.js#L17-L25

Expected: Expose route which will accept the test results such as testName, status

For Ex: When a post call is triggered with data

POST: localhost:4723/device/results

{
  testCaseName: 'SampleData',
  status: 'Pass',
  udid: '12121'
}

The result should be saved as part of the session.

 static newMethodMap = {
    '/session/:sessionId/device/testInfo': {
      POST: {command: 'setTestInfo', payloadParams: {required: ['data']}}
    }
  };


  async setTestInfo(next, driver) {
   return // store the data
  }

Switch to Jest

Currently we use mocha + sinon + chai, switching to jest will get mocking, runner and assertions from a single library. Also we have jest as dependency already in web source code.

[Feature Request] Option to not include simulators

I would like to be able to exclude simulators from the device farm so only connected real devices appear. Currently you get connected real devices and simulators

image

This could be through an added argument, like --plugin-device-farm-include-simulators=true(default)|false

appium server -ka 800 --use-plugins=device-farm,appium-dashboard -pa /wd/hub --plugin-device-farm-platform=ios --plugin-device-farm-include-simulators=false

await Promise.all([this.getRealDevices(existingDeviceDetails), this.getSimulators()])

Unable to create session, No device found for filters error displayed

Hi Team,

I am trying to establish connection using new plugins. I encountered below error when running the script.

On first execution I got error as in link

On executing second Time, I got below error:

[device-farm] Android Device details for 14231JEC210835 already available
[device-farm] Device list updated: ["sunfish"]
info Appium Command 'createSession' was not handled by the following behaviours or plugins, even though they were registered to handle it: ["default"]. The command was handled by these: ["device-farm","appium-dashboard"].
[debug] [AppiumDriver@6f47] Encountered internal error running command: Error: No device found for filters: {"platform":"android","name":"","udid":["14231JEC210835"],"busy":false,"offline":false}
[debug] [AppiumDriver@6f47] at Function. (/Users/hema/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:140:23)
[debug] [AppiumDriver@6f47] at Generator.throw ()
[debug] [AppiumDriver@6f47] at rejected (/Users/hema/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:6:65)
info HTTP <-- POST /wd/hub/session 500 180034 ms - 769

Please find the capabilities provided:
caps.setCapability("appium:app", APP_PATH);
caps.setCapability("appium:automationName", "UIAutomator2");
caps.setCapability("appium:udids", "14231JEC210835");
caps.setCapability("appium:deviceName", "Pixel 4a");
caps.setCapability("platformName", "Android");
caps.setCapability("newCommandTimeout", "700000");
caps.setCapability("appPackage", APP_PACKAGE);
caps.setCapability("appActivity", APP_ACTIVITY);
caps.setCapability("noReset", false);
caps.setCapability("autoLaunch", true);

Appium version: 2.0.0-beta.21
Mac OS version: 12.5
Android Version: 12

Note: I tried with Android Version 11 too

Thanks

Create session fails for iOS with providing `appium:platformVersion`

Not having to provide platformVersion when running test is nice for cases where you don't care which platformVersion a test runs on, allocating the first available device matching the requested platform.

However, creating session when appium:platformVersion is not provided fails. Looking at the Appium logs and it looks like it actually gets pretty far creating session but then fails on tail end. One option would be to set appium:platformVersion from device allocated from device farm since the sdk (platformVersion) is already known

Example code
# Server started with following command
# appium server -ka 30 --use-plugins=device-farm,appium-dashboard -pa /wd/hub --plugin-device-farm-platform=ios --plugin-device-farm-include-simulators=false
def run_test(with_platform_version: bool = False):
    server_url = 'http://localhost:4723/wd/hub'
    desired_caps = {
        "appium:showIOSLog": False,
        "appium:showXcodeLog": True,
        "platformName": "iOS",
        "appium:automationName": "XCUITest",
        "appium:noReset": False,
        "appium:fullReset": False,
        "appium:bundleId": "com.apple.Preferences",
        "appium:xcodeOrgId": "5SREPW8963",
        "appium:xcodeSigningId": "iPhone Developer",
        "appium:deviceAvailabilityTimeout": (30 * 1000),
        "appium:deviceRetryInterval": (5 * 1000),
    }
    if with_platform_version:
        desired_caps["appium:platformVersion"] = "15.5"
    _get_driver(server_url, desired_caps)


def _get_driver(server_url, desired_caps):
    driver = webdriver.Remote(server_url, desired_caps)
    print(f"\tGot session '{driver.capabilities.get('session_id', None)}'")
    driver.quit()


if __name__ == '__main__':
    print("Getting driver without 'appium:platformVersion' cap")
    run_test(with_platform_version=False)
Example console logs
Getting driver without 'appium:platformVersion' cap
Traceback (most recent call last):
  File "/Users/joelwhitney/PycharmProjects/device-farm/main.py", line 37, in <module>
    run_test(with_platform_version=False)
  File "/Users/joelwhitney/PycharmProjects/device-farm/main.py", line 23, in run_test
    _get_driver(server_url, desired_caps)
  File "/Users/joelwhitney/PycharmProjects/device-farm/main.py", line 27, in _get_driver
    driver = webdriver.Remote(server_url, desired_caps)
  File "/Users/joelwhitney/Library/Caches/pypoetry/virtualenvs/device-farm-8dnseSOU-py3.9/lib/python3.9/site-packages/appium/webdriver/webdriver.py", line 230, in __init__
    super().__init__(
  File "/Users/joelwhitney/Library/Caches/pypoetry/virtualenvs/device-farm-8dnseSOU-py3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 277, in __init__
    self.start_session(capabilities, browser_profile)
  File "/Users/joelwhitney/Library/Caches/pypoetry/virtualenvs/device-farm-8dnseSOU-py3.9/lib/python3.9/site-packages/appium/webdriver/webdriver.py", line 320, in start_session
    response = self.execute(RemoteCommand.NEW_SESSION, w3c_caps)
  File "/Users/joelwhitney/Library/Caches/pypoetry/virtualenvs/device-farm-8dnseSOU-py3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 435, in execute
    self.error_handler.check_response(response)
  File "/Users/joelwhitney/Library/Caches/pypoetry/virtualenvs/device-farm-8dnseSOU-py3.9/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: notNull Violation: Session.platform_version cannot be null
Stacktrace:
UnknownError: An unknown server-side error occurred while processing the command. Original error: notNull Violation: Session.platform_version cannot be null
    at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/errors.js:956:9)
    at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:428:35)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
Example Appium logs
[device-farm] {"platform":"ios","name":"","busy":false,"offline":false}
[device-farm] Waiting for free device
[device-farm] Device found: {"udid":"00008030-001609210243C02E","sdk":"15.5","name":"iPad","busy":false,"realDevice":true,"deviceType":"real","platform":"ios","offline":false,"meta":{"revision":2,"created":1657725554615,"version":0,"updated":1657725574520},"$loki":1,"dashboard_link":"http://localhost:4723/dashboard?device_udid=00008030-001609210243C02E&start_time=2022-07-13T15:19:13.363Z","total_session_count":0}
[device-farm] Blocking device 00008030-001609210243C02E for new session
[AppiumDriver@3bff] Plugin appium-dashboard is now handling cmd 'createSession'
[AppiumDriver@3bff] Executing default handling behavior for command 'createSession'
[debug] [AppiumDriver@3bff] Event 'newSessionRequested' logged at 1657725574523 (11:19:34 GMT-0400 (Eastern Daylight Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver
[debug] [Appium] Requiring driver at /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver
[AppiumDriver@3bff] Appium v2.0.0-beta.40 creating new XCUITestDriver (v4.7.2) session
[AppiumDriver@3bff] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@3bff] Appium's BaseDriver version is 8.5.7
[AppiumDriver@3bff] XCUITestDriver's BaseDriver version is 8.5.7
[debug] [XCUITestDriver@1706] Creating session with W3C capabilities: {
[debug] [XCUITestDriver@1706]   "alwaysMatch": {
[debug] [XCUITestDriver@1706]     "platformName": "iOS",
[debug] [XCUITestDriver@1706]     "appium:showIOSLog": false,
[debug] [XCUITestDriver@1706]     "appium:showXcodeLog": true,
[debug] [XCUITestDriver@1706]     "appium:automationName": "XCUITest",
[debug] [XCUITestDriver@1706]     "appium:noReset": false,
[debug] [XCUITestDriver@1706]     "appium:fullReset": false,
[debug] [XCUITestDriver@1706]     "appium:bundleId": "com.apple.Preferences",
[debug] [XCUITestDriver@1706]     "appium:xcodeOrgId": "5SREPW8963",
[debug] [XCUITestDriver@1706]     "appium:xcodeSigningId": "iPhone Developer",
[debug] [XCUITestDriver@1706]     "appium:deviceAvailabilityTimeout": 30000,
[debug] [XCUITestDriver@1706]     "appium:deviceRetryInterval": 5000,
[debug] [XCUITestDriver@1706]     "appium:clearDeviceLogsOnStart": true,
[debug] [XCUITestDriver@1706]     "appium:nativeWebScreenshot": true,
[debug] [XCUITestDriver@1706]     "appium:udid": "00008030-001609210243C02E",
[debug] [XCUITestDriver@1706]     "appium:deviceName": "iPad",
[debug] [XCUITestDriver@1706]     "appium:wdaLocalPort": 63885,
[debug] [XCUITestDriver@1706]     "appium:mjpegServerPort": 63886
[debug] [XCUITestDriver@1706]   },
[debug] [XCUITestDriver@1706]   "firstMatch": [
[debug] [XCUITestDriver@1706]     {}
[debug] [XCUITestDriver@1706]   ]
[debug] [XCUITestDriver@1706] }
[XCUITestDriver@1706] The following capabilities were provided, but are not recognized by Appium:
[XCUITestDriver@1706]   deviceAvailabilityTimeout
[XCUITestDriver@1706]   deviceRetryInterval
[XCUITestDriver@1706]   clearDeviceLogsOnStart
[XCUITestDriver@1706]   nativeWebScreenshot
[XCUITestDriver@1706] 'platformVersion' capability ('undefined') is not a valid version number. Consider fixing it or be ready to experience an inconsistent driver behavior.
[XCUITestDriver@1706 (fbd1dcb6)] Session created with session id: fbd1dcb6-79fa-4b54-8bac-47491643b67d
[debug] [XCUITest] Current user: 'joelwhitney'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Available devices: 00008030-001609210243C02E, 00008030-000C3446012B402E
[debug] [XCUITest] Creating iDevice object with udid '00008030-001609210243C02E'
[XCUITestDriver@1706 (fbd1dcb6)] Determining device to run tests on: udid: '00008030-001609210243C02E', real device: true
[XCUITestDriver@1706 (fbd1dcb6)] No platformVersion specified. Using device version: '15.5'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'xcodeDetailsRetrieved' logged at 1657725574667 (11:19:34 GMT-0400 (Eastern Daylight Time))
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'appConfigured' logged at 1657725574669 (11:19:34 GMT-0400 (Eastern Daylight Time))
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'resetStarted' logged at 1657725574669 (11:19:34 GMT-0400 (Eastern Daylight Time))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'resetComplete' logged at 1657725574669 (11:19:34 GMT-0400 (Eastern Daylight Time))
[XCUITestDriver@1706 (fbd1dcb6)] Using WDA path: '/Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[XCUITestDriver@1706 (fbd1dcb6)] Using WDA agent: '/Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] Executing /Users/joelwhitney/opt/anaconda3/bin/pyidevice crash list --udid 00008030-001609210243C02E --format json
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'logCaptureStarted' logged at 1657725575592 (11:19:35 GMT-0400 (Eastern Daylight Time))
[XCUITestDriver@1706 (fbd1dcb6)] Setting up real device
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Parsed BUILD_DIR configuration value: '/Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Got derived data root: '/Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] No obsolete cached processes from previous WDA sessions listening on port 63885 have been found
[DevCon Factory] Requesting connection for device 00008030-001609210243C02E on local port 63885, device port 63885
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Successfully requested the connection for 00008030-001609210243C02E:63885
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[debug] [iProxy@00008030:63885] Connection was refused to port 63885
[WD Proxy] socket hang up
[debug] [XCUITestDriver@1706 (fbd1dcb6)] WDA is not listening at 'http://127.0.0.1:63885/'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] WDA is currently not running. There is nothing to cache
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Trying to start WebDriverAgent 1 times with 10000ms interval
[debug] [XCUITestDriver@1706 (fbd1dcb6)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'wdaStartAttempted' logged at 1657725577370 (11:19:37 GMT-0400 (Eastern Daylight Time))
[XCUITestDriver@1706 (fbd1dcb6)] Launching WebDriverAgent on the device
[XCUITestDriver@1706 (fbd1dcb6)] WebDriverAgent does not need a cleanup. The sources are up to date (1657555150804 >= 1657555150804)
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*00008030-001609210243C02E' for the device 00008030-001609210243C02E...
[debug] [WebDriverAgent] Generating xcode config file for orgId '5SREPW8963' and signingId 'iPhone Developer'
[debug] [WebDriverAgent] Writing xcode config file to /var/folders/hd/87m800cd5yb4swjmy46vrcs00000gn/T/2022613-66860-pebk1n.4kd6/appium-temp.xcconfig
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Using Xcode configuration file: '/var/folders/hd/87m800cd5yb4swjmy46vrcs00000gn/T/2022613-66860-pebk1n.4kd6/appium-temp.xcconfig'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo -destination id=00008030-001609210243C02E IPHONEOS_DEPLOYMENT_TARGET=15.5 -xcconfig /var/folders/hd/87m800cd5yb4swjmy46vrcs00000gn/T/2022613-66860-pebk1n.4kd6/appium-temp.xcconfig GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[HTTP] --> GET /device-farm/api/devices
[HTTP] {}
[HTTP] --> GET /dashboard/api/sessions?start_time=2022-07-13T15:19:13.363Z
[HTTP] {}
[HTTP] <-- GET /dashboard/api/sessions?start_time=2022-07-13T15:19:13.363Z 200 6 ms - 47
[HTTP] 
[HTTP] <-- GET /device-farm/api/devices 200 11 ms - 804
[HTTP] 
[HTTP] --> GET /device-farm/api/queue
[HTTP] {}
[HTTP] <-- GET /device-farm/api/queue 200 1 ms - 1
[HTTP] 
[Xcode] 2022-07-13 11:19:38.148 xcodebuild[67040:3739708] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
[Xcode] 
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[Xcode] 2022-07-13 11:19:38.148 xcodebuild[67040:3739708] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
[Xcode] 
[debug] [iProxy@00008030:63885] Connection was refused to port 63885
[XCUITestDriver@1706 (fbd1dcb6)] socket hang up
[Xcode] Command line invocation:
[Xcode]     
[Xcode] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo -destination id=00008030-001609210243C02E IPHONEOS_DEPLOYMENT_TARGET=15.5 -xcconfig /var/folders/hd/87m800cd5yb4swjmy46vrcs00000gn/T/2022613-66860-pebk1n.4kd6/appium-temp.xcconfig GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
[Xcode] 
[Xcode] User defaults from command line:
[Xcode]     IDEDerivedDataPathOverride = /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo
[Xcode]     IDEPackageSupportUseBuiltinSCM = YES
[Xcode] 
[Xcode] Build settings from command line:
[Xcode]     COMPILER_INDEX_STORE_ENABLE = NO
[Xcode]     GCC_TREAT_WARNINGS_AS_ERRORS = 0
[Xcode]     IPHONEOS_DEPLOYMENT_TARGET = 15.5
[Xcode] 
[Xcode] Build settings from configuration file '/var/folders/hd/87m800cd5yb4swjmy46vrcs00000gn/T/2022613-66860-pebk1n.4kd6/appium-temp.xcconfig':
[Xcode]     CODE_SIGN_IDENTITY = iPhone Developer
[Xcode]     DEVELOPMENT_TEAM = 5SREPW8963
[Xcode] 
[Xcode] 
[Xcode] 2022-07-13 11:19:38.736 xcodebuild[67040:3739725]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038/DTDeviceKitBase/DTDKRemoteDeviceData.m:373
[Xcode] Details:  (null) deviceType from 00008030-001609210243C02E was NULL when -platform called.
[Xcode] Object:   <DTDKMobileDeviceToken: 0x7fdb33360dd0>
[Xcode] Method:   -platform
[Xcode] Thread:   <NSThread: 0x600002cf1600>{number = 4, name = (null)}
[Xcode] Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
[Xcode] 
[Xcode] 2022-07-13 11:19:38.968 xcodebuild[67040:3739717]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038/DTDeviceKitBase/DTDKRemoteDeviceData.m:373
[Xcode] Details:  (null) deviceType from 00008030-001609210243C02E was NULL when -platform called.
[Xcode] Object:   <DTDKMobileDeviceToken: 0x7fdb33360dd0>
[Xcode] Method:   -platform
[Xcode] Thread:   <NSThread: 0x600002cd5c00>{number = 9, name = (null)}
[Xcode] Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
[Xcode] 
[Xcode] 2022-07-13 11:19:39.044 xcodebuild[67040:3739717]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038/DTDeviceKitBase/DTDKRemoteDeviceData.m:373
[Xcode] Details:  (null) deviceType from 00008030-001609210243C02E was NULL when -platform called.
[Xcode] Object:   <DTDKMobileDeviceToken: 0x7fdb33360dd0>
[Xcode] Method:   -platform
[Xcode] Thread:   <NSThread: 0x600002cd5c00>{number = 9, name = (null)}
[Xcode] Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
[Xcode] 
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[debug] [iProxy@00008030:63885] Connection was refused to port 63885
[XCUITestDriver@1706 (fbd1dcb6)] socket hang up
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[debug] [iProxy@00008030:63885] Connection was refused to port 63885
[XCUITestDriver@1706 (fbd1dcb6)] socket hang up
[Xcode] note: Using new build system
[Xcode] 
[Xcode] note: Using codesigning identity override: iPhone Developer
[Xcode] 
[Xcode] note: Planning
[Xcode] 
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[debug] [iProxy@00008030:63885] Connection was refused to port 63885
[XCUITestDriver@1706 (fbd1dcb6)] socket hang up
[Xcode] Analyze workspace
[Xcode] 
[Xcode] 
[Xcode] 
[Xcode] Create build description
[Xcode] 
[Xcode] Build description signature: 8ab22e3a1bf481bbf9fc6c8d7a714b5e
[Xcode] 
[Xcode] Build description path: /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/XCBuildData/8ab22e3a1bf481bbf9fc6c8d7a714b5e-desc.xcbuild
[Xcode] 
[Xcode] 
[Xcode] note: Build preparation complete
[Xcode] 
[Xcode] note: Building targets in dependency order
[Xcode] 
[Xcode] WriteAuxiliaryFile /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/WebDriverAgentLib-all-non-framework-target-headers.hmap (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     write-file /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/WebDriverAgentLib-all-non-framework-target-headers.hmap
[Xcode] 
[Xcode] 
[Xcode] 
[Xcode] ProcessInfoPlistFile /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/Info.plist /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentLib/Info.plist (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     builtin-infoPlistUtility /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentLib/Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -format binary -platform iphoneos -requiredArchitecture arm64 -o /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/Info.plist
[Xcode] 
[Xcode] /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: warning: User-supplied CFBundleIdentifier value 'com.facebook.wda.lib' in the Info.plist must be the same as the PRODUCT_BUNDLE_IDENTIFIER build setting value 'com.facebook.WebDriverAgentLib'. (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
[Xcode] 
[Xcode] 
[Xcode] 
[Xcode] CodeSign /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
[Xcode]     
[Xcode]     Signing Identity:     "Apple Development: Joel Whitney (SJRK8JXAAH)"
[Xcode]     
[Xcode]     /usr/bin/codesign --force --sign CDE918BF3EEB1483D5597DA0EC78FC687EC506EF --timestamp\=none --generate-entitlement-der /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework
[Xcode] 
[Xcode] /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework: replacing existing signature
[Xcode] 
[Xcode] 
[Xcode] 
[Xcode] ProcessProductPackaging "" /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     
[Xcode]     Entitlements:
[Xcode]     
[Xcode]     {
[Xcode]     "application-identifier" = "5SREPW8963.com.facebook.WebDriverAgentRunner.xctrunner";
[Xcode]     "com.apple.developer.team-identifier" = 5SREPW8963;
[Xcode]     "get-task-allow" = 1;
[Xcode]     "keychain-access-groups" =     (
[Xcode]         "5SREPW8963.com.facebook.WebDriverAgentRunner.xctrunner"
[Xcode]     );
[Xcode] }
[Xcode]     
[Xcode]     builtin-productPackagingUtility -entitlements -format xml -o /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent
[Xcode] 
[Xcode] 
[Xcode] WriteAuxiliaryFile /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner-all-non-framework-target-headers.hmap (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     write-file /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner-all-non-framework-target-headers.hmap
[Xcode] 
[Xcode] 
[Xcode] 
[Xcode] Copy /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -exclude \*.tbd -bitcode-strip all -bitcode-strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -resolve-src-symlinks /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks
[Xcode] 
[Xcode] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib -r -o /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib 
[Xcode] 
[Xcode] 
[Xcode] ProcessInfoPlistFile /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Info.plist /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentRunner/Info.plist (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     builtin-infoPlistUtility /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentRunner/Info.plist -producttype com.apple.product-type.bundle.ui-testing -expandbuildsettings -format binary -platform iphoneos -additionalcontentfile /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/ProductTypeInfoPlistAdditions.plist -requiredArchitecture arm64 -o /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Info.plist
[Xcode] 
[Xcode] /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: warning: User-supplied CFBundleIdentifier value 'com.facebook.wda.runner' in the Info.plist must be the same as the PRODUCT_BUNDLE_IDENTIFIER build setting value 'com.facebook.WebDriverAgentRunner'. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode] 
[Xcode] 
[Xcode] 
[Xcode] CodeSign /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
[Xcode]     
[Xcode]     Signing Identity:     "Apple Development: Joel Whitney (SJRK8JXAAH)"
[Xcode]     Provisioning Profile: "iOS Team Provisioning Profile: *"
[Xcode]                           (b0293e03-484d-451f-881d-2d82c6809f4c)
[Xcode]     
[Xcode]     /usr/bin/codesign --force --sign CDE918BF3EEB1483D5597DA0EC78FC687EC506EF --timestamp\=none --preserve-metadata\=identifier,entitlements,flags --generate-entitlement-der /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework
[Xcode] 
[Xcode] /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework: replacing existing signature
[Xcode] 
[Xcode] 
[Xcode] GenerateDSYMFile /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest.dSYM /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner -o /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest.dSYM
[Xcode] 
[Xcode] 
[Xcode] CodeSign /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
[Xcode]     
[Xcode]     Signing Identity:     "Apple Development: Joel Whitney (SJRK8JXAAH)"
[Xcode]     Provisioning Profile: "iOS Team Provisioning Profile: *"
[Xcode]                           (b0293e03-484d-451f-881d-2d82c6809f4c)
[Xcode]     
[Xcode]     /usr/bin/codesign --force --sign CDE918BF3EEB1483D5597DA0EC78FC687EC506EF --entitlements /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp\=none --generate-entitlement-der /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[Xcode] 
[Xcode] /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest: replacing existing signature
[Xcode] 
[Xcode] 
[Xcode] 
[Xcode] CodeSign /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[Xcode]     cd /Users/joelwhitney/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent
[Xcode]     export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
[Xcode]     
[Xcode]     Signing Identity:     "Apple Development: Joel Whitney (SJRK8JXAAH)"
[Xcode]     Provisioning Profile: "iOS Team Provisioning Profile: *"
[Xcode]                           (b0293e03-484d-451f-881d-2d82c6809f4c)
[Xcode]     
[Xcode]     /usr/bin/codesign --force --sign CDE918BF3EEB1483D5597DA0EC78FC687EC506EF --entitlements /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp\=none --generate-entitlement-der /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
[Xcode] 
[Xcode] /Users/joelwhitney/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwgdzantiqrioifbngzbwxnjvsqo/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app: replacing existing signature
[Xcode] 
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[debug] [iProxy@00008030:63885] Connection was refused to port 63885
[XCUITestDriver@1706 (fbd1dcb6)] socket hang up
[Xcode] 
[Xcode] 
[Xcode] ** TEST BUILD SUCCEEDED **
[Xcode] 
[Xcode] 
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[debug] [iProxy@00008030:63885] Connection was refused to port 63885
[XCUITestDriver@1706 (fbd1dcb6)] socket hang up
[Xcode] 2022-07-13 11:19:44.348706-0400 WebDriverAgentRunner-Runner[83669:5943574] Running tests...
[Xcode] 
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[debug] [iProxy@00008030:63885] Connection was refused to port 63885
[XCUITestDriver@1706 (fbd1dcb6)] socket hang up
[Xcode] Test Suite 'All tests' started at 2022-07-13 11:19:44.789
[Xcode] Test Suite 'WebDriverAgentRunner.xctest' started at 2022-07-13 11:19:44.790
[Xcode] Test Suite 'UITestingUITests' started at 2022-07-13 11:19:44.791
[Xcode] 
[Xcode]     t =      nans Suite Set Up
[Xcode] 
[Xcode] 2022-07-13 11:19:44.812797-0400 WebDriverAgentRunner-Runner[83669:5943574] [User Defaults] Couldn't write values for keys (
[Xcode]     KeyboardAutocorrection
[Xcode] ) in CFPrefsPlistSource<0x280dc6e80> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
[Xcode] 2022-07-13 11:19:44.813460-0400 WebDriverAgentRunner-Runner[83669:5943574] [User Defaults] Couldn't write values for keys (
[Xcode]     "KeyboardAutocorrection_changedAt"
[Xcode] ) in CFPrefsPlistSource<0x280dc6e80> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
[Xcode] 
[Xcode] 2022-07-13 11:19:44.813985-0400 WebDriverAgentRunner-Runner[83669:5943574] [User Defaults] Couldn't write values for keys (
[Xcode]     "KeyboardAutocorrection_buildAtChange"
[Xcode] ) in CFPrefsPlistSource<0x280dc6e80> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
[Xcode] 2022-07-13 11:19:44.814546-0400 WebDriverAgentRunner-Runner[83669:5943574] [User Defaults] Couldn't write values for keys (
[Xcode]     "KeyboardAutocorrection_previousValue"
[Xcode] ) in CFPrefsPlistSource<0x280dc6e80> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
[Xcode] 
[Xcode] 2022-07-13 11:19:44.815063-0400 WebDriverAgentRunner-Runner[83669:5943574] [User Defaults] Couldn't write values for keys (
[Xcode]     "KeyboardAutocorrection_analyzedAt"
[Xcode] ) in CFPrefsPlistSource<0x280dc6e80> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
[Xcode] 
[device-farm] IOS Device details for 00008030-001609210243C02E already available
[device-farm] IOS Device details for 00008030-000C3446012B402E already available
[device-farm] Device list updated: ["iPad","iPhone"]
[Xcode] 2022-07-13 11:19:44.827937-0400 WebDriverAgentRunner-Runner[83669:5943574] [User Defaults] Couldn't write values for keys (
[Xcode]     KeyboardPrediction
[Xcode] ) in CFPrefsPlistSource<0x280dc6e80> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
[Xcode] 
[Xcode] 2022-07-13 11:19:44.828465-0400 WebDriverAgentRunner-Runner[83669:5943574] [User Defaults] Couldn't write values for keys (
[Xcode]     KeyboardShowPredictionBar
[Xcode] ) in CFPrefsPlistSource<0x280dc6e80> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
[Xcode] 
[Xcode] 2022-07-13 11:19:44.829047-0400 WebDriverAgentRunner-Runner[83669:5943574] [User Defaults] Couldn't write values for keys (
[Xcode]     DidShowContinuousPathIntroduction
[Xcode] ) in CFPrefsPlistSource<0x280dc6e80> (Domain: com.apple.keyboard.preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
[Xcode] 
[Xcode] Test Case '-[UITestingUITests testRunner]' started.
[Xcode] 
[Xcode]     t =     0.00s Start Test at 2022-07-13 11:19:44.835
[Xcode] 
[Xcode]     t =     0.00s Set Up
[Xcode] 
[Xcode] 2022-07-13 11:19:44.839116-0400 WebDriverAgentRunner-Runner[83669:5943574] Built at Jul 13 2022 11:15:51
[Xcode] 
[Xcode] 2022-07-13 11:19:44.853065-0400 WebDriverAgentRunner-Runner[83669:5943574] ServerURLHere->http://169.254.149.208:63885<-ServerURLHere
[Xcode] 
[Xcode] 2022-07-13 11:19:44.853575-0400 WebDriverAgentRunner-Runner[83669:5943810] Using singleton test manager
[Xcode] 
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/status' to command name 'getStatus'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /status] to [GET http://127.0.0.1:63885/status] with no body
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iPadOS","sdkVersion":"15.4","version":"15.5"},"ios":{"ip":"169.254.149.208"},"ready":true,"build":{"upgradedAt":"1657555150804","time":"Jul 13 2022 11:15:52","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"}},"sessionId":null}
[debug] [XCUITestDriver@1706 (fbd1dcb6)] WebDriverAgent information:
[debug] [XCUITestDriver@1706 (fbd1dcb6)] {
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   "message": "WebDriverAgent is ready to accept commands",
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   "state": "success",
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   "os": {
[debug] [XCUITestDriver@1706 (fbd1dcb6)]     "testmanagerdVersion": 28,
[debug] [XCUITestDriver@1706 (fbd1dcb6)]     "name": "iPadOS",
[debug] [XCUITestDriver@1706 (fbd1dcb6)]     "sdkVersion": "15.4",
[debug] [XCUITestDriver@1706 (fbd1dcb6)]     "version": "15.5"
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   },
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   "ios": {
[debug] [XCUITestDriver@1706 (fbd1dcb6)]     "ip": "169.254.149.208"
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   },
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   "ready": true,
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   "build": {
[debug] [XCUITestDriver@1706 (fbd1dcb6)]     "upgradedAt": "1657555150804",
[debug] [XCUITestDriver@1706 (fbd1dcb6)]     "time": "Jul 13 2022 11:15:52",
[debug] [XCUITestDriver@1706 (fbd1dcb6)]     "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[debug] [XCUITestDriver@1706 (fbd1dcb6)]   }
[debug] [XCUITestDriver@1706 (fbd1dcb6)] }
[debug] [XCUITestDriver@1706 (fbd1dcb6)] WebDriverAgent successfully started after 7589ms
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'wdaSessionAttempted' logged at 1657725585240 (11:19:45 GMT-0400 (Eastern Daylight Time))
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Sending createSession command to WDA
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/session' to command name 'createSession'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [POST /session] to [POST http://127.0.0.1:63885/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.apple.Preferences","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"forceAppLaunch":true,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true}],"alwaysMatch":{}}}
[Xcode]     t =     0.73s Open com.apple.Preferences
[Xcode] 
[Xcode]     t =     0.73s     Launch com.apple.Preferences
[Xcode] 
[Xcode]     t =     0.73s         Terminate com.apple.Preferences:83656
[Xcode] 
[Xcode]     t =     1.82s         Setting up automation session
[Xcode] 
[Xcode] 2022-07-13 11:19:46.696656-0400 WebDriverAgentRunner-Runner[83669:5943574] Waiting up to 10s until com.apple.Preferences is in idle state (including animations)
[Xcode]     t =     1.86s         Wait for com.apple.Preferences to idle
[Xcode] 
[Xcode] 2022-07-13 11:19:47.816443-0400 WebDriverAgentRunner-Runner[83669:5943574] Getting the most recent active application (out of 1 total items)
[Xcode] 
[Xcode]     t =     2.98s Find the Application 'com.apple.Preferences'
[Xcode] 
[Xcode]     t =     2.99s     Requesting snapshot of accessibility hierarchy for app with pid 83670
[Xcode] 
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Got response with status 200: {"value":{"sessionId":"8FA26189-9F43-4506-9324-AF2AE0A17917","capabilities":{"device":"ipad","browserName":"Settings","sdkVersion":"15.5","CFBundleIdentifier":"com.apple.Preferences"}},"sessionId":"8FA26189-9F43-4506-9324-AF2AE0A17917"}
[XCUITestDriver@1706 (fbd1dcb6)] Determined the downstream protocol as 'W3C'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'wdaSessionStarted' logged at 1657725587725 (11:19:47 GMT-0400 (Eastern Daylight Time))
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'wdaStarted' logged at 1657725587726 (11:19:47 GMT-0400 (Eastern Daylight Time))
[XCUITestDriver@1706 (fbd1dcb6)] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Event 'orientationSet' logged at 1657725587726 (11:19:47 GMT-0400 (Eastern Daylight Time))
[debug] [BaseDriver] The value of 'elementResponseAttributes' setting did not change. Skipping the update for it
[debug] [BaseDriver] The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it
[AppiumDriver@3bff] New XCUITestDriver session created successfully, session fbd1dcb6-79fa-4b54-8bac-47491643b67d added to master session list
[debug] [AppiumDriver@3bff] Event 'newSessionStarted' logged at 1657725587730 (11:19:47 GMT-0400 (Eastern Daylight Time))
[HTTP] --> POST /wd/hub/wd-internal/session/fbd1dcb6-79fa-4b54-8bac-47491643b67d/appium/start_recording_screen
[HTTP] {"options":{"videoType":"libx264","videoFps":10,"timeLimit":1800}}
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Calling AppiumDriver.startRecordingScreen() with args: [{"videoType":"libx264","videoFps":10,"timeLimit":1800},"fbd1dcb6-79fa-4b54-8bac-47491643b67d"]
[AppiumDriver@3bff] Plugins which can handle cmd 'startRecordingScreen': appium-dashboard
[AppiumDriver@3bff] Plugin appium-dashboard is now handling cmd 'startRecordingScreen'
[AppiumDriver@3bff] Executing default handling behavior for command 'startRecordingScreen'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Executing command 'startRecordingScreen'
[XCUITestDriver@1706 (fbd1dcb6)] Checking if there is/was a previous screen recording. Set 'forceRestart' option to 'true' if you'd like to skip this step.
[XCUITestDriver@1706 (fbd1dcb6)] Screen recording is not running. There is nothing to stop.
[DevCon Factory] Releasing connections for 00008030-001609210243C02E device on 63886 port number
[DevCon Factory] No cached connections have been found
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Matched '/appium/settings' to command name 'getSettings'
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Proxying [GET /appium/settings] to [GET http://127.0.0.1:63885/session/8FA26189-9F43-4506-9324-AF2AE0A17917/appium/settings] with no body
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Got response with status 200: {"value":{"boundElementsByIndex":false,"mjpegServerFramerate":10,"screenshotOrientation":"auto","reduceMotion":false,"elementResponseAttributes":"type,label","screenshotQuality":1,"mjpegScalingFactor":100,"keyboardPrediction":0,"defaultActiveApplication":"auto","mjpegServerScreenshotQuality":25,"defaultAlertAction":"","keyboardAutocorrection":0,"useFirstMatch":false,"shouldUseCompactResponses":true,"customSnapshotTimeout":15,"dismissAlertButtonSelector":"","activeAppDetectionPoint":"153.60,153.60","snapshotMaxDepth":50,"waitForIdleTimeout":10,"includeNonModalElements":false,"acceptAlertButtonSelector":"","animationCoolOffTimeout":2},"sessionId":"8FA26189-9F43-4506-9324-AF2AE0A17917"}
[DevCon Factory] Requesting connection for device 00008030-001609210243C02E on local port 63886, device port 63886
[debug] [DevCon Factory] Cached connections count: 1
[DevCon Factory] Successfully requested the connection for 00008030-001609210243C02E:63886
[ffmpeg] ffmpeg version N-92718-g092cb17983-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
[ffmpeg]   built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
[ffmpeg]   configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
[ffmpeg]   libavutil      56. 24.101 / 56. 24.101
[ffmpeg]   libavcodec     58. 42.102 / 58. 42.102
[ffmpeg]   libavformat    58. 24.101 / 58. 24.101
[ffmpeg]   libavdevice    58.  6.101 / 58.  6.101
[ffmpeg]   libavfilter     7. 46.101 /  7. 46.101
[ffmpeg]   libswscale      5.  4.100 /  5.  4.100
[ffmpeg]   libswresample   3.  4.100 /  3.  4.100
[ffmpeg]   libpostproc    55.  4.100 / 55.  4.100
[ffmpeg] 
[HTTP] --> GET /device-farm/api/devices
[HTTP] {}
[Xcode] 2022-07-13 11:19:48.100631-0400 WebDriverAgentRunner-Runner[83669:5943812] Got screenshots broadcast client connection at 127.0.0.1:51484
[Xcode] 
[HTTP] --> GET /dashboard/api/sessions?start_time=2022-07-13T15:19:13.363Z
[HTTP] {}
[Xcode] 2022-07-13 11:19:48.103830-0400 WebDriverAgentRunner-Runner[83669:5943808] Starting screenshots broadcast for the client at 127.0.0.1:51484
[Xcode] 
[HTTP] <-- GET /dashboard/api/sessions?start_time=2022-07-13T15:19:13.363Z 200 6 ms - 47
[HTTP] 
[HTTP] <-- GET /device-farm/api/devices 200 11 ms - 804
[HTTP] 
[HTTP] --> GET /device-farm/api/queue
[HTTP] {}
[HTTP] <-- GET /device-farm/api/queue 304 1 ms - -
[HTTP] 
[ffmpeg] Input #0, mjpeg, from 'http://127.0.0.1:63886':
[ffmpeg]   Duration: N/A
[ffmpeg] , bitrate: N/A
[ffmpeg]     Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1620x2160 [SAR 72:72 DAR 3:4], 10 tbr, 1200k tbn, 10 tbc
[ffmpeg] 
[ffmpeg] Stream mapping:
[ffmpeg]   Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
[ffmpeg] Press [q] to stop, [?] for help
[ffmpeg] 
[ffmpeg] [libx264 @ 0x7fefca00de00] using SAR=1/1
[ffmpeg] 
[ffmpeg] [libx264 @ 0x7fefca00de00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[ffmpeg] 
[ffmpeg] [libx264 @ 0x7fefca00de00] profile High, level 5.0, 4:2:0, 8-bit
[ffmpeg] [libx264 @ 0x7fefca00de00] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[ffmpeg] 
[ffmpeg] Output #0, mp4, to '/var/folders/hd/87m800cd5yb4swjmy46vrcs00000gn/T/2022613-66860-uo1pb7.dls2c/appium_5bb146.mp4':
[ffmpeg]   Metadata:
[ffmpeg]     encoder         : Lavf58.24.101
[ffmpeg]     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 1620x2160 [SAR 72:72 DAR 3:4], q=-1--1, 10 fps, 10240 tbn, 10 tbc
[ffmpeg]     Metadata:
[ffmpeg]       encoder         : Lavc58.42.102 libx264
[ffmpeg]     Side data:
[ffmpeg]       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[ffmpeg] 
[XCUITestDriver@1706 (fbd1dcb6)] Starting screen capture on the device '00008030-001609210243C02E' with command: 'ffmpeg -f mjpeg -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 1801 -r 10 -i http://127.0.0.1:63886 -vcodec libx264 -y /var/folders/hd/87m800cd5yb4swjmy46vrcs00000gn/T/2022613-66860-uo1pb7.dls2c/appium_5bb146.mp4'. Will timeout in 1800000ms
[debug] [XCUITestDriver@1706 (fbd1dcb6)] Responding to client with driver.startRecordingScreen() result: ""
[HTTP] <-- POST /wd/hub/session/fbd1dcb6-79fa-4b54-8bac-47491643b67d/appium/start_recording_screen 200 1241 ms - 12
[HTTP] 
[debug] [AppiumDriver@3bff] Encountered internal error running command: SequelizeValidationError: notNull Violation: Session.platform_version cannot be null
[debug] [AppiumDriver@3bff]     at InstanceValidator._validate (/Users/joelwhitney/.appium/node_modules/sequelize/src/instance-validator.js:78:13)
[debug] [AppiumDriver@3bff]     at runMicrotasks (<anonymous>)
[debug] [AppiumDriver@3bff]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[debug] [AppiumDriver@3bff]     at InstanceValidator._validateAndRunHooks (/Users/joelwhitney/.appium/node_modules/sequelize/src/instance-validator.js:111:7)
[debug] [AppiumDriver@3bff]     at InstanceValidator.validate (/Users/joelwhitney/.appium/node_modules/sequelize/src/instance-validator.js:93:12)
[debug] [AppiumDriver@3bff]     at Session.save (/Users/joelwhitney/.appium/node_modules/sequelize/src/model.js:3996:7)
[debug] [AppiumDriver@3bff]     at Function.create (/Users/joelwhitney/.appium/node_modules/sequelize/src/model.js:2280:12)
[HTTP] <-- POST /wd/hub/session 500 14501 ms - 724
[HTTP] 

Issue while creating a new session

{"capabilities":{"firstMatch":[{}],"alwaysMatch":{"appium:app":"/Users/jyothishkumarav/IdeaProjects/AppiumJavaSample/src/test/resources/sampleApps/ApiDemos-debug.apk","appium:appActivity":".ApiDemos","appium:appPackage":"io.appium.android.apis","appium:automationName":"UiAutomator2","appium:platformVersion":"13","platformName":"android"}}}
[debug] [AppiumDriver@5ffd] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"appium:app":"ApiDemos-debug.apk","appium:appActivity":".ApiDemos","appium:appPackage":"io.appium.android.apis","appium:automationName":"UiAutomator2","appium:platformVersion":"13","platformName":"android"}}]
[AppiumDriver@5ffd] Plugins which can handle cmd 'createSession': device-farm,appium-dashboard
[AppiumDriver@5ffd] Plugin appium-dashboard is now handling cmd 'createSession'
[AppiumDriver@5ffd] Plugin device-farm is now handling cmd 'createSession'
[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"},{"udid":"emulator-5556","state":"device"}]
[device-farm] Android Device details for emulator-5554 already available
[device-farm] Android Device details for emulator-5556 already available
[device-farm] Device list updated: ["sdk_gphone64_arm64","sdk_gphone64_arm64"]
[device-farm] {"platform":"android","name":"","busy":false,"offline":false}
[device-farm] Waiting for free device
[device-farm] Device found: {"sdk":"13","realDevice":false,"name":"sdk_gphone64_arm64","busy":false,"state":"device","udid":"emulator-5554","platform":"android","deviceType":"emulator","offline":false,"meta":{"revision":29,"created":1654883302594,"version":0,"updated":1654883568896},"$loki":1}
[device-farm] Blocking device emulator-5554 for new session
[AppiumDriver@5ffd] Executing default handling behavior for command 'createSession'
[debug] [AppiumDriver@5ffd] Event 'newSessionRequested' logged at 1654883568897 (23:22:48 GMT+0530 (India Standard Time))
[BaseDriver] property 'mjpegServerPort' should not exist on both primary ({"platformName":"android","app":"ApiDemos-debug.apk","appActivity":".ApiDemos","appPackage":"io.appium.android.apis","automationName":"UiAutomator2","platformVersion":"13","clearDeviceLogsOnStart":true,"nativeWebScreenshot":true,"mjpegServerPort":60727}) and secondary ({"udid":"emulator-5554","deviceName":"emulator-5554","systemPort":60730,"chromeDriverPort":60731,"mjpegServerPort":60732}) object
[Appium] Could not parse W3C capabilities: property 'mjpegServerPort' should not exist on both primary ({"platformName":"android","app":"/Users/jyothishkumarav/IdeaProjects/AppiumJavaSample/src/test/resources/sampleApps/ApiDemos-debug.apk","appActivity":".ApiDemos","appPackage":"io.appium.android.apis","automationName":"UiAutomator2","platformVersion":"13","clearDeviceLogsOnStart":true,"nativeWebScreenshot":true,"mjpegServerPort":60727}) and secondary ({"udid":"emulator-5554","deviceName":"emulator-5554","systemPort":60730,"chromeDriverPort":60731,"mjpegServerPort":60732}) object
[debug] [AppiumDriver@5ffd] Event 'newSessionStarted' logged at 1654883568899 (23:22:48 GMT+0530 (India Standard Time))
[device-farm] Device UDID emulator-5554 unblocked. Reason: Session failed to create
[debug] [AppiumDriver@5ffd] Encountered internal error running command: InvalidArgumentError: property 'mjpegServerPort' should not exist on both primary ({"platformName":"android","app":"ApiDemos-debug.apk","appActivity":".ApiDemos","appPackage":"io.appium.android.apis","automationName":"UiAutomator2","platformVersion":"13","clearDeviceLogsOnStart":true,"nativeWebScreenshot":true,"mjpegServerPort":60727}) and secondary ({"udid":"emulator-5554","deviceName":"emulator-5554","systemPort":60730,"chromeDriverPort":60731,"mjpegServerPort":60732}) object

I am using the latest version of appium and plugins.
βœ” Listing available plugins

Does not work with Appium v2.0.0-beta.40

When I try to install this plugin with [email protected], I got this message.

Plugin "appium-device-farm" has 1 potential problem:
  - Plugin "appium-device-farm" (package `appium-dashboard`) may be incompatible with the current version of Appium (v2.0.0-beta.40) due to an invalid or missing peer dependency on Appium. Please ask the developer of `appium-dashboard` to add a peer dependency on `^[email protected]`.

Seems the dependency is missing from the plugin.

Cannot use device-farm for use case without app capability

Version: [email protected]

Appium is able to test the app currently installed on the device, if bundleId or appPackage is specified, with certain conditions.

But device-farm does not allow that use case, erroring with:

Encountered internal error running command: TypeError: Cannot read property 'endsWith' of undefined
at getDeviceTypeFromApp (/Users/[REDACTED]/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-utils.js:6:16)
at Function.getDeviceFiltersFromCapability (/Users/[REDACTED]/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:168:55)
at Function.<anonymous> (/Users/[REDACTED]/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:119:42)
at Generator.next (<anonymous>)
at /Users/[REDACTED]/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:8:71
at new Promise (<anonymous>)
at __awaiter (/Users/[REDACTED]/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:4:12)
at Function.allocateDeviceForSession (/Users/[REDACTED]/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:117:16)
at DevicePlugin.<anonymous> (/Users/[REDACTED]/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:79:55)
at Generator.next (<anonymous>)
at fulfilled (/Users/[REDACTED]/.appium/appium-device-farm/node_modules/appium-device-farm/lib/plugin.js:5:58)

It tries to read the final contents of the app capability and in order to determine the platform under test from it.

Ideally, device-farm would use a different method to determine the platform under test, maybe by reading the platformName capability).

This use case has an undefined app capability, hence the error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.