I'm struggling to use QTP to create test data in a VB front end app. The app has dynamically changing dialog boxes - a new text name for the dialog box every half hour so need a way to identify the text property so QTP will recognise the object:
Example of what gets recorded below when I select the first field I want to enter values into
Window("GlobalVision").WinObject("AfxFrameOrView80 su").DblClick 332,92
Window("GlobalVision").Dialog("UK APX Power HH100827-28").WinEdit("Edit").Set "50"
I need to establish the Dialog text "UK APX......" property and then continue to enter data into a series of similiary unknown named cells.
QTP help seems to point me in the direction of GetROProperty but without knowing the Dialog name how can I get the property?
It's bad style use coordinates when you try to click on something. I recommend you to search another way for this operation. It's possible.
If you have the series of similar unknown named cells you can use "index" property (descriptively). "Index" starts from 0.
Also you can collect the set of the similar objects (oriented on "micclass", "type" or similar general properties - it depends on certain situation) and then operate each of them (via cycles or directly define the ID of the element you want to use).