I am evaluating Test Partner and would like to know the best way of implementing test scripts for testing the same application in different languages.
I am currently using Visual Test where I pass in a Localized string or an Ordinal value to the control. ie WButtonClick("@1") would click the OK button.
Is it possible to use Ordinals or index position to identify the control?
I believe the object maps might do the trick, as long as the Caption is not used as recognition. You then call the control something useful and unique and then use that throughout your script, if the index changes you change it in the object map once and it doesn't rely on any language. There are settings in the Options to use object map entries as opposed to raw attach names.
For instance you have an editbox that you 'Identify' on the screen, it will trap the properties related to it, you'll see it takes the class name, index, ID possibly and others.
You use the object name you defined throughout afterwords to do anything with the control. ie. you call an object map entry 'Main Form - First Name' for an editbox you 'identified' on the screen. You use this afterwards to type in that control:
EditBox("Main Form - First Name").Type "Max"
One caveat, if your application uses control arrays, you can not expect to capture the controls using point and click afterwards since that combination of class and id and object name might be the same for several controls across your application.