Forum Discussion

sathish_subrama's avatar
sathish_subrama
Occasional Contributor
13 years ago

name mapping and aliases in test complete

Functionality difference between name mapping and aliases in test complete

1 Reply

  • Think of an alias as a short/friendly name to a mapped object. Say the mapped HTML element TABLE is 20 layers deep in the DOM. You can give that specific element a friendly name (alias) of 'dataTable' and the use it in code with something like:

    var table = Aliases.dataTable;

    instead of

    var table = NameMapping.Sys.Browsers.xx.xxx.xxx.xxx.xxx.... and so on.



    It's a way to simplify your code to make it more readable.