appium / appium-mac2-driver

Next-gen Appium macOS driver, backed by Apple XCTest
Apache License 2.0
115 stars 24 forks source link

Automation doesn't close after test #180

Closed rmarinho closed 1 year ago

rmarinho commented 1 year ago

I m able to run test on a MacCatalyst app without any issue, but in the end of the test the app is closed but the "Automation is running" mask is still present. It should close on the end of the test right?

appium server --base-path=/wd/hub
[Appium] Welcome to Appium v2.0.0-beta.48
[Appium] Non-default server args:
[Appium] {
[Appium]   basePath: '/wd/hub'
[Appium] }
[Appium] Attempting to load driver xcuitest...
[debug] [Appium] Requiring driver at /Users/ruimarinho/.appium/node_modules/appium-xcuitest-driver
[Appium] Attempting to load driver uiautomator2...
[debug] [Appium] Requiring driver at /Users/ruimarinho/.appium/node_modules/appium-uiautomator2-driver
[Appium] Attempting to load driver mac2...
[debug] [Appium] Requiring driver at /Users/ruimarinho/.appium/node_modules/appium-mac2-driver
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] Available drivers:
[Appium]   - xcuitest@4.16.6 (automationName 'XCUITest')
[Appium]   - uiautomator2@2.12.1 (automationName 'UiAutomator2')
[Appium]   - mac2@1.4.8 (automationName 'Mac2')

End of log

[debug] [Mac2Driver@f964 (7f2ea138)] Calling AppiumDriver.deleteSession() with args: ["7f2ea138-885a-4f29-96de-f7526c0f4a1d"]
[debug] [AppiumDriver@b410] Event 'quitSessionRequested' logged at 1673028225154 (18:03:45 GMT+0000 (Western European Standard Time))
[AppiumDriver@b410] Removing session 7f2ea138-885a-4f29-96de-f7526c0f4a1d from our master session list
[debug] [WD Proxy] Matched '/session/B1DEA774-17CB-41C4-AC6B-52C9F8E3551C' to command name 'deleteSession'
[debug] [WD Proxy] Proxying [DELETE /session/B1DEA774-17CB-41C4-AC6B-52C9F8E3551C] to [DELETE http://127.0.0.1:10100/session/B1DEA774-17CB-41C4-AC6B-52C9F8E3551C] with no body
[debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":null}
[debug] [AppiumDriver@b410] Event 'quitSessionFinished' logged at 1673028226219 (18:03:46 GMT+0000 (Western European Standard Time))
[debug] [AppiumDriver@b410] Received response: null
[debug] [AppiumDriver@b410] But deleting session, so not returning
[debug] [AppiumDriver@b410] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/7f2ea138-885a-4f29-96de-f7526c0f4a1d 200 1066 ms - 14
[HTTP] 
mykola-mokhnach commented 1 year ago

The wda process gets cached, so all the following test sessions could start faster. It only gets killed together with the server process.