coharness
6 years agoOccasional Contributor
Cannot find dotNET child objects
I have a project that I was able to run in TestComplete 12. I recently installed TC 14 onto a new computer and copied the scripts into a new project. Now, I'm getting a JavaScript runtime error that the object I'm trying to use is undefined.
My code is simple:
dotNET.System_Management_Automation.PowerShell.Create().AddScript(command).Invoke()
but now it can't even compile because the System_Management_Automation object is undefined.
I did add the System.Management.Automation assembly to the CLR Bridge as instructed here. The code completion window shows absolutely nothing for dotNET after I hit the period (it does autocomplete dotNET, nothing after).
What am I missing to get PowerShell functional again?