appium / appium-flutter-driver

Appium Flutter Driver is a test automation tool for Flutter apps on multiple platforms/OSes. Appium Flutter Driver is part of the Appium mobile test automation tool maintained by community
MIT License
470 stars 183 forks source link

ci: run an example code on CI as a quick functionality check #720

Closed KazuCocoa closed 4 months ago

KazuCocoa commented 4 months ago
2024-07-22 08:58:38:840 - [4f71ae61][XCUITestDriver@7a75] Starting log capture for iOS Simulator with udid '033AAADD-D00F-4622-81A3-08DCF8DCDDA9' using simctl
2024-07-22 08:58:39:459 - [4f71ae61][XCUITestDriver@7a75] [IOS_SYSLOG_ROW STDERR] getpwuid_r did not find a match for uid 501
2024-07-22 08:58:39:459 - [4f71ae61][XCUITestDriver@7a75] Event 'logCaptureStarted' logged at 1721638719459 (08:58:39 GMT+0000 (Coordinated Universal Time))
2024-07-22 08:58:39:459 - [4f71ae61][XCUITestDriver@7a75] Setting up simulator

hm, it looks like simulator's log is not available on gha...?

KazuCocoa commented 4 months ago

hm, the ci caused:

2024-07-22 09:20:57:239 - [a0b078c4][FlutterDriver@ae5f] Establishing a connection to the Dart Observatory
2024-07-22 09:20:57:643 - [a0b078c4][FlutterDriver@ae5f] Connecting to Dart Observatory: ws://127.0.0.1:37935/ltHvr69oUoo=/ws
2024-07-22 09:20:57:725 - [a0b078c4][FlutterDriver@ae5f] Listing all isolates: [{"type":"@Isolate","id":"isolates/4191217757987151","name":"main","number":"4191217757987151","isSystemIsolate":false}]
2024-07-22 09:20:57:799 - [a0b078c4][FlutterDriver@ae5f] Deleting Flutter Driver session
2024-07-22 09:20:57:799 - [a0b078c4][FlutterDriver@ae5f] Cleanup the port forward
2024-07-22 09:20:57:800 - [a0b078c4][AppiumDriver@e748] Event 'newSessionStarted' logged at 1721640057800 (09:20:57 GMT+0000 (Coordinated Universal Time))
2024-07-22 09:20:57:803 - [a0b078c4][AppiumDriver@e748] Encountered internal error running command: TypeError: Cannot read properties of undefined (reading 'adb')
    at FlutterDriver.deleteSession (/home/runner/work/appium-flutter-driver/appium-flutter-driver/driver/lib/driver.ts:134:34)
    at FlutterDriver.createSession (/home/runner/work/appium-flutter-driver/appium-flutter-driver/driver/lib/sessions/session.ts:59:16)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at AppiumDriver.createSession (/opt/hostedtoolcache/node/20.15.1/x64/lib/node_modules/appium/lib/appium.js:731:35)
2024-07-22 09:20:57:816 - [a0b078c4][HTTP] <-- POST /session 500 26398 ms - 656 
2024-07-22 09:20:59:193 - [a0b078c4][AndroidUiautomator2Driver@ec54] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:

it might be interesting to check before a release. It didn't occur in past run in this PR.