我正在使用以下代码连接到 ALM 12.53,但无法连接,收到错误消息:
Active X can't create object
Private Sub BtnAuthenticate_Click()
errmsg = "No Error"
On Error GoTo ErrorHandling
Set tdc = CreateObject("tdapiole80.TDconnection")
MsgBox ("Connect to QC Server")
Set WSConfig = ThisWorkbook.Worksheets("ALM Express")
If tdc.Connected Then
Set tdc = Nothing
End If
tdc.InitConnectionEx (Trim(WSConfig.Cells(3, 6).Value))
Strusrnme = WorksheetFunction.Trim(TxtUserID.Text)
strpwd = TxtPWD.Text
errmsg = "Authentication failed. verify your UserID and Password"
tdc.Login Strusrnme, strpwd
'...
End Sub
尽管我已成功安装 HP ALM 连接工具插件,并且可以看到该文件夹在我的 c 驱动器中创建了“Mercury Interactive”。
C:\Program Files (x86)\Common Files\Mercury Interactive
最佳答案
如果有更多信息,您的问题会更清楚,但也许您需要 ALM Explorer 加载项 ?
ALM Explorer Add-In is useful if you are unable to download ActiveX controls or if your browser restricts the use of ActiveX components. The only components that are downloaded when you use ALM Explorer are ALM components.
Note: ALM Explorer does not support Performance Center windows, such as the Performance Test Designer, Performance Trending, or MyPC. These windows open in a standard Web browser.
(Source)
关于excel - 无法使用 excel 宏与 HP ALM 12.53 建立连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50551338/