I'm not sure that this is the correct forum to place this in. Please feel free to move it if needed...
I have a task to create a new script using powershell and the OTA. When trying to log into quality center via the open test architecture in powershell I get this error.
This is the code that I am using.
This code currently works in a script written with VBscript. I am just modifying the td variable to use powershell instead of vbscript. Do you all have any idea what it is that is causing this not to run? Also, Is powershell compatible with the OTA? I am assuming so only because the OTA is a COM package.
I have a task to create a new script using powershell and the OTA. When trying to log into quality center via the open test architecture in powershell I get this error.
At my computer char:22+ $td.InitConnectionEx $qualityCenterLink
+ ~~~~~~~~~~~~~~~~Unexpected token '$qualityCenterLink' in expression or statement.
At my computer char:11+ $td.Login $qualityCenterUsername, $qualityCenterPassword+
~~~~~~~~~~~~~~~~~~~~~~
This is the code that I am using.
$td = New-Object -ComObject "TDApiOle80.TDConnection"
$td.InitConnectionEx $qualityCenterLink
$td.Login $qualityCenterUsername, $qualityCenterPassword
This code currently works in a script written with VBscript. I am just modifying the td variable to use powershell instead of vbscript. Do you all have any idea what it is that is causing this not to run? Also, Is powershell compatible with the OTA? I am assuming so only because the OTA is a COM package.