replacong old actions
I'm working with QTP 9.1. I want to replace a call for an old version of an external action to a new version (which have the same name, but is located elsewhere). The only way I managed to do so is first to delete the old call (in keyboard view) and only than insert the call to the new action. If I just put the old call in remark, or delete it in expert view, and than insert the new call I still get the old version inserted to the test and not the new one.
Is there a more convenient way to replace actios ?
Is there a way to do it automatically ?
Re: replacong old actions
When you load a script into 9.x, you'll get a warning about any missing resources (directory was changed, name was changed) and be presented with a list. You can double-click on the list and reset the locations or remove them completely from the script.
You could move or delete the old action that you want to point elsewhere and when the script loads, it'll prompt you about the missing resource. When that happens, you can "reassociate" the external action. Technically, you're not reassociating things, but instead are forcing the script to recognize the new action location.