mercredi 16 août 2017

XCUITest : Know language of app/iPhone

I have a scenario where there are different users based on the language. How do I determine the language of the iPhone/Simulator/App so that I know what login to use.

For example

  • if the language is en-us user Eng_User
  • if language is ru then use Ru_User

Is there a way in XCUITest after launching the application that I know the language being user

Can I set a property in app delegate and use it later?? I tried setting app.accessibilityLanguage in appDelegate but couldn't use it in the test as the value returned was nil

Aucun commentaire:

Enregistrer un commentaire