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
454 stars 183 forks source link

[iOS] Only Flutter context returned with Flutter Automation #695

Closed mcg95 closed 2 months ago

mcg95 commented 3 months ago

We are automating our Flutter app and we were able to make it work as required for Android. However in iOS, I am able to use FLUTTER context ONLY when using the Flutter automation, and if I use the XCUITest automation, I can access NATIVE_APP and WEBVIEW contexts.

What we need is to access FLUTTER, NATIVE_APP and WEBVIEW context via the Flutter automation similar to how we do on Android. Any help would be appreciated. My capabilities and Logs are below:

Capabilities:

exports.config = {
    runner: 'local',
    path: '/wd/hub',
    specs: [
        './test/specs/**/*.js'
    ],
    exclude: [],
    maxInstances: 10,
    capabilities: [{
        // capabilities for local Appium web tests on an iOS Simulator
        platformName: 'iOS',
        'appium:deviceName': 'iPhone 15 Pro',
        'appium:bundleId': 'com.example.xyz',
        'appium:automationName': 'Flutter',
        'appium:platformVersion': '17.0',
        'appium:noReset': true,
        'appium:startIWDP': true,
        'appium:useNewWDA': true,
        'appium:wdaLaunchTimeout': 60000,
        'appium:wdaConnectionTimeout': 60000,
        'appium:newCommandTimeout': 300,
        'appium:app': 'build/ios/Debug-uat-iphonesimulator/Runner.app',
        'appium:includeSafariInWebviews': true,
        'appium:connectionRetryTimeout': 90000, 
        'appium:webviewConnectTimeout': 30000,
        'appium:fullContextList': true
    }],
    logLevel: 'info',
    bail: 0,
    baseUrl: 'http://localhost',
    waitforTimeout: 10000,
    connectionRetryTimeout: 90000,
    connectionRetryCount: 3,
    services: ['appium'],
    framework: 'mocha',
    reporters: ['spec'],
    mochaOpts: {
        ui: 'bdd',
        timeout: 60000
    }
};

Log:

> npm-appium@1.0.0 ipa:ios
> npx wdio run wdio.ios.conf.js

Execution of 1 workers started at 2024-06-03T14:35:37.435Z

2024-06-03T14:35:37.449Z INFO @wdio/cli:launcher: Run onPrepare hook
2024-06-03T14:35:37.459Z INFO @wdio/appium-service: Will spawn Appium process: node /Users/.../npm-appium/node_modules/appium/index.js --base-path /
2024-06-03T14:35:39.988Z INFO @wdio/appium-service: Appium started with ID: 27743
2024-06-03T14:35:39.995Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2024-06-03T14:35:39.995Z INFO @wdio/local-runner: Start worker 0-0 with arg: run,wdio.ios.conf.js
[0-0] 2024-06-03T14:35:40.657Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in iOS - file:///test/specs/test.e2e.js
[0-0] 2024-06-03T14:35:40.737Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2024-06-03T14:35:40.737Z INFO @wdio/utils: Connecting to existing driver at http://127.0.0.1:4723/
[0-0] 2024-06-03T14:35:40.785Z INFO webdriver: [POST] http://127.0.0.1:4723/session
[0-0] 2024-06-03T14:35:40.785Z INFO webdriver: DATA {
[0-0]   capabilities: {
[0-0]     alwaysMatch: {
[0-0]       platformName: 'iOS',
[0-0]       'appium:deviceName': 'iPhone 15 Pro',
[0-0]       'appium:bundleId': 'com.example.xyz',
[0-0]       'appium:automationName': 'Flutter',
[0-0]       'appium:platformVersion': '17.0',
[0-0]       'appium:noReset': true,
[0-0]       'appium:startIWDP': true,
[0-0]       'appium:useNewWDA': true,
[0-0]       'appium:wdaLaunchTimeout': 60000,
[0-0]       'appium:wdaConnectionTimeout': 60000,
[0-0]       'appium:newCommandTimeout': 300,
[0-0]       'appium:app': 'build/ios/Debug-uat-iphonesimulator/Runner.app',
[0-0]       'appium:includeSafariInWebviews': true,
[0-0]       'appium:connectionRetryTimeout': 90000,
[0-0]       'appium:webviewConnectTimeout': 30000,
[0-0]       'appium:fullContextList': true
[0-0]     },
[0-0]     firstMatch: [ {} ]
[0-0]   },
[0-0]   desiredCapabilities: {
[0-0]     platformName: 'iOS',
[0-0]     'appium:deviceName': 'iPhone 15 Pro',
[0-0]     'appium:bundleId': 'com.example.xyz',
[0-0]     'appium:automationName': 'Flutter',
[0-0]     'appium:platformVersion': '17.0',
[0-0]     'appium:noReset': true,
[0-0]     'appium:startIWDP': true,
[0-0]     'appium:useNewWDA': true,
[0-0]     'appium:wdaLaunchTimeout': 60000,
[0-0]     'appium:wdaConnectionTimeout': 60000,
[0-0]     'appium:newCommandTimeout': 300,
[0-0]     'appium:app': 'build/ios/Debug-uat-iphonesimulator/Runner.app',
[0-0]     'appium:includeSafariInWebviews': true,
[0-0]     'appium:connectionRetryTimeout': 90000,
[0-0]     'appium:webviewConnectTimeout': 30000,
[0-0]     'appium:fullContextList': true
[0-0]   }
[0-0] }
[0-0] Started session
[0-0] 2024-06-03T14:35:55.041Z INFO webdriver: COMMAND elementClick("eyJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSIsImtleVZhbHVlU3RyaW5nIjoiSm9pblVzIiwia2V5VmFsdWVUeXBlIjoiU3RyaW5nIn0")
[0-0] 2024-06-03T14:35:55.070Z INFO webdriver: [POST] http://127.0.0.1:4723/session/dc0040d3-cef4-4994-b84b-27c71e367b37/element/eyJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSIsImtleVZhbHVlU3RyaW5nIjoiSm9pblVzIiwia2V5VmFsdWVUeXBlIjoiU3RyaW5nIn0/click
[0-0] 2024-06-03T14:36:00.133Z INFO webdriver: RESULT {}
[0-0] 2024-06-03T14:36:25.146Z INFO webdriver: COMMAND getContext()
[0-0] 2024-06-03T14:36:25.191Z INFO webdriver: [GET] http://127.0.0.1:4723/session/dc0040d3-cef4-4994-b84b-27c71e367b37/context
[0-0] 2024-06-03T14:36:25.208Z INFO webdriver: RESULT FLUTTER
[0-0] Context List FLUTTER
[0-0] 2024-06-03T14:36:25.209Z INFO webdriver: COMMAND switchContext("WEBVIEW_64008.3")
[0-0] 2024-06-03T14:36:25.209Z INFO webdriver: [POST] http://127.0.0.1:4723/session/dc0040d3-cef4-4994-b84b-27c71e367b37/context
[0-0] 2024-06-03T14:36:25.209Z INFO webdriver: DATA { name: 'WEBVIEW_64008.3' }
[0-0] 2024-06-03T14:36:25.244Z WARN webdriver: Request failed with status 400 due to No such context found.
[0-0] 2024-06-03T14:36:25.244Z INFO webdriver: Retrying 1/3
[0-0] 2024-06-03T14:36:25.244Z INFO webdriver: [POST] http://127.0.0.1:4723/session/dc0040d3-cef4-4994-b84b-27c71e367b37/context
[0-0] 2024-06-03T14:36:25.244Z INFO webdriver: DATA { name: 'WEBVIEW_64008.3' }
[0-0] 2024-06-03T14:36:25.250Z WARN webdriver: Request failed with status 400 due to No such context found.
[0-0] 2024-06-03T14:36:25.250Z INFO webdriver: Retrying 2/3
[0-0] 2024-06-03T14:36:25.250Z INFO webdriver: [POST] http://127.0.0.1:4723/session/dc0040d3-cef4-4994-b84b-27c71e367b37/context
[0-0] 2024-06-03T14:36:25.250Z INFO webdriver: DATA { name: 'WEBVIEW_64008.3' }
[0-0] 2024-06-03T14:36:25.253Z WARN webdriver: Request failed with status 400 due to No such context found.
[0-0] 2024-06-03T14:36:25.253Z INFO webdriver: Retrying 3/3
[0-0] 2024-06-03T14:36:25.253Z INFO webdriver: [POST] http://127.0.0.1:4723/session/dc0040d3-cef4-4994-b84b-27c71e367b37/context
[0-0] 2024-06-03T14:36:25.253Z INFO webdriver: DATA { name: 'WEBVIEW_64008.3' }
[0-0] 2024-06-03T14:36:25.257Z ERROR webdriver: Request failed with status 400 due to unknown error: No such context found.
[0-0] unknown error in "Launch app and Join us.Click on Join Us button"
unknown error: No such context found.
    at async ScreenPage.clickJoinUsButton (/Users/.../npm-appium/test/page_objects/screens.page.js:36:5)
    at async Context.<anonymous> (/Users/.../npm-appium/test/specs/test.e2e.js:8:9)
[0-0] 2024-06-03T14:36:25.262Z INFO webdriver: COMMAND deleteSession()
[0-0] 2024-06-03T14:36:25.262Z INFO webdriver: [DELETE] http://127.0.0.1:4723/session/dc0040d3-cef4-4994-b84b-27c71e367b37
2024-06-03T14:36:25.286Z ERROR @wdio/appium-service: [Xcode] xcodebuild exited with code 'null' and signal 'SIGTERM'

[0-0] 2024-06-03T14:36:25.324Z INFO webdriver: RESULT null
[0-0] FAILED in iOS - file:///test/specs/test.e2e.js
2024-06-03T14:36:25.459Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2024-06-03T14:36:25.460Z INFO @wdio/cli:launcher: Run onComplete hook
2024-06-03T14:36:25.460Z INFO @wdio/appium-service: Appium (pid: 27743) killed

 "spec" Reporter:
------------------------------------------------------------------
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0] Running: build/ios/Debug-uat-iphonesimulator/Runner.app on iOS
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0] Session ID: dc0040d3-cef4-4994-b84b-27c71e367b37
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0]
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0] » /test/specs/test.e2e.js
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0] Launch app and Join us
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0]    ✖ Click on Join Us button
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0]
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0] 1 failing (32.3s)
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0]
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0] 1) Launch app and Join us Click on Join Us button
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0] No such context found.
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0] unknown error: No such context found.
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0]     at async ScreenPage.clickJoinUsButton (/Users/.../npm-appium/test/page_objects/screens.page.js:36:5)
[build/ios/Debug-uat-iphonesimulator/Runner.app iOS #0-0]     at async Context.<anonymous> (/Users/.../npm-appium/test/specs/test.e2e.js:8:9)

Spec Files:      0 passed, 1 failed, 1 total (100% completed) in 00:00:48  

2024-06-03T14:36:25.461Z INFO @wdio/local-runner: Shutting down spawned worker
2024-06-03T14:36:25.711Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2024-06-03T14:36:25.711Z INFO @wdio/local-runner: shutting down
mcg95 commented 3 months ago

@KazuCocoa Do you have any ideas on why this is? Is it a known issue or is there an issue in the capabilities I am passing to Appium?

KazuCocoa commented 3 months ago

Please share the full appium server log as well

mcg95 commented 3 months ago

@KazuCocoa Here you go!

Appium Server Log

``` [HTTP] --> POST /session [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"iOS","appium:deviceName":"iPhone 15 Pro","appium:bundleId":"com.test-projsport.app.uat","appium:automationName":"Flutter","appium:platformVersion":"17.0","appium:noReset":true,"appium:startIWDP":true,"appium:useNewWDA":true,"appium:wdaLaunchTimeout":180000,"appium:wdaConnectionTimeout":180000,"appium:newCommandTimeout":300,"appium:app":"build/ios/Debug-uat-iphonesimulator/Runner.app","appium:showXcodeLog":true,"appium:includeSafariInWebviews":true,"appium:connectionRetryTimeout":180000,"appium:webviewConnectTimeout":180000,"appium:fullContextList":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"iOS","appium:deviceName":"iPhone 15 Pro","appium:bundleId":"com.test-projsport.app.uat","appium:automationName":"Flutter","appium:platformVersion":"17.0","appium:noReset":true,"appium:startIWDP":true,"appium:useNewWDA":true,"appium:wdaLaunchTimeout":180000,"appium:wdaConnectionTimeout":180000,"appium:newCommandTimeout":300,"appium:app":"build/... [AppiumDriver@fecd] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","appium:deviceName":"iPhone 15 Pro","appium:bundleId":"com.test-projsport.app.uat","appium:automationName":"Flutter","appium:platformVersion":"17.0","appium:noReset":true,"appium:startIWDP":true,"appium:useNewWDA":true,"appium:wdaLaunchTimeout":180000,"appium:wdaConnectionTimeout":180000,"appium:newCommandTimeout":300,"appium:app":"build/ios/Debug-uat-iphonesimulator/Runner.app","appium:showXcodeLog":true,"appium:includeSafariInWebviews":true,"appium:connectionRetryTimeout":180000,"appium:webviewConnectTimeout":180000,"appium:fullContextList":true},null,{"alwaysMatch":{"platformName":"iOS","appium:deviceName":"iPhone 15 Pro","appium:bundleId":"com.test-projsport.app.uat","appium:automationName":"Flutter","appium:platformVersion":"17.0","appium:noReset":true,"appium:startIWDP":true,"appium:useNewWDA":true,"appium:wdaLaunchTimeout":180000,"appium:wdaConnectionTimeout":180000,"appium:newCommandTimeout":300,"appium:app":"build/ios/Debug-uat-iphonesimulator/Runner.app","appium:s... [AppiumDriver@fecd] Event 'newSessionRequested' logged at 1718098378278 (17:32:58 GMT+0800 (Malaysia Time)) [Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'iOS' [Appium] The 'flutter' driver was installed and matched caps. [Appium] Will require it at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/appium-flutter-driver [Appium] Requiring driver at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/appium-flutter-driver/build/lib/driver.js [AppiumDriver@fecd] Appium v2.6.0 creating new FlutterDriver (v2.6.0) session [AppiumDriver@fecd] Checking BaseDriver versions for Appium and FlutterDriver [AppiumDriver@fecd] Appium's BaseDriver version is 9.7.0 [AppiumDriver@fecd] FlutterDriver's BaseDriver version is 9.7.0 [FlutterDriver@96ef] Creating session with W3C capabilities: { [FlutterDriver@96ef] "alwaysMatch": { [FlutterDriver@96ef] "platformName": "iOS", [FlutterDriver@96ef] "appium:deviceName": "iPhone 15 Pro", [FlutterDriver@96ef] "appium:bundleId": "com.test-projsport.app.uat", [FlutterDriver@96ef] "appium:automationName": "Flutter", [FlutterDriver@96ef] "appium:platformVersion": "17.0", [FlutterDriver@96ef] "appium:noReset": true, [FlutterDriver@96ef] "appium:startIWDP": true, [FlutterDriver@96ef] "appium:useNewWDA": true, [FlutterDriver@96ef] "appium:wdaLaunchTimeout": 180000, [FlutterDriver@96ef] "appium:wdaConnectionTimeout": 180000, [FlutterDriver@96ef] "appium:newCommandTimeout": 300, [FlutterDriver@96ef] "appium:app": "build/ios/Debug-uat-iphonesimulator/Runner.app", [FlutterDriver@96ef] "appium:showXcodeLog": true, [FlutterDriver@96ef] "appium:includeSafariInWebviews": true, [FlutterDriver@96ef] "appium:connectionRetryTimeout": 180000, [FlutterDriver@96ef] "appium:webviewConnectTimeout": 180000, [FlutterDriver@96ef] "appium:fullContextList": true [FlutterDriver@96ef] }, [FlutterDriver@96ef] "firstMatch": [ [FlutterDriver@96ef] {} [FlutterDriver@96ef] ] [FlutterDriver@96ef] } [FlutterDriver@96ef] The following provided capabilities were not recognized by this driver: [FlutterDriver@96ef] deviceName [FlutterDriver@96ef] bundleId [FlutterDriver@96ef] startIWDP [FlutterDriver@96ef] useNewWDA [FlutterDriver@96ef] wdaLaunchTimeout [FlutterDriver@96ef] wdaConnectionTimeout [FlutterDriver@96ef] showXcodeLog [FlutterDriver@96ef] includeSafariInWebviews [FlutterDriver@96ef] connectionRetryTimeout [FlutterDriver@96ef] webviewConnectTimeout [FlutterDriver@96ef] fullContextList [FlutterDriver@96ef (be087996)] Session created with session id: be087996-65cd-4105-8aab-0c20d32a6490 [FlutterDriver] Starting an IOS proxy session [XCUITestDriver@232a] Creating session with W3C capabilities: { [XCUITestDriver@232a] "alwaysMatch": { [XCUITestDriver@232a] "platformName": "iOS", [XCUITestDriver@232a] "appium:deviceName": "iPhone 15 Pro", [XCUITestDriver@232a] "appium:bundleId": "com.test-projsport.app.uat", [XCUITestDriver@232a] "appium:automationName": "Flutter", [XCUITestDriver@232a] "appium:platformVersion": "17.0", [XCUITestDriver@232a] "appium:noReset": true, [XCUITestDriver@232a] "appium:startIWDP": true, [XCUITestDriver@232a] "appium:useNewWDA": true, [XCUITestDriver@232a] "appium:wdaLaunchTimeout": 180000, [XCUITestDriver@232a] "appium:wdaConnectionTimeout": 180000, [XCUITestDriver@232a] "appium:newCommandTimeout": 300, [XCUITestDriver@232a] "appium:app": "build/ios/Debug-uat-iphonesimulator/Runner.app", [XCUITestDriver@232a] "appium:showXcodeLog": true, [XCUITestDriver@232a] "appium:includeSafariInWebviews": true, [XCUITestDriver@232a] "appium:connectionRetryTimeout": 180000, [XCUITestDriver@232a] "appium:webviewConnectTimeout": 180000, [XCUITestDriver@232a] "appium:fullContextList": true [XCUITestDriver@232a] }, [XCUITestDriver@232a] "firstMatch": [ [XCUITestDriver@232a] {} [XCUITestDriver@232a] ] [XCUITestDriver@232a] } [XCUITestDriver@232a] The following provided capabilities were not recognized by this driver: [XCUITestDriver@232a] startIWDP [XCUITestDriver@232a] connectionRetryTimeout [XCUITestDriver@232a (135f2860)] Session created with session id: 135f2860-3b39-4669-bed8-8ff0e5588f64 [XCUITest] Current user: 'test-user' [XCUITestDriver@232a (135f2860)] No real device udid has been provided in capabilities. Will select a matching simulator to run the test. [XCUITestDriver@232a (135f2860)] iOS SDK Version set to '17.0' [XCUITestDriver@232a (135f2860)] Looking for an existing Simulator with platformName: iOS, platformVersion: 17.0, deviceName: iPhone 15 Pro [XCUITestDriver@232a (135f2860)] Constructing iOS simulator for Xcode version 15.0.1 with udid '1C4DE705-A5E3-4C63-9D79-17DE65D17A60' [XCUITestDriver@232a (135f2860)] Determining device to run tests on: udid: '1C4DE705-A5E3-4C63-9D79-17DE65D17A60', real device: false [XCUITestDriver@232a (135f2860)] Event 'xcodeDetailsRetrieved' logged at 1718098378413 (17:32:58 GMT+0800 (Malaysia Time)) [BaseDriver] Using local app 'build/ios/Debug-uat-iphonesimulator/Runner.app' [BaseDriver] The current application path 'build/ios/Debug-uat-iphonesimulator/Runner.app' is not absolute and has been rewritten to '/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/build/ios/Debug-uat-iphonesimulator/Runner.app'. Consider using absolute paths rather than relative [XCUITestDriver@232a (135f2860)] Event 'appConfigured' logged at 1718098378414 (17:32:58 GMT+0800 (Malaysia Time)) [XCUITest] Checking whether app '/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/build/ios/Debug-uat-iphonesimulator/Runner.app' is actually present on file system [XCUITest] App is present [XCUITestDriver@232a (135f2860)] Event 'resetStarted' logged at 1718098378414 (17:32:58 GMT+0800 (Malaysia Time)) [XCUITestDriver@232a (135f2860)] Reset: noReset is on. Leaving simulator as is [XCUITestDriver@232a (135f2860)] Event 'resetComplete' logged at 1718098378415 (17:32:58 GMT+0800 (Malaysia Time)) [XCUITestDriver@232a (135f2860)] Using WDA path: '/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@232a (135f2860)] Using WDA agent: '/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [IOSSimulatorLog] Starting log capture for iOS Simulator with udid '1C4DE705-A5E3-4C63-9D79-17DE65D17A60' using simctl [XCUITestDriver@232a (135f2860)] Event 'logCaptureStarted' logged at 1718098378707 (17:32:58 GMT+0800 (Malaysia Time)) [XCUITestDriver@232a (135f2860)] Setting up simulator [XCUITestDriver@232a (135f2860)] Setting preferences of 1C4DE705-A5E3-4C63-9D79-17DE65D17A60 Simulator to {"ConnectHardwareKeyboard":false} [XCUITestDriver@232a (135f2860)] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false} [XCUITestDriver@232a (135f2860)] Updated 1C4DE705-A5E3-4C63-9D79-17DE65D17A60 Simulator preferences at '/Users/test-user/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false,"DevicePreferences":{"1C4DE705-A5E3-4C63-9D79-17DE65D17A60":{"SimulatorExternalDisplay":2114,"ConnectHardwareKeyboard":false,"ChromeTint":"","SimulatorWindowOrientation":"Portrait","SimulatorWindowGeometry":{"E05C9C67-29EB-44B2-A92D-D54F94882422":{"WindowCenter":"{433, 504.5}","WindowScale":0.902027027027027},"ECA14A18-4C50-4401-A10C-6E356478EDD7":{"WindowCenter":"{517, 498.5}","WindowScale":0.902027027027027}},"SimulatorWindowRotationAngle":0}}} [XCUITestDriver@232a (135f2860)] Got Simulator UI client PID: 30497 [XCUITestDriver@232a (135f2860)] Both Simulator with UDID '1C4DE705-A5E3-4C63-9D79-17DE65D17A60' and the UI client are currently running [XCUITestDriver@232a (135f2860)] Event 'simStarted' logged at 1718098378864 (17:32:58 GMT+0800 (Malaysia Time)) [XCUITest] Verifying application platform [XCUITest] CFBundleSupportedPlatforms: ["iPhoneSimulator"] [XCUITest] /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/build/ios/Debug-uat-iphonesimulator/Runner.app/Runner: Mach-O 64-bit executable arm64 [XCUITestDriver@232a (135f2860)] App 'com.test-projsport.app.uat' is already installed [XCUITestDriver@232a (135f2860)] noReset is requested. The app will not be be (re)installed [XCUITestDriver@232a (135f2860)] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [DevCon Factory] Requesting connection for device 1C4DE705-A5E3-4C63-9D79-17DE65D17A60 on local port 8100 [DevCon Factory] Cached connections count: 0 [DevCon Factory] Successfully requested the connection for 1C4DE705-A5E3-4C63-9D79-17DE65D17A60:8100 [XCUITestDriver@232a (135f2860)] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver' [XCUITestDriver@232a (135f2860)] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding [XCUITestDriver@232a (135f2860)] Shutting down sub-processes [XCUITestDriver@232a (135f2860)] The simulator has 1 bundle which have 'WebDriverAgentRunner-Runner' as their 'CFBundleName': ["com.facebook.WebDriverAgentRunner.xctrunner"] [XCUITestDriver@232a (135f2860)] Uninstalling WDAs: 'com.facebook.WebDriverAgentRunner.xctrunner' [XCUITestDriver@232a (135f2860)] Event 'wdaUninstalled' logged at 1718098379585 (17:32:59 GMT+0800 (Malaysia Time)) [XCUITestDriver@232a (135f2860)] Trying to start WebDriverAgent 2 times with 10000ms interval [XCUITestDriver@232a (135f2860)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [XCUITestDriver@232a (135f2860)] Event 'wdaStartAttempted' logged at 1718098379589 (17:32:59 GMT+0800 (Malaysia Time)) [XCUITestDriver@232a (135f2860)] Launching WebDriverAgent on the device [XCUITestDriver@232a (135f2860)] There is no need to perform the project cleanup. A fresh install has been detected [WebDriverAgent] Killing running processes 'xcodebuild.*1C4DE705-A5E3-4C63-9D79-17DE65D17A60, 1C4DE705-A5E3-4C63-9D79-17DE65D17A60.*XCTRunner, xctest.*1C4DE705-A5E3-4C63-9D79-17DE65D17A60' for the device 1C4DE705-A5E3-4C63-9D79-17DE65D17A60... [WebDriverAgent] 'pgrep -if 1C4DE705-A5E3-4C63-9D79-17DE65D17A60.*XCTRunner' didn't detect any matching processes. Return code: 1 [WebDriverAgent] 'pgrep -if xctest.*1C4DE705-A5E3-4C63-9D79-17DE65D17A60' didn't detect any matching processes. Return code: 1 [XCUITestDriver@232a (135f2860)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=1C4DE705-A5E3-4C63-9D79-17DE65D17A60 IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@232a (135f2860)] Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability [Xcode] Command line invocation: [Xcode] [XCUITestDriver@232a (135f2860)] Waiting up to 180000ms for WebDriverAgent to start [XCUITestDriver@232a (135f2860)] Matched '/status' to command name 'getStatus' [XCUITestDriver@232a (135f2860)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [Xcode] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=1C4DE705-A5E3-4C63-9D79-17DE65D17A60 IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO [Xcode] [Xcode] User defaults from command line: [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 = 17.0 [Xcode] [Xcode] [XCUITestDriver@232a (135f2860)] connect ECONNREFUSED 127.0.0.1:8100 [Xcode] --- xcodebuild: WARNING: Using the first of multiple matching destinations: [Xcode] { platform:iOS Simulator, id:1C4DE705-A5E3-4C63-9D79-17DE65D17A60, OS:17.0.1, name:iPhone 15 Pro } [Xcode] { platform:iOS Simulator, id:1C4DE705-A5E3-4C63-9D79-17DE65D17A60, OS:17.0.1, name:iPhone 15 Pro } [Xcode] [Xcode] Prepare packages [Xcode] [Xcode] [Xcode] [Xcode] ComputeTargetDependencyGraph [Xcode] [Xcode] note: Building targets in dependency order [Xcode] [Xcode] note: Target dependency graph (2 targets) [Xcode] Target 'WebDriverAgentRunner' in project 'WebDriverAgent' [Xcode] ➜ Explicit dependency on target 'WebDriverAgentLib' in project 'WebDriverAgent' [Xcode] Target 'WebDriverAgentLib' in project 'WebDriverAgent' (no dependencies) [Xcode] [Xcode] [Xcode] GatherProvisioningInputs [Xcode] [Xcode] [Xcode] [Xcode] CreateBuildDescription [Xcode] [Xcode] [Xcode] [XCUITestDriver@232a (135f2860)] Parsed BUILD_DIR configuration value: '/Users/test-user/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwpnxxzeerjrpkavyldhoeivyfku/Build/Products' [XCUITestDriver@232a (135f2860)] Got derived data root: '/Users/test-user/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwpnxxzeerjrpkavyldhoeivyfku' [Xcode] ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk /Users/test-user/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.0-21A326-9f995cea1212cde75317d7d3cd2045e2.sdkstatcache [Xcode] cd /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj [Xcode] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -o /Users/test-user/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.0-21A326-9f995cea1212cde75317d7d3cd2045e2.sdkstatcache [Xcode] [Xcode] [Xcode] [Xcode] ** TEST BUILD SUCCEEDED ** [Xcode] [Xcode] [Xcode] --- xcodebuild: WARNING: Using the first of multiple matching destinations: [Xcode] { platform:iOS Simulator, id:1C4DE705-A5E3-4C63-9D79-17DE65D17A60, OS:17.0.1, name:iPhone 15 Pro } [Xcode] { platform:iOS Simulator, id:1C4DE705-A5E3-4C63-9D79-17DE65D17A60, OS:17.0.1, name:iPhone 15 Pro } [Xcode] [XCUITestDriver@232a (135f2860)] Matched '/status' to command name 'getStatus' [XCUITestDriver@232a (135f2860)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@232a (135f2860)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@232a (135f2860)] Matched '/status' to command name 'getStatus' [XCUITestDriver@232a (135f2860)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@232a (135f2860)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@232a (135f2860)] Matched '/status' to command name 'getStatus' [XCUITestDriver@232a (135f2860)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@232a (135f2860)] connect ECONNREFUSED 127.0.0.1:8100 [Xcode] 2024-06-11 17:33:03.804911+0800 WebDriverAgentRunner-Runner[43104:103259471] [Default] Running tests... [Xcode] [XCUITestDriver@232a (135f2860)] Matched '/status' to command name 'getStatus' [XCUITestDriver@232a (135f2860)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@232a (135f2860)] connect ECONNREFUSED 127.0.0.1:8100 [Xcode] Test Suite 'All tests' started at 2024-06-11 17:33:04.857. [Xcode] [Xcode] Test Suite 'WebDriverAgentRunner.xctest' started at 2024-06-11 17:33:04.857. [Xcode] [Xcode] Test Suite 'UITestingUITests' started at 2024-06-11 17:33:04.858. [Xcode] t = nans Suite Set Up [Xcode] [Xcode] Test Case '-[UITestingUITests testRunner]' started. [Xcode] [Xcode] t = 0.00s Start Test at 2024-06-11 17:33:04.917 [Xcode] [Xcode] t = 0.00s Set Up [Xcode] 2024-06-11 17:33:04.919633+0800 WebDriverAgentRunner-Runner[43104:103259471] Built at Jun 11 2024 17:27:09 [Xcode] [Xcode] 2024-06-11 17:33:04.973017+0800 WebDriverAgentRunner-Runner[43104:103259471] ServerURLHere->http://192.168.0.111:8100<-ServerURLHere [Xcode] [XCUITestDriver@232a (135f2860)] Matched '/status' to command name 'getStatus' [XCUITestDriver@232a (135f2860)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [Xcode] 2024-06-11 17:33:05.683453+0800 WebDriverAgentRunner-Runner[43104:103259471] Using singleton test manager [Xcode] [XCUITestDriver@232a (135f2860)] Got response with status 200: {"value":{"build":{"upgradedAt":"1718087213970","version":"8.5.1","time":"Jun 11 2024 17:27:09","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"},"os":{"testmanagerdVersion":65535,"name":"iOS","sdkVersion":"17.0","version":"17.0.1"},"device":"iphone","ios":{"simulatorVersion":"17.0.1","ip":"192.168.0.111"},"message":"WebDriverAgent is ready to accept commands","state":"success","ready":true},"sessionId":null} [XCUITestDriver@232a (135f2860)] WebDriverAgent information: [XCUITestDriver@232a (135f2860)] { [XCUITestDriver@232a (135f2860)] "build": { [XCUITestDriver@232a (135f2860)] "upgradedAt": "1718087213970", [XCUITestDriver@232a (135f2860)] "version": "8.5.1", [XCUITestDriver@232a (135f2860)] "time": "Jun 11 2024 17:27:09", [XCUITestDriver@232a (135f2860)] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner" [XCUITestDriver@232a (135f2860)] }, [XCUITestDriver@232a (135f2860)] "os": { [XCUITestDriver@232a (135f2860)] "testmanagerdVersion": 65535, [XCUITestDriver@232a (135f2860)] "name": "iOS", [XCUITestDriver@232a (135f2860)] "sdkVersion": "17.0", [XCUITestDriver@232a (135f2860)] "version": "17.0.1" [XCUITestDriver@232a (135f2860)] }, [XCUITestDriver@232a (135f2860)] "device": "iphone", [XCUITestDriver@232a (135f2860)] "ios": { [XCUITestDriver@232a (135f2860)] "simulatorVersion": "17.0.1", [XCUITestDriver@232a (135f2860)] "ip": "192.168.0.111" [XCUITestDriver@232a (135f2860)] }, [XCUITestDriver@232a (135f2860)] "message": "WebDriverAgent is ready to accept commands", [XCUITestDriver@232a (135f2860)] "state": "success", [XCUITestDriver@232a (135f2860)] "ready": true [XCUITestDriver@232a (135f2860)] } [XCUITestDriver@232a (135f2860)] WebDriverAgent successfully started after 5602ms [XCUITestDriver@232a (135f2860)] Event 'wdaSessionAttempted' logged at 1718098385690 (17:33:05 GMT+0800 (Malaysia Time)) [XCUITestDriver@232a (135f2860)] Sending createSession command to WDA [XCUITestDriver@232a (135f2860)] Matched '/session' to command name 'createSession' [XCUITestDriver@232a (135f2860)] Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.test-projsport.app.uat","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":false,"forceAppLaunch":false,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true}],"alwaysMatch":{}}} [Xcode] t = 0.81s Open com.test-projsport.app.uat [Xcode] [Xcode] t = 0.81s Launch com.test-projsport.app.uat [Xcode] [Xcode] t = 0.88s Setting up automation session [Xcode] [Xcode] 2024-06-11 17:33:06.814520+0800 WebDriverAgentRunner-Runner[43104:103259471] Waiting up to 10s until com.test-projsport.app.uat is in idle state (including animations) [Xcode] t = 1.90s Wait for com.test-projsport.app.uat to idle [Xcode] [XCUITestDriver@232a (135f2860)] Got response with status 200: {"value":{"sessionId":"6E3719D3-62C8-40C9-8EF9-3342A196CD49","capabilities":{"sdkVersion":"17.0.1","device":"iphone"}},"sessionId":"6E3719D3-62C8-40C9-8EF9-3342A196CD49"} [XCUITestDriver@232a (135f2860)] Determined the downstream protocol as 'W3C' [XCUITestDriver@232a (135f2860)] WDA session startup took 2135ms [XCUITestDriver@232a (135f2860)] Event 'wdaSessionStarted' logged at 1718098387826 (17:33:07 GMT+0800 (Malaysia Time)) [XCUITestDriver@232a (135f2860)] Event 'wdaStarted' logged at 1718098387826 (17:33:07 GMT+0800 (Malaysia Time)) [BaseDriver] The value of 'elementResponseAttributes' setting did not change. Skipping the update for it [BaseDriver] The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it [FlutterDriver] Establishing a connection to the Dart Observatory. Will retry 10 times with 3000ms delay between retries. These values could be customized by changing 'maxRetryCount' and 'retryBackoffTime' capabilities. [FlutterDriver] Attempt #1 of 10 [FlutterDriver] Got an error while finding an observatory url. Original error: No observatory URL matching to '/(Observatory listening on |An Observatory debugger and profiler on\s.+\sis available at: |The Dart VM service is listening on )((http|\/\/)[a-zA-Z0-9:/=_\-.\[\]]+)/' was found in the device log. Please make sure the application under test is configured properly according to https://github.com/appium-userland/appium-flutter-driver#usage and that it does not crash on startup. [FlutterDriver] Waiting 3000ms before retrying [FlutterDriver] Attempt #2 of 10 [FlutterDriver] Running on iOS simulator [FlutterDriver] Connecting to Dart Observatory: ws://127.0.0.1:50121/esM0hesOHNg=/ws [FlutterDriver] Listing all isolates: [{"type":"@Isolate","id":"isolates/6524671019397707","name":"main","number":"6524671019397707","isSystemIsolate":false,"isolateGroupId":"isolateGroups/5553833861038470"}] [AppiumDriver@fecd] New FlutterDriver session created successfully, session be087996-65cd-4105-8aab-0c20d32a6490 added to master session list [AppiumDriver@fecd] Event 'newSessionStarted' logged at 1718098390911 (17:33:10 GMT+0800 (Malaysia Time)) [FlutterDriver@96ef (be087996)] Cached the protocol value 'W3C' for the new session be087996-65cd-4105-8aab-0c20d32a6490 [FlutterDriver@96ef (be087996)] Responding to client with driver.createSession() result: {"capabilities":{"subcommand":"server","address":"0.0.0.0","basePath":"/","port":4723,"extraArgs":[],"allowCors":false,"allowInsecure":[],"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"keepAliveTimeout":600,"localTimezone":false,"loglevel":"debug","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"usePlugins":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"/var/folders/sp/78trpqws72s9q624ttsj3s6h0000gn/T","platformName":"iOS","deviceName":"iPhone 15 Pro","bundleId":"com.test-projsport.app.uat","automationName":"Flutter","platformVersion":"17.0","noReset":true,"startIWDP":true,"useNewWDA":true,"wdaLaunchTimeout":180000,"wdaConnectionTimeout":180000,"newCommandTimeout":300,"app":"build/ios/Debug-uat-iphonesimulator/Runner.app","showXcodeLog":true,"includeSafariInWebviews":true,"connectionRetryTimeout":1... [HTTP] <-- POST /session 200 12638 ms - 1200 [HTTP]  [HTTP] --> GET /session/be087996-65cd-4105-8aab-0c20d32a6490/context [HTTP] {} [FlutterDriver@96ef (be087996)] Calling AppiumDriver.getCurrentContext() with args: ["be087996-65cd-4105-8aab-0c20d32a6490"] [FlutterDriver] Executing Flutter driver command 'getCurrentContext' [FlutterDriver@96ef (be087996)] Responding to client with driver.getCurrentContext() result: "FLUTTER" [HTTP] <-- GET /session/be087996-65cd-4105-8aab-0c20d32a6490/context 200 5 ms - 19 [HTTP]  [HTTP] --> GET /session/be087996-65cd-4105-8aab-0c20d32a6490/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkxvZyBpbiJ9/text [HTTP] {} [FlutterDriver@96ef (be087996)] Calling AppiumDriver.getText() with args: ["eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkxvZyBpbiJ9","be087996-65cd-4105-8aab-0c20d32a6490"] [FlutterDriver] Executing Flutter driver command 'getText' [FlutterDriver] >>> {"command":"get_text","finderType":"ByText","text":"Log in"} [FlutterDriver] <<< {"isError":false,"response":{"text":"Log in"},"type":"_extensionType","method":"ext.flutter.driver"} | previous command get_text [FlutterDriver@96ef (be087996)] Responding to client with driver.getText() result: "Log in" [HTTP] <-- GET /session/be087996-65cd-4105-8aab-0c20d32a6490/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkxvZyBpbiJ9/text 200 17 ms - 18 [HTTP]  [HTTP] --> POST /session/be087996-65cd-4105-8aab-0c20d32a6490/element/eyJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSIsImtleVZhbHVlU3RyaW5nIjoiSm9pblVzIiwia2V5VmFsdWVUeXBlIjoiU3RyaW5nIn0/click [HTTP] {} [FlutterDriver@96ef (be087996)] Calling AppiumDriver.click() with args: ["eyJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSIsImtleVZhbHVlU3RyaW5nIjoiSm9pblVzIiwia2V5VmFsdWVUeXBlIjoiU3RyaW5nIn0","be087996-65cd-4105-8aab-0c20d32a6490"] [FlutterDriver] Executing Flutter driver command 'click' [FlutterDriver] >>> {"command":"tap","finderType":"ByValueKey","keyValueString":"JoinUs","keyValueType":"String"} [FlutterDriver] <<< {"isError":false,"response":{},"type":"_extensionType","method":"ext.flutter.driver"} | previous command tap [FlutterDriver@96ef (be087996)] Responding to client with driver.click() result: {} [HTTP] <-- POST /session/be087996-65cd-4105-8aab-0c20d32a6490/element/eyJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSIsImtleVZhbHVlU3RyaW5nIjoiSm9pblVzIiwia2V5VmFsdWVUeXBlIjoiU3RyaW5nIn0/click 200 38 ms - 12 [HTTP]  [Appium] Received SIGINT - shutting down [AppiumDriver@fecd] Cleaning up 1 active session [AppiumDriver@fecd] Ending session, cause was 'The process has received SIGINT signal' [AppiumDriver@fecd] Removing session 'be087996-65cd-4105-8aab-0c20d32a6490' from our master session list [FlutterDriver@96ef (be087996)] Deleting Flutter Driver session [FlutterDriver@96ef (be087996)] Cleanup the port forward [FlutterDriver@96ef (be087996)] Deleting the proxy driver session. [XCUITestDriver@232a (135f2860)] Matched '/session/135f2860-3b39-4669-bed8-8ff0e5588f64' to command name 'deleteSession' [XCUITestDriver@232a (135f2860)] Proxying [DELETE /session/135f2860-3b39-4669-bed8-8ff0e5588f64] to [DELETE http://127.0.0.1:8100/session/6E3719D3-62C8-40C9-8EF9-3342A196CD49] with no body [HTTP] --> DELETE /session/be087996-65cd-4105-8aab-0c20d32a6490 [HTTP] {} [AppiumDriver@fecd] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started [AppiumDriver@fecd] at asyncHandler (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:315:15) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:518:15 [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/route.js:149:13) [AppiumDriver@fecd] at Route.dispatch (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/route.js:119:3) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:284:15 [AppiumDriver@fecd] at param (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:365:14) [AppiumDriver@fecd] at param (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:376:14) [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:421:3) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at logger (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/morgan/index.js:144:5) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at jsonParser (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/body-parser/lib/types/json.js:113:7) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:91:12) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at methodOverride (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/method-override/index.js:65:14) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at urlencodedParser (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/body-parser/lib/types/urlencoded.js:91:7) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at defaultToJSONContentType (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/express/middleware.js:82:3) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [HTTP] <-- DELETE /session/be087996-65cd-4105-8aab-0c20d32a6490 404 29 ms - 6910 [HTTP]  [XCUITestDriver@232a (135f2860)] Got response with status 200: {"value":null,"sessionId":null} [XCUITestDriver@232a (135f2860)] Shutting down sub-processes [WebDriverAgent] Shutting down 'xcodebuild' process (pid '43075') [WebDriverAgent] Sending 'SIGTERM'... [Xcode] ** BUILD INTERRUPTED ** [Xcode] [HTTP] --> DELETE /session/be087996-65cd-4105-8aab-0c20d32a6490 [HTTP] {} [AppiumDriver@fecd] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started [AppiumDriver@fecd] at asyncHandler (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:315:15) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:518:15 [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/route.js:149:13) [AppiumDriver@fecd] at Route.dispatch (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/route.js:119:3) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:284:15 [AppiumDriver@fecd] at param (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:365:14) [AppiumDriver@fecd] at param (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:376:14) [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:421:3) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at logger (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/morgan/index.js:144:5) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at jsonParser (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/body-parser/lib/types/json.js:113:7) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:91:12) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at methodOverride (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/method-override/index.js:65:14) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at urlencodedParser (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/body-parser/lib/types/urlencoded.js:91:7) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at defaultToJSONContentType (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/express/middleware.js:82:3) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [HTTP] <-- DELETE /session/be087996-65cd-4105-8aab-0c20d32a6490 404 2 ms - 6910 [HTTP]  [HTTP] --> DELETE /session/be087996-65cd-4105-8aab-0c20d32a6490 [HTTP] {} [AppiumDriver@fecd] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started [AppiumDriver@fecd] at asyncHandler (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:315:15) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:518:15 [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/route.js:149:13) [AppiumDriver@fecd] at Route.dispatch (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/route.js:119:3) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:284:15 [AppiumDriver@fecd] at param (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:365:14) [AppiumDriver@fecd] at param (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:376:14) [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:421:3) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at logger (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/morgan/index.js:144:5) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at jsonParser (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/body-parser/lib/types/json.js:113:7) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:91:12) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at methodOverride (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/method-override/index.js:65:14) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at urlencodedParser (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/body-parser/lib/types/urlencoded.js:91:7) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at defaultToJSONContentType (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/express/middleware.js:82:3) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [HTTP] <-- DELETE /session/be087996-65cd-4105-8aab-0c20d32a6490 404 2 ms - 6910 [HTTP]  [Xcode] xcodebuild exited with code 'null' and signal 'SIGTERM' [HTTP] --> DELETE /session/be087996-65cd-4105-8aab-0c20d32a6490 [HTTP] {} [AppiumDriver@fecd] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started [AppiumDriver@fecd] at asyncHandler (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:315:15) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:518:15 [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/route.js:149:13) [AppiumDriver@fecd] at Route.dispatch (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/route.js:119:3) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:284:15 [AppiumDriver@fecd] at param (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:365:14) [AppiumDriver@fecd] at param (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:376:14) [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:421:3) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at logger (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/morgan/index.js:144:5) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at jsonParser (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/body-parser/lib/types/json.js:113:7) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:91:12) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at methodOverride (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/method-override/index.js:65:14) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at urlencodedParser (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/body-parser/lib/types/urlencoded.js:91:7) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@fecd] at defaultToJSONContentType (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/@appium/base-driver/lib/express/middleware.js:82:3) [AppiumDriver@fecd] at Layer.handle [as handle_request] (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@fecd] at trim_prefix (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@fecd] at /Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@fecd] at Function.process_params (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@fecd] at next (/Users/test-user/Development/Test-proj/test-flutter-app/npm-appium/node_modules/express/lib/router/index.js:280:10) [HTTP] <-- DELETE /session/be087996-65cd-4105-8aab-0c20d32a6490 404 3 ms - 6910 [HTTP]  [DevCon Factory] Releasing connections for 1C4DE705-A5E3-4C63-9D79-17DE65D17A60 device on any port number [DevCon Factory] Found cached connections to release: ["1C4DE705-A5E3-4C63-9D79-17DE65D17A60:8100"] [DevCon Factory] Cached connections count: 0 [XCUITestDriver@232a (135f2860)] Not clearing log files. Use `clearSystemFiles` capability to turn on. [HTTP] Waiting until the server is closed [HTTP] Received server close event ```

KazuCocoa commented 3 months ago

The attached log only has getContext. Perhaps did it miss other commands to attach?

mcg95 commented 3 months ago

I was running using the wdio.config.js file. That maybe why. I have done it again by starting the appium server and using AppiumInspector to run the iOS App in the simulator. The log is below. Hope it has the information your were hoping to see.

In the below logs, when I tapped to switch to Web/Hybrid App Mode or Refresh Source, the connection to the dart vm also closes.

Details

[Appium] Welcome to Appium v2.6.0 (REV 9fdb0d53990d3e62e25325a6f89dbb769e84a530) [Appium] The autodetected Appium home path: /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium [Appium] Attempting to load driver uiautomator2... [Appium] Attempting to load driver xcuitest... [Appium] Attempting to load driver flutter... [Appium] Requiring driver at /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/build/lib/driver.js [Appium] Requiring driver at /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-xcuitest-driver/build/index.js [Appium] Requiring driver at /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-uiautomator2-driver/build/index.js [Appium] FlutterDriver has been successfully loaded in 3.695s [Appium] XCUITestDriver has been successfully loaded in 3.696s [Appium] AndroidUiautomator2Driver has been successfully loaded in 3.696s [Appium] Appium REST http interface listener started on http://0.0.0.0:4723 [Appium] You can provide the following URLs in your client code to connect to this server: [Appium] http://127.0.0.1:4723/ (only accessible from the same host) [Appium] http://192.168.0.111:4723/ [Appium] Available drivers: [Appium] - uiautomator2@3.5.2 (automationName 'UiAutomator2') [Appium] - xcuitest@7.17.0 (automationName 'XCUITest') [Appium] - flutter@2.6.0 (automationName 'Flutter') [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use. [HTTP] --> POST /session [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"iOS","appium:deviceName":"iPhone 15 Pro","appium:bundleId":"com.testappsport.consumer.uat","appium:automationName":"Flutter","appium:platformVersion":"17.0","appium:startIWDP":true,"appium:useNewWDA":true,"appium:noReset":true,"appium:wdaLaunchTimeout":180000,"appium:wdaConnectionTimeout":180000,"appium:newCommandTimeout":300,"appium:showXcodeLog":true,"appium:app":"/Users/test-user/Development/TestApp/test-app-flutter-consumer/build/ios/Debug-uat-iphonesimulator/Runner.app","appium:includeSafariInWebviews":true,"appium:connectionRetryTimeout":180000,"appium:webviewConnectTimeout":180000,"appium:fullContextList":true,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"iOS","appium:deviceName":"iPhone 15 Pro","appium:bundleId":"com.testappsport.consumer.uat","appium:automationName":"Flutter","appium:platformVersion":"17.0","appium:startIWDP":true,"appium:useNewWDA":true,"appium:noReset":true,"appium:wdaLaunchTim... [AppiumDriver@d16b] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","appium:deviceName":"iPhone 15 Pro","appium:bundleId":"com.testappsport.consumer.uat","appium:automationName":"Flutter","appium:platformVersion":"17.0","appium:startIWDP":true,"appium:useNewWDA":true,"appium:noReset":true,"appium:wdaLaunchTimeout":180000,"appium:wdaConnectionTimeout":180000,"appium:newCommandTimeout":300,"appium:showXcodeLog":true,"appium:app":"/Users/test-user/Development/TestApp/test-app-flutter-consumer/build/ios/Debug-uat-iphonesimulator/Runner.app","appium:includeSafariInWebviews":true,"appium:connectionRetryTimeout":180000,"appium:webviewConnectTimeout":180000,"appium:fullContextList":true,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"iOS","appium:deviceName":"iPhone 15 Pro","appium:bundleId":"com.testappsport.consumer.uat","appium:automationName":"Flutter","appium:platformVersion":"17.0","appium:startIWDP":true,"appium:useNewWDA":true,"appium:noReset":true,"appium:wdaLaunchTimeout":180000,"appium:wdaConnectionTimeout":180000,"... [AppiumDriver@d16b] Event 'newSessionRequested' logged at 1718172047433 (14:00:47 GMT+0800 (Malaysia Time)) [Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'iOS' [Appium] The 'flutter' driver was installed and matched caps. [Appium] Will require it at /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver [Appium] Requiring driver at /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/build/lib/driver.js [AppiumDriver@d16b] Appium v2.6.0 creating new FlutterDriver (v2.6.0) session [AppiumDriver@d16b] Checking BaseDriver versions for Appium and FlutterDriver [AppiumDriver@d16b] Appium's BaseDriver version is 9.7.0 [AppiumDriver@d16b] FlutterDriver's BaseDriver version is 9.7.0 [FlutterDriver@a942] Creating session with W3C capabilities: { [FlutterDriver@a942] "alwaysMatch": { [FlutterDriver@a942] "platformName": "iOS", [FlutterDriver@a942] "appium:deviceName": "iPhone 15 Pro", [FlutterDriver@a942] "appium:bundleId": "com.testappsport.consumer.uat", [FlutterDriver@a942] "appium:automationName": "Flutter", [FlutterDriver@a942] "appium:platformVersion": "17.0", [FlutterDriver@a942] "appium:startIWDP": true, [FlutterDriver@a942] "appium:useNewWDA": true, [FlutterDriver@a942] "appium:noReset": true, [FlutterDriver@a942] "appium:wdaLaunchTimeout": 180000, [FlutterDriver@a942] "appium:wdaConnectionTimeout": 180000, [FlutterDriver@a942] "appium:newCommandTimeout": 300, [FlutterDriver@a942] "appium:showXcodeLog": true, [FlutterDriver@a942] "appium:app": "/Users/test-user/Development/TestApp/test-app-flutter-consumer/build/ios/Debug-uat-iphonesimulator/Runner.app", [FlutterDriver@a942] "appium:includeSafariInWebviews": true, [FlutterDriver@a942] "appium:connectionRetryTimeout": 180000, [FlutterDriver@a942] "appium:webviewConnectTimeout": 180000, [FlutterDriver@a942] "appium:fullContextList": true, [FlutterDriver@a942] "appium:connectHardwareKeyboard": true [FlutterDriver@a942] }, [FlutterDriver@a942] "firstMatch": [ [FlutterDriver@a942] {} [FlutterDriver@a942] ] [FlutterDriver@a942] } [FlutterDriver@a942] The following provided capabilities were not recognized by this driver: [FlutterDriver@a942] deviceName [FlutterDriver@a942] bundleId [FlutterDriver@a942] startIWDP [FlutterDriver@a942] useNewWDA [FlutterDriver@a942] wdaLaunchTimeout [FlutterDriver@a942] wdaConnectionTimeout [FlutterDriver@a942] showXcodeLog [FlutterDriver@a942] includeSafariInWebviews [FlutterDriver@a942] connectionRetryTimeout [FlutterDriver@a942] webviewConnectTimeout [FlutterDriver@a942] fullContextList [FlutterDriver@a942] connectHardwareKeyboard [FlutterDriver@a942 (4451f462)] Session created with session id: 4451f462-6095-4061-a32b-d64aeef238b4 [FlutterDriver] Starting an IOS proxy session [XCUITestDriver@7e33] Creating session with W3C capabilities: { [XCUITestDriver@7e33] "alwaysMatch": { [XCUITestDriver@7e33] "platformName": "iOS", [XCUITestDriver@7e33] "appium:deviceName": "iPhone 15 Pro", [XCUITestDriver@7e33] "appium:bundleId": "com.testappsport.consumer.uat", [XCUITestDriver@7e33] "appium:automationName": "Flutter", [XCUITestDriver@7e33] "appium:platformVersion": "17.0", [XCUITestDriver@7e33] "appium:startIWDP": true, [XCUITestDriver@7e33] "appium:useNewWDA": true, [XCUITestDriver@7e33] "appium:noReset": true, [XCUITestDriver@7e33] "appium:wdaLaunchTimeout": 180000, [XCUITestDriver@7e33] "appium:wdaConnectionTimeout": 180000, [XCUITestDriver@7e33] "appium:newCommandTimeout": 300, [XCUITestDriver@7e33] "appium:showXcodeLog": true, [XCUITestDriver@7e33] "appium:app": "/Users/test-user/Development/TestApp/test-app-flutter-consumer/build/ios/Debug-uat-iphonesimulator/Runner.app", [XCUITestDriver@7e33] "appium:includeSafariInWebviews": true, [XCUITestDriver@7e33] "appium:connectionRetryTimeout": 180000, [XCUITestDriver@7e33] "appium:webviewConnectTimeout": 180000, [XCUITestDriver@7e33] "appium:fullContextList": true, [XCUITestDriver@7e33] "appium:connectHardwareKeyboard": true [XCUITestDriver@7e33] }, [XCUITestDriver@7e33] "firstMatch": [ [XCUITestDriver@7e33] {} [XCUITestDriver@7e33] ] [XCUITestDriver@7e33] } [XCUITestDriver@7e33] The following provided capabilities were not recognized by this driver: [XCUITestDriver@7e33] startIWDP [XCUITestDriver@7e33] connectionRetryTimeout [XCUITestDriver@7e33 (df104001)] Session created with session id: df104001-bb43-4a98-9307-26678c6ac0dd [XCUITest] Current user: 'test-user' [XCUITestDriver@7e33 (df104001)] No real device udid has been provided in capabilities. Will select a matching simulator to run the test. [XCUITestDriver@7e33 (df104001)] iOS SDK Version set to '17.0' [XCUITestDriver@7e33 (df104001)] Looking for an existing Simulator with platformName: iOS, platformVersion: 17.0, deviceName: iPhone 15 Pro [XCUITestDriver@7e33 (df104001)] Constructing iOS simulator for Xcode version 15.0.1 with udid '1C4DE705-A5E3-4C63-9D79-17DE65D17A60' [XCUITestDriver@7e33 (df104001)] Determining device to run tests on: udid: '1C4DE705-A5E3-4C63-9D79-17DE65D17A60', real device: false [XCUITestDriver@7e33 (df104001)] Event 'xcodeDetailsRetrieved' logged at 1718172047606 (14:00:47 GMT+0800 (Malaysia Time)) [BaseDriver] Using local app '/Users/test-user/Development/TestApp/test-app-flutter-consumer/build/ios/Debug-uat-iphonesimulator/Runner.app' [XCUITestDriver@7e33 (df104001)] Event 'appConfigured' logged at 1718172047607 (14:00:47 GMT+0800 (Malaysia Time)) [XCUITest] Checking whether app '/Users/test-user/Development/TestApp/test-app-flutter-consumer/build/ios/Debug-uat-iphonesimulator/Runner.app' is actually present on file system [XCUITest] App is present [XCUITestDriver@7e33 (df104001)] Event 'resetStarted' logged at 1718172047608 (14:00:47 GMT+0800 (Malaysia Time)) [XCUITestDriver@7e33 (df104001)] Reset: noReset is on. Leaving simulator as is [XCUITestDriver@7e33 (df104001)] Event 'resetComplete' logged at 1718172047608 (14:00:47 GMT+0800 (Malaysia Time)) [XCUITestDriver@7e33 (df104001)] Using WDA path: '/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@7e33 (df104001)] Using WDA agent: '/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [IOSSimulatorLog] Starting log capture for iOS Simulator with udid '1C4DE705-A5E3-4C63-9D79-17DE65D17A60' using simctl [XCUITestDriver@7e33 (df104001)] Event 'logCaptureStarted' logged at 1718172047924 (14:00:47 GMT+0800 (Malaysia Time)) [XCUITestDriver@7e33 (df104001)] Setting up simulator [XCUITestDriver@7e33 (df104001)] Setting preferences of 1C4DE705-A5E3-4C63-9D79-17DE65D17A60 Simulator to {"ConnectHardwareKeyboard":true} [XCUITestDriver@7e33 (df104001)] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":true,"PasteboardAutomaticSync":false} [XCUITestDriver@7e33 (df104001)] Updated 1C4DE705-A5E3-4C63-9D79-17DE65D17A60 Simulator preferences at '/Users/test-user/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":true,"PasteboardAutomaticSync":false,"DevicePreferences":{"1C4DE705-A5E3-4C63-9D79-17DE65D17A60":{"SimulatorExternalDisplay":2114,"ConnectHardwareKeyboard":true,"ChromeTint":"","SimulatorWindowOrientation":"Portrait","SimulatorWindowRotationAngle":0,"SimulatorWindowGeometry":{"E05C9C67-29EB-44B2-A92D-D54F94882422":{"WindowCenter":"{433, 504.5}","WindowScale":0.902027027027027},"ECA14A18-4C50-4401-A10C-6E356478EDD7":{"WindowCenter":"{517, 498.5}","WindowScale":0.902027027027027}}}}} [XCUITestDriver@7e33 (df104001)] Got Simulator UI client PID: 30497 [XCUITestDriver@7e33 (df104001)] Both Simulator with UDID '1C4DE705-A5E3-4C63-9D79-17DE65D17A60' and the UI client are currently running [XCUITestDriver@7e33 (df104001)] Event 'simStarted' logged at 1718172048075 (14:00:48 GMT+0800 (Malaysia Time)) [XCUITest] Verifying application platform [XCUITest] CFBundleSupportedPlatforms: ["iPhoneSimulator"] [XCUITest] /Users/test-user/Development/TestApp/test-app-flutter-consumer/build/ios/Debug-uat-iphonesimulator/Runner.app/Runner: Mach-O 64-bit executable arm64 [XCUITestDriver@7e33 (df104001)] App 'com.testappsport.consumer.uat' is already installed [XCUITestDriver@7e33 (df104001)] noReset is requested. The app will not be be (re)installed [XCUITestDriver@7e33 (df104001)] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [DevCon Factory] Requesting connection for device 1C4DE705-A5E3-4C63-9D79-17DE65D17A60 on local port 8100 [DevCon Factory] Cached connections count: 0 [DevCon Factory] Successfully requested the connection for 1C4DE705-A5E3-4C63-9D79-17DE65D17A60:8100 [XCUITestDriver@7e33 (df104001)] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver' [XCUITestDriver@7e33 (df104001)] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding [XCUITestDriver@7e33 (df104001)] Shutting down sub-processes [XCUITestDriver@7e33 (df104001)] No WDAs on the device. [XCUITestDriver@7e33 (df104001)] Event 'wdaUninstalled' logged at 1718172048298 (14:00:48 GMT+0800 (Malaysia Time)) [XCUITestDriver@7e33 (df104001)] Trying to start WebDriverAgent 2 times with 10000ms interval [XCUITestDriver@7e33 (df104001)] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [XCUITestDriver@7e33 (df104001)] Event 'wdaStartAttempted' logged at 1718172048298 (14:00:48 GMT+0800 (Malaysia Time)) [XCUITestDriver@7e33 (df104001)] Launching WebDriverAgent on the device [XCUITestDriver@7e33 (df104001)] There is no need to perform the project cleanup. A fresh install has been detected [WebDriverAgent] Killing running processes 'xcodebuild.*1C4DE705-A5E3-4C63-9D79-17DE65D17A60, 1C4DE705-A5E3-4C63-9D79-17DE65D17A60.*XCTRunner, xctest.*1C4DE705-A5E3-4C63-9D79-17DE65D17A60' for the device 1C4DE705-A5E3-4C63-9D79-17DE65D17A60... [WebDriverAgent] 'pgrep -if 1C4DE705-A5E3-4C63-9D79-17DE65D17A60.*XCTRunner' didn't detect any matching processes. Return code: 1 [WebDriverAgent] 'pgrep -if xcodebuild.*1C4DE705-A5E3-4C63-9D79-17DE65D17A60' didn't detect any matching processes. Return code: 1 [WebDriverAgent] 'pgrep -if xctest.*1C4DE705-A5E3-4C63-9D79-17DE65D17A60' didn't detect any matching processes. Return code: 1 [XCUITestDriver@7e33 (df104001)] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=1C4DE705-A5E3-4C63-9D79-17DE65D17A60 IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [XCUITestDriver@7e33 (df104001)] Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability [Xcode] Command line invocation: [Xcode] [XCUITestDriver@7e33 (df104001)] Waiting up to 180000ms for WebDriverAgent to start [XCUITestDriver@7e33 (df104001)] Matched '/status' to command name 'getStatus' [XCUITestDriver@7e33 (df104001)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [Xcode] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=1C4DE705-A5E3-4C63-9D79-17DE65D17A60 IPHONEOS_DEPLOYMENT_TARGET=17.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO [Xcode] [Xcode] User defaults from command line: [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 = 17.0 [Xcode] [Xcode] [XCUITestDriver@7e33 (df104001)] connect ECONNREFUSED 127.0.0.1:8100 [Xcode] --- xcodebuild: WARNING: Using the first of multiple matching destinations: [Xcode] { platform:iOS Simulator, id:1C4DE705-A5E3-4C63-9D79-17DE65D17A60, OS:17.0.1, name:iPhone 15 Pro } [Xcode] { platform:iOS Simulator, id:1C4DE705-A5E3-4C63-9D79-17DE65D17A60, OS:17.0.1, name:iPhone 15 Pro } [Xcode] [Xcode] Prepare packages [Xcode] [Xcode] [Xcode] [Xcode] ComputeTargetDependencyGraph [Xcode] [Xcode] note: Building targets in dependency order [Xcode] [Xcode] note: Target dependency graph (2 targets) [Xcode] Target 'WebDriverAgentRunner' in project 'WebDriverAgent' [Xcode] ➜ Explicit dependency on target 'WebDriverAgentLib' in project 'WebDriverAgent' [Xcode] Target 'WebDriverAgentLib' in project 'WebDriverAgent' (no dependencies) [Xcode] [Xcode] [Xcode] GatherProvisioningInputs [Xcode] [Xcode] [Xcode] [Xcode] CreateBuildDescription [Xcode] [Xcode] [Xcode] [Xcode] ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk /Users/test-user/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.0-21A326-9f995cea1212cde75317d7d3cd2045e2.sdkstatcache [Xcode] cd /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj [Xcode] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -o /Users/test-user/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.0-21A326-9f995cea1212cde75317d7d3cd2045e2.sdkstatcache [Xcode] [Xcode] [Xcode] [XCUITestDriver@7e33 (df104001)] Parsed BUILD_DIR configuration value: '/Users/test-user/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwpnxxzeerjrpkavyldhoeivyfku/Build/Products' [XCUITestDriver@7e33 (df104001)] Got derived data root: '/Users/test-user/Library/Developer/Xcode/DerivedData/WebDriverAgent-dwpnxxzeerjrpkavyldhoeivyfku' [Xcode] ** TEST BUILD SUCCEEDED ** [Xcode] [Xcode] [Xcode] --- xcodebuild: WARNING: Using the first of multiple matching destinations: [Xcode] { platform:iOS Simulator, id:1C4DE705-A5E3-4C63-9D79-17DE65D17A60, OS:17.0.1, name:iPhone 15 Pro } [Xcode] { platform:iOS Simulator, id:1C4DE705-A5E3-4C63-9D79-17DE65D17A60, OS:17.0.1, name:iPhone 15 Pro } [Xcode] [XCUITestDriver@7e33 (df104001)] Matched '/status' to command name 'getStatus' [XCUITestDriver@7e33 (df104001)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@7e33 (df104001)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@7e33 (df104001)] Matched '/status' to command name 'getStatus' [XCUITestDriver@7e33 (df104001)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@7e33 (df104001)] connect ECONNREFUSED 127.0.0.1:8100 [XCUITestDriver@7e33 (df104001)] Matched '/status' to command name 'getStatus' [XCUITestDriver@7e33 (df104001)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@7e33 (df104001)] connect ECONNREFUSED 127.0.0.1:8100 [Xcode] 2024-06-12 14:00:53.035292+0800 WebDriverAgentRunner-Runner[65747:105278395] [Default] Running tests... [Xcode] [XCUITestDriver@7e33 (df104001)] Matched '/status' to command name 'getStatus' [XCUITestDriver@7e33 (df104001)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@7e33 (df104001)] connect ECONNREFUSED 127.0.0.1:8100 [Xcode] Test Suite 'All tests' started at 2024-06-12 14:00:54.554. [Xcode] [Xcode] Test Suite 'WebDriverAgentRunner.xctest' started at 2024-06-12 14:00:54.560. [Xcode] [Xcode] Test Suite 'UITestingUITests' started at 2024-06-12 14:00:54.560. [Xcode] [Xcode] t = nans Suite Set Up [Xcode] [Xcode] Test Case '-[UITestingUITests testRunner]' started. [Xcode] [Xcode] t = 0.00s Start Test at 2024-06-12 14:00:54.635 [Xcode] [Xcode] t = 0.00s Set Up [Xcode] [Xcode] 2024-06-12 14:00:54.637581+0800 WebDriverAgentRunner-Runner[65747:105278395] Built at Jun 11 2024 17:27:09 [Xcode] [XCUITestDriver@7e33 (df104001)] Matched '/status' to command name 'getStatus' [XCUITestDriver@7e33 (df104001)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [XCUITestDriver@7e33 (df104001)] connect ECONNREFUSED 127.0.0.1:8100 [Xcode] 2024-06-12 14:00:54.717337+0800 WebDriverAgentRunner-Runner[65747:105278395] ServerURLHere->http://192.168.0.111:8100<-ServerURLHere [Xcode] [XCUITestDriver@7e33 (df104001)] Matched '/status' to command name 'getStatus' [XCUITestDriver@7e33 (df104001)] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [Xcode] 2024-06-12 14:00:55.676615+0800 WebDriverAgentRunner-Runner[65747:105278395] Using singleton test manager [Xcode] [XCUITestDriver@7e33 (df104001)] Got response with status 200: {"value":{"build":{"upgradedAt":"1718087213970","version":"8.5.1","time":"Jun 11 2024 17:27:09","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"},"os":{"testmanagerdVersion":65535,"name":"iOS","sdkVersion":"17.0","version":"17.0.1"},"device":"iphone","ios":{"simulatorVersion":"17.0.1","ip":"192.168.0.111"},"message":"WebDriverAgent is ready to accept commands","state":"success","ready":true},"sessionId":null} [XCUITestDriver@7e33 (df104001)] WebDriverAgent information: [XCUITestDriver@7e33 (df104001)] { [XCUITestDriver@7e33 (df104001)] "build": { [XCUITestDriver@7e33 (df104001)] "upgradedAt": "1718087213970", [XCUITestDriver@7e33 (df104001)] "version": "8.5.1", [XCUITestDriver@7e33 (df104001)] "time": "Jun 11 2024 17:27:09", [XCUITestDriver@7e33 (df104001)] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner" [XCUITestDriver@7e33 (df104001)] }, [XCUITestDriver@7e33 (df104001)] "os": { [XCUITestDriver@7e33 (df104001)] "testmanagerdVersion": 65535, [XCUITestDriver@7e33 (df104001)] "name": "iOS", [XCUITestDriver@7e33 (df104001)] "sdkVersion": "17.0", [XCUITestDriver@7e33 (df104001)] "version": "17.0.1" [XCUITestDriver@7e33 (df104001)] }, [XCUITestDriver@7e33 (df104001)] "device": "iphone", [XCUITestDriver@7e33 (df104001)] "ios": { [XCUITestDriver@7e33 (df104001)] "simulatorVersion": "17.0.1", [XCUITestDriver@7e33 (df104001)] "ip": "192.168.0.111" [XCUITestDriver@7e33 (df104001)] }, [XCUITestDriver@7e33 (df104001)] "message": "WebDriverAgent is ready to accept commands", [XCUITestDriver@7e33 (df104001)] "state": "success", [XCUITestDriver@7e33 (df104001)] "ready": true [XCUITestDriver@7e33 (df104001)] } [XCUITestDriver@7e33 (df104001)] WebDriverAgent successfully started after 7337ms [XCUITestDriver@7e33 (df104001)] Event 'wdaSessionAttempted' logged at 1718172055688 (14:00:55 GMT+0800 (Malaysia Time)) [XCUITestDriver@7e33 (df104001)] Sending createSession command to WDA [XCUITestDriver@7e33 (df104001)] Matched '/session' to command name 'createSession' [XCUITestDriver@7e33 (df104001)] Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.testappsport.consumer.uat","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":false,"forceAppLaunch":false,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":false}],"alwaysMatch":{}}} [Xcode] t = 1.06s Open com.testappsport.consumer.uat [Xcode] [Xcode] t = 1.06s Launch com.testappsport.consumer.uat [Xcode] [Xcode] t = 1.18s Setting up automation session [Xcode] [Xcode] 2024-06-12 14:00:56.966994+0800 WebDriverAgentRunner-Runner[65747:105278395] Waiting up to 10s until com.testappsport.consumer.uat is in idle state (including animations) [Xcode] t = 2.33s Wait for com.testappsport.consumer.uat to idle [Xcode] [XCUITestDriver@7e33 (df104001)] Got response with status 200: {"value":{"sessionId":"C49C7387-9079-4A85-A50A-F5259976B069","capabilities":{"sdkVersion":"17.0.1","device":"iphone"}},"sessionId":"C49C7387-9079-4A85-A50A-F5259976B069"} [XCUITestDriver@7e33 (df104001)] Determined the downstream protocol as 'W3C' [XCUITestDriver@7e33 (df104001)] WDA session startup took 2780ms [XCUITestDriver@7e33 (df104001)] Event 'wdaSessionStarted' logged at 1718172058468 (14:00:58 GMT+0800 (Malaysia Time)) [XCUITestDriver@7e33 (df104001)] Event 'wdaStarted' logged at 1718172058469 (14:00:58 GMT+0800 (Malaysia Time)) [BaseDriver] The value of 'elementResponseAttributes' setting did not change. Skipping the update for it [BaseDriver] The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it [FlutterDriver] Establishing a connection to the Dart Observatory. Will retry 10 times with 3000ms delay between retries. These values could be customized by changing 'maxRetryCount' and 'retryBackoffTime' capabilities. [FlutterDriver] Attempt #1 of 10 [FlutterDriver] Running on iOS simulator [FlutterDriver] Connecting to Dart Observatory: ws://127.0.0.1:58094/81UGFnyB4Xs=/ws [FlutterDriver] Listing all isolates: [{"type":"@Isolate","id":"isolates/2460666644834771","name":"main","number":"2460666644834771","isSystemIsolate":false,"isolateGroupId":"isolateGroups/2278910083324642"}] [AppiumDriver@d16b] New FlutterDriver session created successfully, session 4451f462-6095-4061-a32b-d64aeef238b4 added to master session list [AppiumDriver@d16b] Event 'newSessionStarted' logged at 1718172058601 (14:00:58 GMT+0800 (Malaysia Time)) [FlutterDriver@a942 (4451f462)] Cached the protocol value 'W3C' for the new session 4451f462-6095-4061-a32b-d64aeef238b4 [FlutterDriver@a942 (4451f462)] Responding to client with driver.createSession() result: {"capabilities":{"subcommand":"server","address":"0.0.0.0","port":4723,"extraArgs":[],"allowCors":false,"allowInsecure":[],"basePath":"","callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"keepAliveTimeout":600,"localTimezone":false,"loglevel":"debug","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"usePlugins":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"/var/folders/sp/78trpqws72s9q624ttsj3s6h0000gn/T","platformName":"iOS","deviceName":"iPhone 15 Pro","bundleId":"com.testappsport.consumer.uat","automationName":"Flutter","platformVersion":"17.0","startIWDP":true,"useNewWDA":true,"noReset":true,"wdaLaunchTimeout":180000,"wdaConnectionTimeout":180000,"newCommandTimeout":300,"showXcodeLog":true,"app":"/Users/test-user/Development/TestApp/test-app-flutter-consumer/build/ios/Debug-uat-iphonesimulator/Runner.... [HTTP] <-- POST /session 200 11176 ms - 1293 [HTTP] [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/screenshot [HTTP] {} [FlutterDriver@a942 (4451f462)] Calling AppiumDriver.getScreenshot() with args: ["4451f462-6095-4061-a32b-d64aeef238b4"] [FlutterDriver] Executing Flutter driver command 'getScreenshot' [FlutterDriver@a942 (4451f462)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABJsAAAn8CAYAAABF0eA/AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAACAASURBVHic7MEBAQAAAICQ/q/uCAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA... [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/screenshot 200 122 ms - 15784 [HTTP] [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/window/rect [HTTP] {} [FlutterDriver@a942 (4451f462)] Calling AppiumDriver.getWindowRect() with args: ["4451f462-6095-4061-a32b-d64aeef238b4"] [FlutterDriver] Executing Flutter driver command 'getWindowRect' [FlutterDriver@a942 (4451f462)] Encountered internal error running command: NotYetImplementedError: Method has not yet been implemented [FlutterDriver@a942 (4451f462)] at FlutterDriver.executeCommand (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/@appium/base-driver/lib/basedriver/driver.ts:100:13) [FlutterDriver@a942 (4451f462)] at processTicksAndRejections (node:internal/process/task_queues:95:5) [FlutterDriver@a942 (4451f462)] at FlutterDriver.executeCommand (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/lib/driver.ts:215:16) [FlutterDriver@a942 (4451f462)] at defaultBehavior (/opt/homebrew/lib/node_modules/appium/lib/appium.js:1109:14) [FlutterDriver@a942 (4451f462)] at AppiumDriver.executeWrappedCommand (/opt/homebrew/lib/node_modules/appium/lib/appium.js:1215:16) [FlutterDriver@a942 (4451f462)] at AppiumDriver.executeCommand (/opt/homebrew/lib/node_modules/appium/lib/appium.js:1121:17) [FlutterDriver@a942 (4451f462)] at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:393:19) [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/window/rect 405 29 ms - 996 [HTTP] [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/source [HTTP] {} [FlutterDriver@a942 (4451f462)] Calling AppiumDriver.getPageSource() with args: ["4451f462-6095-4061-a32b-d64aeef238b4"] [FlutterDriver] Executing Flutter driver command 'getPageSource' [FlutterDriver@a942 (4451f462)] Encountered internal error running command: NotImplementedError: Not implemented yet for find. [FlutterDriver@a942 (4451f462)] at FlutterDriver.getPageSource (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/@appium/base-driver/lib/basedriver/commands/find.ts:103:11) [FlutterDriver@a942 (4451f462)] at commandExecutor (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/@appium/base-driver/lib/basedriver/driver.ts:106:18) [FlutterDriver@a942 (4451f462)] at /Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/async-lock/lib/index.js:171:12 [FlutterDriver@a942 (4451f462)] at AsyncLock._promiseTry (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/async-lock/lib/index.js:306:31) [FlutterDriver@a942 (4451f462)] at exec (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/async-lock/lib/index.js:170:9) [FlutterDriver@a942 (4451f462)] at AsyncLock.acquire (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/async-lock/lib/index.js:189:3) [FlutterDriver@a942 (4451f462)] at FlutterDriver.executeCommand (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/@appium/base-driver/lib/basedriver/driver.ts:122:39) [FlutterDriver@a942 (4451f462)] at processTicksAndRejections (node:internal/process/task_queues:95:5) [FlutterDriver@a942 (4451f462)] at FlutterDriver.executeCommand (/Users/test-user/Development/TestApp/test-app-flutter-consumer/npm-appium/node_modules/appium-flutter-driver/lib/driver.ts:215:16) [FlutterDriver@a942 (4451f462)] at defaultBehavior (/opt/homebrew/lib/node_modules/appium/lib/appium.js:1109:14) [FlutterDriver@a942 (4451f462)] at AppiumDriver.executeWrappedCommand (/opt/homebrew/lib/node_modules/appium/lib/appium.js:1215:16) [FlutterDriver@a942 (4451f462)] at AppiumDriver.executeCommand (/opt/homebrew/lib/node_modules/appium/lib/appium.js:1121:17) [FlutterDriver@a942 (4451f462)] at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:393:19) [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/source 405 3 ms - 1883 [HTTP] [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/timeouts [HTTP] {} [FlutterDriver@a942 (4451f462)] Calling AppiumDriver.getTimeouts() with args: ["4451f462-6095-4061-a32b-d64aeef238b4"] [FlutterDriver] Executing Flutter driver command 'getTimeouts' [FlutterDriver@a942 (4451f462)] Responding to client with driver.getTimeouts() result: {"command":300000,"implicit":0} [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/timeouts 200 5 ms - 41 [HTTP] [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/timeouts [HTTP] {} [FlutterDriver@a942 (4451f462)] Calling AppiumDriver.getTimeouts() with args: ["4451f462-6095-4061-a32b-d64aeef238b4"] [FlutterDriver] Executing Flutter driver command 'getTimeouts' [FlutterDriver@a942 (4451f462)] Responding to client with driver.getTimeouts() result: {"command":300000,"implicit":0} [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/timeouts 304 3 ms - - [HTTP] [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/screenshot [HTTP] {} [FlutterDriver@a942 (4451f462)] Calling AppiumDriver.getScreenshot() with args: ["4451f462-6095-4061-a32b-d64aeef238b4"] [FlutterDriver] Executing Flutter driver command 'getScreenshot' [FlutterDriver] Connection to ws://127.0.0.1:58094/81UGFnyB4Xs=/ws closed [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/timeouts [HTTP] {} [FlutterDriver@a942 (4451f462)] Calling AppiumDriver.getTimeouts() with args: ["4451f462-6095-4061-a32b-d64aeef238b4"] [FlutterDriver] Executing Flutter driver command 'getTimeouts' ^C[Appium] Received SIGINT - shutting down [AppiumDriver@d16b] Cleaning up 1 active session [AppiumDriver@d16b] Ending session, cause was 'The process has received SIGINT signal' [AppiumDriver@d16b] Removing session '4451f462-6095-4061-a32b-d64aeef238b4' from our master session list [FlutterDriver@a942 (4451f462)] Deleting Flutter Driver session [FlutterDriver@a942 (4451f462)] Cleanup the port forward [FlutterDriver@a942 (4451f462)] Deleting the proxy driver session. [XCUITestDriver@7e33 (df104001)] Matched '/session/df104001-bb43-4a98-9307-26678c6ac0dd' to command name 'deleteSession' [XCUITestDriver@7e33 (df104001)] Proxying [DELETE /session/df104001-bb43-4a98-9307-26678c6ac0dd] to [DELETE http://127.0.0.1:8100/session/C49C7387-9079-4A85-A50A-F5259976B069] with no body [AppiumDriver@d16b] Encountered internal error running command: Error: The process has received SIGINT signal [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/lib/appium.js:935:49 [AppiumDriver@d16b] at Array.map () [AppiumDriver@d16b] at AppiumDriver.deleteAllSessions (/opt/homebrew/lib/node_modules/appium/lib/appium.js:934:33) [AppiumDriver@d16b] at AppiumDriver.shutdown (/opt/homebrew/lib/node_modules/appium/lib/appium.js:191:16) [AppiumDriver@d16b] at process.onSignal (/opt/homebrew/lib/node_modules/appium/lib/main.js:436:28) [AppiumDriver@d16b] at Object.onceWrapper (node:events:635:26) [AppiumDriver@d16b] at process.emit (node:events:532:35) [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/screenshot 500 12165 ms - 698 [HTTP] [AppiumDriver@d16b] Responding to client with driver.getTimeouts() result: {"command":300000,"implicit":0} [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/timeouts 304 5823 ms - - [HTTP] [XCUITestDriver@7e33 (df104001)] Got response with status 200: {"value":null,"sessionId":null} [XCUITestDriver@7e33 (df104001)] Shutting down sub-processes [WebDriverAgent] Shutting down 'xcodebuild' process (pid '65717') [WebDriverAgent] Sending 'SIGTERM'... [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/window/rect [HTTP] {} [AppiumDriver@d16b] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started [AppiumDriver@d16b] at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:315:15) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:518:15 [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/route.js:149:13) [AppiumDriver@d16b] at Route.dispatch (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/route.js:119:3) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:15 [AppiumDriver@d16b] at param (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:365:14) [AppiumDriver@d16b] at param (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:376:14) [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:421:3) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at logger (/opt/homebrew/lib/node_modules/appium/node_modules/morgan/index.js:144:5) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at jsonParser (/opt/homebrew/lib/node_modules/appium/node_modules/body-parser/lib/types/json.js:113:7) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:91:12) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at methodOverride (/opt/homebrew/lib/node_modules/appium/node_modules/method-override/index.js:65:14) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at urlencodedParser (/opt/homebrew/lib/node_modules/appium/node_modules/body-parser/lib/types/urlencoded.js:91:7) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at defaultToJSONContentType (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/express/middleware.js:82:3) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/express/middleware.js:67:5 [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/window/rect 404 14 ms - 5913 [HTTP] [Xcode] ** BUILD INTERRUPTED ** [Xcode] [Xcode] xcodebuild exited with code 'null' and signal 'SIGTERM' [HTTP] --> GET /session/4451f462-6095-4061-a32b-d64aeef238b4/source [HTTP] {} [AppiumDriver@d16b] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started [AppiumDriver@d16b] at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:315:15) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:518:15 [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/route.js:149:13) [AppiumDriver@d16b] at Route.dispatch (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/route.js:119:3) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:15 [AppiumDriver@d16b] at param (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:365:14) [AppiumDriver@d16b] at param (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:376:14) [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:421:3) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at logger (/opt/homebrew/lib/node_modules/appium/node_modules/morgan/index.js:144:5) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at jsonParser (/opt/homebrew/lib/node_modules/appium/node_modules/body-parser/lib/types/json.js:113:7) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:91:12) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at methodOverride (/opt/homebrew/lib/node_modules/appium/node_modules/method-override/index.js:65:14) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at urlencodedParser (/opt/homebrew/lib/node_modules/appium/node_modules/body-parser/lib/types/urlencoded.js:91:7) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at defaultToJSONContentType (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/express/middleware.js:82:3) [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/@appium/base-driver/lib/express/middleware.js:67:5 [AppiumDriver@d16b] at Layer.handle [as handle_request] (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5) [AppiumDriver@d16b] at trim_prefix (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13) [AppiumDriver@d16b] at /opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9 [AppiumDriver@d16b] at Function.process_params (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12) [AppiumDriver@d16b] at next (/opt/homebrew/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10) [HTTP] <-- GET /session/4451f462-6095-4061-a32b-d64aeef238b4/source 404 4 ms - 5913 [HTTP] [DevCon Factory] Releasing connections for 1C4DE705-A5E3-4C63-9D79-17DE65D17A60 device on any port number [DevCon Factory] Found cached connections to release: ["1C4DE705-A5E3-4C63-9D79-17DE65D17A60:8100"] [DevCon Factory] Cached connections count: 0 [XCUITestDriver@7e33 (df104001)] Not clearing log files. Use `clearSystemFiles` capability to turn on. [HTTP] Waiting until the server is closed [HTTP] Received server close event

KazuCocoa commented 3 months ago

The attached one still did not have get context endpoint call, unfortunately.

Get context returns https://github.com/appium/appium-flutter-driver/blob/3b03a439c9027c8082161bf5910ee3413536d4ab/driver/lib/commands/context.ts#L27-L30 , so what I could guess is the iOS session start failed? so non-flutter context was an empty

mcg95 commented 2 months ago

This was my mistake. I was calling getContext() without the "s". That was the reason all of them were not being returned. It is working as expected. Sorry for the trouble. Have a great day!