Forum Discussion

Nformation's avatar
Nformation
Contributor
11 years ago

What is the best way to update all references to an object in a project?

We just did an upgrade that changed some objects and/or their hiearchy and I have over 300 tests to update. I've looked for the following options, but cannot figure out how to do them in TestComplete. Is there a way to do either of the following?

 

  1. Update the object that an alias maps to so that my tests can reference the same aliases (no refactoring required) but the aliases correclty point to the new objects. 
  2. Map the new object and then refactor all tests that use the old object to use the new object. For example, I would refactor all object actions or property checkpoints to use Aliases.MyApp.ObjectB instead of Aliases.MyApp.ObjectA

How can I achieve my goal without going through and redoing every affected checkpoint or object action in all of my tests? Thanks!

 

No RepliesBe the first to reply