自动化本地化测试 [英] Automating localization testing

查看:118
本文介绍了自动化本地化测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在测试一个用Java开发并使用ubuntu平台的独立应用程序。我们必须验证在使用不同语言测试应用程序时没有截断问题。我们是否有一个可以做到这一点的工具或可以自动化这种情况的方法。



我尝试过的方法:



无法理解如何继续。请建议/指导。

We are testing a standalone application that is developed in Java and uses ubuntu platform. We have to validate that there are not truncation issues when the application is tested in different languages. Do we have an tool that can do it or what could be the way to automate this scenario.

What I have tried:

Unable to understand how to proceed. Please suggest/guide.

推荐答案

在java中看起来像是一个本地方法,它与ResourceBundle交互,后者是本地化字符串的键值对。



Locale( Java Platform SE 6) [ ^ ]



您应该能够创建单元测试,其中您所做的就是调用相同的类/方法但传入不同的您想要测试的语言。
It looks like in java you have a local method and it interacts with ResourceBundle which is a key value pair of your strings that are localized.

Locale (Java Platform SE 6)[^]

You should then be able to create unit tests where all you do is call the same class/method but pass in the different languages that you are wanting to test.


这篇关于自动化本地化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆