Forum Discussion
6 Replies
- baxatobCommunity Hero
Hi,
In my case I have a separate object checkpoints for each language binding.
- Colin_McCraeCommunity Hero
I suspect how you do it will be largely dependent on how your tests are currently set up.
Mine run in my own framework with all the input data and expected results stored on Excel sheets. If I wanted to add additional languages, I would simply set up a sheet with inputs and expected results in French. I would probably also introduce a global flag variable indicating the language in use. This could automatically redirect to specific folders (to retrieve the input sheets) depending how the flag was set. Setting of the flag would be done in the initialisation sheet all tests require.
How you do this using things like keyword tests and checkpoints, I'm not so sure ... use multiples like the reply above I suppose?
(If you're using object maps, and using text which may change to identify objects, that may present problems. I tend not to use things like caption text, but sometimes you can't avoid it. In that case, I guess you would probably need to use different name maps? Which you can't load on the fly with TC. Not ideal.)
- PedroBarry07New Contributor
Hi Colin_McCrae,
This is a great work around except that in an excel sheet, i'm thinking, it would be too much.(How? we'll have to read and retrieve the content of every cell of the excel sheet and this may add complexity to the script.) maybe!
I'm gonna try using a .txt file instead and create 1 file for each correspondent language then declared the same key = value (different value) in each file, then call this file depending on the global_lang_variable as you suggested.
And yes, we are'nt using the text in the map of our object, instead we are using the UID. and in some case we have no choice to use the text as you said again.
Thanks for your great ideas Colin and let me know if you see any flaw in my ideas above.
- PedroBarry07New Contributor
Hi baxatob,
Thank you for your reply and suggestion, at the moment we are using checkpoint for each language and its much. we want to move in a much elegant way. The app we are testing is Huge and in the long term. it will be too much of code for nothing. In Java or C# or any other object oriented language, there's an option to this easily. Anyway, ..
Thank you very much.