serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
718 stars 515 forks source link

Question: i want to perform internationalization and localization using serenity bdd #2748

Open prashantrbs opened 2 years ago

prashantrbs commented 2 years ago

Hi there,

I want perform Internationalization automation on my application how do I do that. Is this possible with serenity bdd. If this is possible please share the relevant documents

Thanks in advance

globalworming commented 2 years ago

could you share a specific example of what behavior you'd like to see?

is it maybe about visual checking, or checking all texts are translated, or something else? what tools do you use for i18n? what frameworks, libraries, 3rd party tooling etc?

prashantrbs commented 2 years ago

I am using serenity bdd for ui and api automation

I m not using any tools right now for doing i18n testing. All I want is visual checking and verify whether all the text appears in correct local language when page loaded. Thanks

globalworming commented 2 years ago

But what tools are you using in you GUI that enable i18n? This "all the text appears in correct local" is still a very unspecified test. And with the frontend frameworks it's often enough to have a single test checking that one specific locale switch works, because all other translations should then work as well. So what is it exactly you'd like to show? And how? With serenity it should be easy to load pages in different locales, maybe there is a "select language" button in the GUI, or you pass the locale as parameter for the driver or..