[INFO] Scanning for projects... [INFO] [INFO] ----------------------< com.mycompany.app:my-app >---------------------- [INFO] Building my-app 1.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.0.2:resources (default-resources) @ my-app --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- compiler:3.8.0:compile (default-compile) @ my-app --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- resources:3.0.2:testResources (default-testResources) @ my-app --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/wreed/GithubProjects/java_appium/my-app/src/test/resources [INFO] [INFO] --- compiler:3.8.0:testCompile (default-testCompile) @ my-app --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- surefire:2.22.1:test (default-test) @ my-app --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.mycompany.app.APMTest 15:48:59.368 [INFO] BaseTest - Performing getInstance() 15:48:59.785 [INFO] APMServer - Starting Appium Server [Appium] Welcome to Appium v2.11.3 [Appium] Non-default server args: [Appium] { address: '127.0.0.1', basePath: '/wd/hub/', sessionOverride: true, useDrivers: [ 'xcuitest' ] } [Appium] The autodetected Appium home path: /Users/wreed/.appium [Appium] Attempting to load driver xcuitest... [Appium] Requiring driver at /Users/wreed/.appium/node_modules/appium-xcuitest-driver/build/index.js [Appium] XCUITestDriver has been successfully loaded in 0.364s [Appium] Appium REST http interface listener started on http://127.0.0.1:4723/wd/hub [Appium] Available drivers: [Appium] - xcuitest@7.24.16 (automationName 'XCUITest') [Appium] - uiautomator2@3.7.7 (automationName 'UiAutomator2') [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use. [HTTP] --> GET /wd/hub/status {} [AppiumDriver@1238] Calling AppiumDriver.getStatus() with args: [] [AppiumDriver@1238] Responding to client with driver.getStatus() result: {"ready":true,"message":"The server is ready to accept new connections","build":{"version":"2.11.3"}} [HTTP] <-- GET /wd/hub/status 200 3 ms - 111 15:49:00.812 [INFO] APM - Attaching client to server [HTTP] Request idempotency key: 68407a76-1b47-42b0-b945-d23bf7995c24 [HTTP] --> POST /wd/hub/session {"capabilities":{"firstMatch":[{"appium:newCommandTimeout":60,"appium:deviceName":"iPhone 15","appium:maxTypingFrequency":10,"platformName":"IOS","appium:automationName":"xcuitest","appium:app":"/Users/wreed/GithubProjects/java_appium/my-app/apps/TheApp.app.zip","appium:platformVersion":"17.5"}]}} [AppiumDriver@1238] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{"appium:newCommandTimeout":60,"appium:deviceName":"iPhone 15","appium:maxTypingFrequency":10,"platformName":"IOS","appium:automationName":"xcuitest","appium:app":"/Users/wreed/GithubProjects/java_appium/my-app/apps/TheApp.app.zip","appium:platformVersion":"17.5"}]}] [AppiumDriver@1238] Event 'newSessionRequested' logged at 1740440941175 (15:49:01 GMT-0800 (Pacific Standard Time)) [Appium] Attempting to find matching driver for automationName 'xcuitest' and platformName 'IOS' [Appium] The 'xcuitest' driver was installed and matched caps. [Appium] Will require it at /Users/wreed/.appium/node_modules/appium-xcuitest-driver [Appium] Requiring driver at /Users/wreed/.appium/node_modules/appium-xcuitest-driver/build/index.js [AppiumDriver@1238] Appium v2.11.3 creating new XCUITestDriver (v7.24.16) session [AppiumDriver@1238] Checking BaseDriver versions for Appium and XCUITestDriver [AppiumDriver@1238] Appium's BaseDriver version is 9.11.3 [AppiumDriver@1238] XCUITestDriver's BaseDriver version is 9.11.3 [AppiumDriver@1238] There are no active sessions for cleanup [XCUITestDriver@1c47] [XCUITestDriver@1c47] Creating session with W3C capabilities: { "alwaysMatch": { "platformName": "IOS", "appium:newCommandTimeout": 60, "appium:deviceName": "iPhone 15", "appium:maxTypingFrequency": 10, "appium:automationName": "xcuitest", "appium:app": "/Users/wreed/GithubProjects/java_appium/my-app/apps/TheApp.app.zip", "appium:platformVersion": "17.5" }, "firstMatch": [ {} ] } [930e0545][XCUITestDriver@1c47] Session created with session id: 930e0545-974d-4dd9-95b8-b8c1c01653b1 [930e0545][XCUITest] Current user: 'wreed' [930e0545][XCUITestDriver@1c47] No real device udid has been provided in capabilities. Will select a matching simulator to run the test. [930e0545][XCUITestDriver@1c47] iOS SDK Version set to '17.5' [930e0545][XCUITestDriver@1c47] Looking for an existing Simulator with platformName: iOS, platformVersion: 17.5, deviceName: iPhone 15 [930e0545][XCUITestDriver@1c47] Constructing iOS simulator for Xcode version 15.4 with udid '649F063E-6699-4C61-B2AA-B2CBAA8521B9' [930e0545][XCUITestDriver@1c47] Determining device to run tests on: udid: '649F063E-6699-4C61-B2AA-B2CBAA8521B9', real device: false [930e0545][XCUITestDriver@1c47] Event 'xcodeDetailsRetrieved' logged at 1740440941777 (15:49:01 GMT-0800 (Pacific Standard Time)) [930e0545][BaseDriver] Using local app '/Users/wreed/GithubProjects/java_appium/my-app/apps/TheApp.app.zip' [930e0545][Support] Found 'unzip' at '/usr/bin/unzip' [930e0545][XCUITestDriver@1c47] The file (9.57 MB) has been extracted to '/var/folders/rx/hhfll3kj0c534c91ml1n6vwr0000gn/T/2025124-51712-1rswr91.u9gf' in 0.185s [930e0545][XCUITestDriver@1c47] Found 1 bundle in '2025124-51712-1rswr91.u9gf': TheApp.app [930e0545][XCUITestDriver@1c47] Caching the manifest for com.appiumpro.the_app app from a file source using the key 'aa1f4acc644b33be0fe8a75ace06ef523fc71b3d' [930e0545][XCUITestDriver@1c47] CFBundleSupportedPlatforms: ["iPhoneSimulator"] [930e0545][XCUITestDriver@1c47] Selecting the application at 'TheApp.app' [930e0545][XCUITestDriver@1c47] Event 'appConfigured' logged at 1740440941984 (15:49:01 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITest] Checking whether app '/var/folders/rx/hhfll3kj0c534c91ml1n6vwr0000gn/T/2025124-51712-t2mp86.wzge/TheApp.app' is actually present on file system [930e0545][XCUITest] App is present [930e0545][XCUITestDriver@1c47] CFBundleIdentifier: "com.appiumpro.the_app" [930e0545][XCUITestDriver@1c47] Event 'resetStarted' logged at 1740440941984 (15:49:01 GMT-0800 (Pacific Standard Time)) [930e0545][simctl] Error running 'terminate': An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device failed to terminate com.appiumpro.the_app. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.appiumpro.the_app" failed. found nothing to terminate found nothing to terminate [930e0545][XCUITestDriver@1c47] Reset: failed to terminate Simulator application with id "com.appiumpro.the_app" [930e0545][XCUITestDriver@1c47] Not scrubbing third party app in anticipation of uninstall [930e0545][XCUITestDriver@1c47] Event 'resetComplete' logged at 1740440942129 (15:49:02 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITestDriver@1c47] Using WDA path: '/Users/wreed/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent' [930e0545][XCUITestDriver@1c47] Using WDA agent: '/Users/wreed/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [930e0545][XCUITestDriver@1c47] Starting log capture for iOS Simulator with udid '649F063E-6699-4C61-B2AA-B2CBAA8521B9' using simctl [930e0545][XCUITestDriver@1c47] Event 'logCaptureStarted' logged at 1740440942441 (15:49:02 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITestDriver@1c47] Setting up simulator [930e0545][XCUITestDriver@1c47] Setting preferences of 649F063E-6699-4C61-B2AA-B2CBAA8521B9 Simulator to {"ConnectHardwareKeyboard":false} [930e0545][XCUITestDriver@1c47] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false} [930e0545][XCUITestDriver@1c47] Updated 649F063E-6699-4C61-B2AA-B2CBAA8521B9 Simulator preferences at '/Users/wreed/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"StartLastDeviceOnLaunch":false,"DetachOnWindowClose":false,"AttachBootedOnStart":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false,"DevicePreferences":{"649F063E-6699-4C61-B2AA-B2CBAA8521B9":{"ConnectHardwareKeyboard":false,"SimulatorExternalDisplay":2114,"ChromeTint":"","SimulatorWindowOrientation":"Portrait","SimulatorWindowRotationAngle":0,"SimulatorWindowGeometry":{"3BA50C92-1D5A-45DD-BBA7-DBBF6883952E":{"WindowCenter":"{573.5, 361}","WindowScale":0.7080536912751678},"3F7E56D8-7BE2-4382-AE26-E21AEC04EA01":{"WindowCenter":"{221, 425}","WindowScale":0.8512304250559284}}}}} [930e0545][XCUITestDriver@1c47] Got Simulator UI client PID: 36994 [930e0545][XCUITestDriver@1c47] Both Simulator with UDID '649F063E-6699-4C61-B2AA-B2CBAA8521B9' and the UI client are currently running [930e0545][XCUITestDriver@1c47] Event 'simStarted' logged at 1740440942633 (15:49:02 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITestDriver@1c47] Verifying application platform [930e0545][XCUITestDriver@1c47] CFBundleSupportedPlatforms: ["iPhoneSimulator"] [930e0545][XCUITestDriver@1c47] CFBundleExecutable: "TheApp" [930e0545][XCUITestDriver@1c47] /var/folders/rx/hhfll3kj0c534c91ml1n6vwr0000gn/T/2025124-51712-t2mp86.wzge/TheApp.app/TheApp: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64] /var/folders/rx/hhfll3kj0c534c91ml1n6vwr0000gn/T/2025124-51712-t2mp86.wzge/TheApp.app/TheApp (for architecture x86_64): Mach-O 64-bit executable x86_64 /var/folders/rx/hhfll3kj0c534c91ml1n6vwr0000gn/T/2025124-51712-t2mp86.wzge/TheApp.app/TheApp (for architecture arm64): Mach-O 64-bit executable arm64 [930e0545][XCUITestDriver@1c47] App 'com.appiumpro.the_app' is already installed [930e0545][XCUITestDriver@1c47] Reset requested. Removing app with id 'com.appiumpro.the_app' from the device [930e0545][XCUITestDriver@1c47] Installing '/var/folders/rx/hhfll3kj0c534c91ml1n6vwr0000gn/T/2025124-51712-t2mp86.wzge/TheApp.app' on Simulator with UUID '649F063E-6699-4C61-B2AA-B2CBAA8521B9'... [930e0545][XCUITestDriver@1c47] The app has been successfully installed in 446ms [930e0545][XCUITestDriver@1c47] Event 'appInstalled' logged at 1740440943713 (15:49:03 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITestDriver@1c47] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [930e0545][DevCon Factory] Requesting connection for device 649F063E-6699-4C61-B2AA-B2CBAA8521B9 on local port 8100 [930e0545][DevCon Factory] Cached connections count: 0 [930e0545][DevCon Factory] Successfully requested the connection for 649F063E-6699-4C61-B2AA-B2CBAA8521B9:8100 [930e0545][XCUITestDriver@1c47] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver' [930e0545][WD Proxy] Matched '/status' to command name 'getStatus' [930e0545][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [930e0545][WD Proxy] Got response with status 200: {"value":{"build":{"upgradedAt":"1724087445536","version":"8.9.1","time":"Feb 14 2025 19:17:37","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"},"os":{"testmanagerdVersion":65535,"name":"iOS","sdkVersion":"17.4","version":"17.5"},"device":"iphone","ios":{"simulatorVersion":"17.5","ip":"192.168.1.50"},"message":"WebDriverAgent is ready to accept commands","state":"success","ready":true},"sessionId":null} [930e0545][XCUITestDriver@1c47] Upgrade timestamp of the currently bundled WDA: 1724087445536 [930e0545][XCUITestDriver@1c47] Upgrade timestamp of the WDA on the device: 1724087445536 [930e0545][XCUITestDriver@1c47] Will reuse previously cached WDA instance at 'http://127.0.0.1:8100/' with 'com.facebook.WebDriverAgentRunner'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior. [930e0545][XCUITestDriver@1c47] Trying to start WebDriverAgent 2 times with 10000ms interval [930e0545][XCUITestDriver@1c47] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [930e0545][XCUITestDriver@1c47] Event 'wdaStartAttempted' logged at 1740440943796 (15:49:03 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITestDriver@1c47] Using provided WebdriverAgent at 'http://127.0.0.1:8100/' [930e0545][WD Proxy] Matched '/status' to command name 'getStatus' [930e0545][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body [930e0545][WD Proxy] Got response with status 200: {"value":{"build":{"upgradedAt":"1724087445536","version":"8.9.1","time":"Feb 14 2025 19:17:37","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"},"os":{"testmanagerdVersion":65535,"name":"iOS","sdkVersion":"17.4","version":"17.5"},"device":"iphone","ios":{"simulatorVersion":"17.5","ip":"192.168.1.50"},"message":"WebDriverAgent is ready to accept commands","state":"success","ready":true},"sessionId":null} [930e0545][XCUITestDriver@1c47] Event 'wdaSessionAttempted' logged at 1740440943799 (15:49:03 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITestDriver@1c47] Sending createSession command to WDA [930e0545][XCUITestDriver@1c47] Matched '/session' to command name 'createSession' [930e0545][XCUITestDriver@1c47] Proxying [POST /session] to [POST http://127.0.0.1:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.appiumpro.the_app","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":10,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"forceAppLaunch":true,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true}],"alwaysMatch":{}}} [930e0545][XCUITestDriver@1c47] Parsed BUILD_DIR configuration value: '/Users/wreed/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/DerivedData/WebDriverAgent/Build/Products' [930e0545][XCUITestDriver@1c47] Got derived data root: '/Users/wreed/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/DerivedData/WebDriverAgent' [930e0545][XCUITestDriver@1c47] Got response with status 200: {"value":{"sessionId":"48E35E44-88E6-409B-A52D-1142606EC576","capabilities":{"sdkVersion":"17.5","device":"iphone"}},"sessionId":"48E35E44-88E6-409B-A52D-1142606EC576"} [930e0545][XCUITestDriver@1c47] Determined the downstream protocol as 'W3C' [930e0545][XCUITestDriver@1c47] WDA session startup took 3048ms [930e0545][XCUITestDriver@1c47] Event 'wdaSessionStarted' logged at 1740440946848 (15:49:06 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITestDriver@1c47] Event 'wdaStarted' logged at 1740440946849 (15:49:06 GMT-0800 (Pacific Standard Time)) [930e0545][BaseDriver] The value of 'elementResponseAttributes' setting did not change. Skipping the update for it [930e0545][BaseDriver] The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it [930e0545][AppiumDriver@1238] New XCUITestDriver session created successfully, session 930e0545-974d-4dd9-95b8-b8c1c01653b1 added to master session list [930e0545][AppiumDriver@1238] Event 'newSessionStarted' logged at 1740440946852 (15:49:06 GMT-0800 (Pacific Standard Time)) [930e0545][XCUITestDriver@1c47] Cached the protocol value 'W3C' for the new session 930e0545-974d-4dd9-95b8-b8c1c01653b1 [930e0545][XCUITestDriver@1c47] Responding to client with driver.createSession() result: {"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"IOS","newCommandTimeout":60,"deviceName":"iPhone 15","maxTypingFrequency":10,"automationName":"xcuitest","app":"/Users/wreed/GithubProjects/java_appium/my-app/apps/TheApp.app.zip","platformVersion":"17.5","udid":"649F063E-6699-4C61-B2AA-B2CBAA8521B9"}} [930e0545][HTTP] <-- POST /wd/hub/session 200 5683 ms - 541 [930e0545][HTTP] --> POST /wd/hub/session/930e0545-974d-4dd9-95b8-b8c1c01653b1/timeouts {"implicit":15000} [930e0545][XCUITestDriver@1c47] Calling AppiumDriver.timeouts() with args: [null,null,null,null,15000,"930e0545-974d-4dd9-95b8-b8c1c01653b1"] [930e0545][XCUITestDriver@1c47] Executing command 'timeouts' [930e0545][XCUITestDriver@1c47] W3C timeout argument: {"implicit":15000}} [930e0545][XCUITestDriver@1c47] Set implicit wait to 15000ms [930e0545][XCUITestDriver@1c47] Responding to client with driver.timeouts() result: null [930e0545][HTTP] <-- POST /wd/hub/session/930e0545-974d-4dd9-95b8-b8c1c01653b1/timeouts 200 4 ms - 14 15:49:07.148 [INFO] APMTest - Server and iOS Driver started successfully!! 15:49:07.153 [INFO] BaseTest - Performing quitSession() 15:49:07.153 [INFO] APM - Closing the driver... [930e0545][HTTP] --> DELETE /wd/hub/session/930e0545-974d-4dd9-95b8-b8c1c01653b1 {} [930e0545][XCUITestDriver@1c47] Calling AppiumDriver.deleteSession() with args: ["930e0545-974d-4dd9-95b8-b8c1c01653b1"] [930e0545][AppiumDriver@1238] Event 'quitSessionRequested' logged at 1740440947157 (15:49:07 GMT-0800 (Pacific Standard Time)) [930e0545][AppiumDriver@1238] Removing session 930e0545-974d-4dd9-95b8-b8c1c01653b1 from our master session list [930e0545][XCUITestDriver@1c47] Matched '/session/930e0545-974d-4dd9-95b8-b8c1c01653b1' to command name 'deleteSession' [930e0545][XCUITestDriver@1c47] Proxying [DELETE /session/930e0545-974d-4dd9-95b8-b8c1c01653b1] to [DELETE http://127.0.0.1:8100/session/48E35E44-88E6-409B-A52D-1142606EC576] with no body [930e0545][XCUITestDriver@1c47] Got response with status 200: {"value":null,"sessionId":null} [930e0545][DevCon Factory] Releasing connections for 649F063E-6699-4C61-B2AA-B2CBAA8521B9 device on any port number [930e0545][DevCon Factory] Found cached connections to release: ["649F063E-6699-4C61-B2AA-B2CBAA8521B9:8100"] [930e0545][DevCon Factory] Cached connections count: 0 [930e0545][XCUITestDriver@1c47] Not clearing log files. Use `clearSystemFiles` capability to turn on. [930e0545][XCUITestDriver@1c47] Stopping iOS log capture [930e0545][AppiumDriver@1238] Event 'quitSessionFinished' logged at 1740440948320 (15:49:08 GMT-0800 (Pacific Standard Time)) [930e0545][AppiumDriver@1238] Received response: null [930e0545][AppiumDriver@1238] But deleting session, so not returning [930e0545][AppiumDriver@1238] Responding to client with driver.deleteSession() result: null [930e0545][HTTP] <-- DELETE /wd/hub/session/930e0545-974d-4dd9-95b8-b8c1c01653b1 200 1166 ms - 14 15:49:08.338 [INFO] APMServer - Trying to stop the server... [Appium] Received SIGTERM - shutting down [AppiumDriver@1238] There are no active sessions for cleanup [HTTP] Closing Appium HTTP server [HTTP] Not all active connections have been closed within 5002ms. Exiting anyway. [BaseDriver] Performing cleanup of 1 cached application 15:49:13.379 [INFO] APMServer - Success, Server stopped. [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.937 s - in com.mycompany.app.APMTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.086 s [INFO] Finished at: 2025-02-24T15:49:13-08:00 [INFO] ------------------------------------------------------------------------