[iOS]Xcode 11.4 new interesting features for automation

This article is a note for me in Xcode 11.4

https://developer.apple.com/documentation/xcode_release_notes/xcode_11_4_beta_release_notes/

  • Simulate push notification
    • xcrun simctl push com.example.my-app ExamplePush.apns
      • Like Android’s adb command, finally, we can simulate push notification on the local!! The local execution helped me so much when I achieved automation.
  • Handle privacy permissions
    • xcrun simctl privacy grant photos com.example.app, xcrun simctl privacy reset all com.example.app
      • This also finally can achieve in iOS like Android has been done. We can make tests more configurable.
  • Handle dark mode
    • xcrun simctl ui appearance dark
      • Appium already achieved this appearance feature changing simulator configuration. issue
      • But it works only on simulators. On real devices, we should add a trick like this to handle the mode.

Appium will have them. Then, users do not need to uninstall the app under test every time to control the device environment. It will reduce running time and make tests more reliable, I believe.

I hope such features will be able to apply against real devices, too, in the future.

Happy testing 🙂

1 Comment

  1. Akhilesh kumar naveria's avatar Akhilesh kumar naveria says:

    Pl.send
    for me opportunity/vaccancy/conseltant for best carrier in rural development

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.