Forum Discussion

sirping's avatar
sirping
Occasional Contributor
2 years ago

Best way to refactor NameMapping

What is the best practice for refactoring Aliases in the NameMapping. 

If I want to change from this.

Aliases.browser.Page.Object

to:

Aliases.browser.Page.Folder.Object

 

I currently use Notepad++ to just replace any occurrences of the original Alias with the new one. Is there a better way to do this. And also why in gods name does TestComplete not support this. This is one of the most basic things any IDE should do. TestComplete currently only updates the Alias in KeywordTests but not in any scripts, not in any Code Execution Blocks, not in any Script Parameters, nothing... The current feature is useless, if it doesn't get updated everywhere.