[XCUIApplication launch] launches the target app but can't find the target app is running
| Originator: | ilya.kolo | ||
| Number: | rdar://28687024 | Date Originated: | |
| Status: | Duplicate of 21344280 | Resolved: | |
| Product: | Xcode | Product Version: | 8.0 (8A218a) |
| Classification: | Reproducible: |
Summary: I have the same issue as described here: https://forums.developer.apple.com/message/101210#101210 But I use Xcode 8 and desktop cocoa application. It is toolbar application (Application is agent (UIElement) == YES) For example I've found some project with menubar application (attached as Quotes.zip). Only change I made to it from original (https://www.raywenderlich.com/98178/os-x-tutorial-menus-popovers-menu-bar-apps) — converted to actual Swift and added UI tests. Steps to Reproduce: 1. Add test target to Xcode project 2. Run default test with launch in the setUp 3. Run tests Expected Results: Application will launch and test case will start working Actual Results: Application did launch, but XCTest reports that it is still not running. Version: Xcode 8.0 (8A218a) macOS Sierra (16A323) Notes: Configuration: macOS Sierra (16A323) MacBookPro11,3 gcc --version Apple LLVM version 8.0.0 (clang-800.0.38) Target: x86_64-apple-darwin16.0.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Attachments: 'Session-QuotesUITests-2016-10-09_153309-2VlIa5.log' and 'Quotes.zip' were successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!