问题
I want to validate what voice over says on my app Can i automate voice overs or it can be done only manually?
回答1:
1/. Use Unit Tests
to check every property of your accessible elements (label, hint, trait...).
2/. Take a look at the DEQUE solution dedicated to iOS.
3/. The GTXiLib
open source framework is also a good solution even if it's written in ObjC. :o)
However, UI Testing (Xcode 10, iOS 12) is off the table because custom actions for instance are unreachable.
Take a look at this answer given by an Apple engineer during the WWDC 2019.
来源:https://stackoverflow.com/questions/55805363/can-we-perform-automation-testing-on-voice-overs