简体   繁体   中英

How to call “OpenURL” function of Appdelegate from UI Xctest

My application contains "OpenIn" functionality ie user can share any file to my application. I want to test this using UI testing in Xcode.

  1. How do I access Appdelegate's/UIApplicaiton's "OpenURL" method in XctestCase class?
  2. How can I show a "OpenIn" window ie share with application popup where I can share the file?

It may be more suitable to do this without UI testing. Then the tests can directly call the desired app delegate methods directly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM