Forum Discussion
pmiley123
14 years agoOccasional Contributor
Thank you for the response. I got the conditional name mapping to work but would still like to do accomplish this through a function so I can run one script on many process that may not be mapped.
Is there a way in Test Complete (using VBScript) to set a container object while changing the project name?
For example, this is the code I came up with but it won't compile:
'--------------------------------------------
function SetContainer(windowName)
Dim container
Set container = Aliases. + Project.Variables.processName + "." + windowName 'error here
SetContainer = container
end function
Is there a way in Test Complete (using VBScript) to set a container object while changing the project name?
For example, this is the code I came up with but it won't compile:
'--------------------------------------------
function SetContainer(windowName)
Dim container
Set container = Aliases. + Project.Variables.processName + "." + windowName 'error here
SetContainer = container
end function