Forum Discussion

chase_uyeda's avatar
12 years ago

Changing referenced mapped objects in Keyword Tests

Hello,



Is there a way to edit the mapped object (alias?) that is used in a Keyword Test? In my simple example, I have a test that recorded javaw1 -> frame0 -> MainMenu.click("MenuItem").



However, the name mapping (alias?) I actually want to use is javaw. This is easy enough to do in a script test. However, it does not seem possible in a keyword test.



Another question comes to mind as a result of this behavior, that maybe somebody can shed some light on:



When recording a test, why is TestComplete creating a different name mapping object anyway? My 'javaw' name mapping object has Path as a mapping criteria, and not Index, so I would think any javaw processes running from that Path would get mapped to my javaw object during recording; why would TestComplete create a new name mapping for it at all?



Thank you,

Chase

1 Reply