Ask a Question

Best way to refactor NameMapping

sirping
Occasional Contributor

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. 

2 REPLIES 2
rraghvani
Valued Contributor

This also frustrates me too 😠. I also do search and replace, not great, but it works.

 

Kitt
Regular Contributor

I fully support this; so much so, I created a new feature request to add a 'Replace All" solution [give it a thumbs up]

[[ kITt: keep IT testing ]]
cancel
Showing results for 
Search instead for 
Did you mean: