How to make Testpartner to record an object with particular property other than default when we capture that object.
For example testpartner identifies Html table indefault as
I want the tespartner to recognise table object as caption, name not as id and index. Also my aim is the testpartner should recognise the object even if the position of table is changed in run time. The index value is randomly changed means how to make the tespartner to recognise that situation
From TestPartner Help:
Attach Name profiles give you full control of how objects are recorded in scripts. For each group of objects, you can determine which object types you want to modify, whether the object will record as a Raw Attach Name or Object Map entry, what the object's properties of interest are, and when to enforce recording properties of interest. You can also activate and deactivate any profiles you create, set a profile to operate only with certain applications, and change the hierarchical order in which active profiles operate.
I have tried with Manage Attach Name profiles. Even after enforcing Caption it does not sometimes identifies object with Caption Property.
Also how do you set the property of an object runtime?e.g Htmltable("index=2")if I want to set its ID to the value stored in variable how todo that?
Sometimes objects do not have captions. In this cases TestPartner cannot identify them by the caption.
Sometimes many objects have the same caption. In this case TestPartner identifies them by attributing them different indexes (in addition to the caption), which may change when their order on the window changes.
If caption are not there in the code and indexex are changing then how to write a robust cde?e.g.
HTMLTD("index=3") is the code generated after recording then if index change next time and script will nnot work?