NSLocalizedString doesn’t work in UI Testing
| Originator: | liu.dongyuan | ||
| Number: | rdar://23402163 | Date Originated: | 04-Nov-2015 03:15 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: NSLocalizedString doesn’t work in UI Testing, it always returns the localization in Base language. Steps to Reproduce: 1. Clone https://github.com/xhacker/radar.git 2. Open the UITestingLocalization sample project 3. Run UI Testing Expected Results: The tests should pass. Actual Results: It failed. Notes: Looks like in UI Testing target, NSLocalizedString cannot get the correct localization for current language. Instead, it always returns the localization in Base language. See the testLocalizedStringInBaseLanguage test case.
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!
localised string in UI Test
Did you found any worked around for this? Seems like Xcode bug to me