Forum Discussion
AlexKaras
12 years agoChampion Level 3
Hi,
> Is there any other workaround [...]
No, it is not possible to reference a script unit from another project so that this referenced unit used NameMapping from its original project.
Three options are possible in your case:
a) Merge NameMapping from those two projects and continue with maintaining one common NameMapping;
b) Create a copy of the unit in another project and continue with maintaining two copies of code;
c) Do not use NameMapping in the scrit unit shared between several projects but use coded approach (Find, FindChild, EvaluateXPath, ...) to search for and operate with the tested objects.
> Is there any other workaround [...]
No, it is not possible to reference a script unit from another project so that this referenced unit used NameMapping from its original project.
Three options are possible in your case:
a) Merge NameMapping from those two projects and continue with maintaining one common NameMapping;
b) Create a copy of the unit in another project and continue with maintaining two copies of code;
c) Do not use NameMapping in the scrit unit shared between several projects but use coded approach (Find, FindChild, EvaluateXPath, ...) to search for and operate with the tested objects.
Related Content
- 2 years ago
Recent Discussions
- 4 hours ago