does anyone has a solution to handle internationalisation (i18n) in test cases?
As an example, I want to run a test which contains Verify text with English value, and run the same test case but the text verification will be done in Italian or German.
I guess there is something to do with test data, but could’nt find the best solution for this.
I was more expecting a solution to define a Language which will redirect to a properties file containing key/Value string.
For example:
messages_FR.properties :
HelloString = Bonjour
GoodbyeString = Au revoir
messages_EN.properties:
HelloString = Hello
GoodbyeString = Goodbye
Then in my test case I use HelloString and it will find the correct value in the correct file depending on the language to use:
Mobile.veriFyTextPresent(message.getString(“HelloString”)) (this code is incorrect but it is only to describe a possible solution)