Forum Discussion

JoseVazquez-1's avatar
JoseVazquez-1
Occasional Contributor
10 years ago

Using an external file to test for testing a multilanguage GUI

MOVED TO SECTION "Desktop Testing", SINCE INCORRECTLY POSTED IN THE "General Discussions" section.

 

~~~~~~~~~~~~~~~~~~~~~~~~  

 

 

We have an application that interfaces with the user via a computer screen.  The screen has many software buttons that can be clicked with a mouse. i.e. buttons like START, STOP, SURNAME, etc. 

 

I currently simulate the press of a button with a ‘Click’ function.

 

I intend to verify the contents of the button, which I believe can be done with a ‘Property Checkpoint’.  So far seems simple.

 

The next revision of the software is to include translation of the buttons on the screen into several languages – European and Asian, maybe up to 20 languages.  I think it will be a logistic nightmare to make a .pjs file for each language, and then maintain them all at the same level as changes and updates occur.

 

My thinking is to be able to access an external file (similarly as done with a DB Table with an XCEL or CVS file), that has the translation for every word that I need.

 

I have found a way to access an external file for external text input (with a DB Table), but I have no idea how to do it for a button content (which is I believe a property called ‘WndCaption’).  Does anyone have any suggestions how to access an external file (for the purposes of incorporating various translations) to check  the contents of the displayed text on a screen button?

 

1 Reply

  • william_roe's avatar
    william_roe
    Super Contributor

    You would use the value from whatever source (CSV, Excel, etc) and test again either the value, text, contentText, etc of the localized control(s).