07-17-2008, 11:28 PM
(This post was last modified: 07-17-2008, 11:30 PM by MikeZimmermann.)
I am going to be using QTP 9.0 to ease the testing of translations with the newest version of our product. I have been looking through the manual and online for tips but haven't come across too much regarding our need. What I want to know is, what would be the best way to go about creating a test for our needs? What I need is:
-Have QTP go through our program and get the text from every object which has text
-Compare them against the strings from an external file (Excel or XML) or the .resx file
-Make sure that the string is fully displayed within the program and not cut off
I have figured out how to fetch the text from all objects I need but I can't figure out the best way to go about comparing them to what they should be. Would it be best to import all the correct strings as Environment Variables or would it be best to import into the DataTable? Is there a way that I can get the only visible text and the full text to compare? Basically I need to figure out if strings are getting truncated by being too long. I would appreciate any help on this. Thanks.
-Have QTP go through our program and get the text from every object which has text
-Compare them against the strings from an external file (Excel or XML) or the .resx file
-Make sure that the string is fully displayed within the program and not cut off
I have figured out how to fetch the text from all objects I need but I can't figure out the best way to go about comparing them to what they should be. Would it be best to import all the correct strings as Environment Variables or would it be best to import into the DataTable? Is there a way that I can get the only visible text and the full text to compare? Basically I need to figure out if strings are getting truncated by being too long. I would appreciate any help on this. Thanks.