Forum Discussion
AlexKaras
11 years agoCommunity Hero
Hi Paul,
In addition to Tanya's reply, also consider if your test code uses: a) dynamic and/or b) waiting for namemapped element.
Simple code samples that illustrate the above (untested VBScript):
Assume that you need to get the reference to the Aliases.Project.Panel.Control namemapped element:
a)
Dim strControlName
Dim oControl
strControlName = "Control"
Set oControl = Evaluate("Aliases.Project.Panel." & strControlName)
b)
Dim strControlName
Dim oControl
strControlName = "Control"
Set oControl = Aliases.Project.Panel.WaitNamedChild(strControlName)
I.e.: Make a backup of your namemapping file first, then clean it and then immediately check if all tests are still can be executed.
In addition to Tanya's reply, also consider if your test code uses: a) dynamic and/or b) waiting for namemapped element.
Simple code samples that illustrate the above (untested VBScript):
Assume that you need to get the reference to the Aliases.Project.Panel.Control namemapped element:
a)
Dim strControlName
Dim oControl
strControlName = "Control"
Set oControl = Evaluate("Aliases.Project.Panel." & strControlName)
b)
Dim strControlName
Dim oControl
strControlName = "Control"
Set oControl = Aliases.Project.Panel.WaitNamedChild(strControlName)
I.e.: Make a backup of your namemapping file first, then clean it and then immediately check if all tests are still can be executed.