简体   繁体   English

多语言网站测试自动化

[英]Multiple languages of website testing automation

How I can do verification for different language of website using testing automation tools selenium.... Example If the application have title page (apps on Google play), I do verification by this title in selenium but if I want to do verification in spain or French language how !!我如何使用测试自动化工具 selenium 对网站的不同语言进行验证....示例如果应用程序有标题页(Google Play 上的应用程序),我在 selenium 中按此标题进行验证,但如果我想在西班牙进行验证或法语如何!

Automation of different languages can be tiresome.不同语言的自动化可能会让人厌烦。

One way to do is to have different translations in a datafile(config.properties) and compare based on the language user has logged-in.一种方法是在数据文件 (config.properties) 中有不同的翻译,并根据用户登录的语言进行比较。

For Eg:例如:

Fr_txt: Bienvenue Fr_txt:Bienvenue

Sp_txt: Bienvenido/a Sp_txt:Bienvenido/a

These translations has to maintained and updated if changed.如果更改,必须维护和更新这些翻译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM