Forum Discussion
Marsha_R
Champion Level 3
12 years agoWhat if you build an Excel sheet with your known values on it in rows with one row for each language? Store the names of days and months and anything else you need to translate, then call your test with a parameter = testlanguage so you can find the proper row.
For something like a report title or a field name that doesn't change from test run to test run, you can just compare what's on the screen to the content of the appropriate cell.
For something like a date that will vary, you can construct it at the beginning of the test and save it in a variable. Get the day and the year from aqDateTime and add it to the month from the Excel sheet. Do your comparison in the test with that variable. If it's truncated on the screen, it won't match the one in your variable.
For something like a report title or a field name that doesn't change from test run to test run, you can just compare what's on the screen to the content of the appropriate cell.
For something like a date that will vary, you can construct it at the beginning of the test and save it in a variable. Get the day and the year from aqDateTime and add it to the month from the Excel sheet. Do your comparison in the test with that variable. If it's truncated on the screen, it won't match the one in your variable.