Wednesday 6 September 2017

How to Load/Activate NameMapping at run time in TestComplete

Suppose In your project, If you have multiple Name Mapping Configuration or Multiple Name Mapping File (repository) and you wanted to load/activate any specific Name Mapping configuration at run time, then yes TestComplete allow us to do this.

To Load/Activate the specific Name Mapping configuration at run time

          NameMapping.CurrentConfigurationName = "My_NM_Config_Name"

To know the current loaded/Activated NameMapping configuration at run time-

          My_NM_Config_Name = NameMapping.CurrentConfigurationName


For get the count of NameMapping configuration at run time

          My_NM_Config_Count = NameMapping.CurrentConfigurationCount

We can determine the Number of NameMapping configurations , name by using Index at run time

          My_NM_Config_Name = NameMapping.ConfigurationNames(0)

Note - NameMapping.ConfigurationNames(Index) Specifies the index of the desired NameMapping configuration. The index is zero-based.



No comments:

Post a Comment