【问题标题】:Not able to make connection with HP ALM 12.53 using excel macro无法使用 excel 宏与 HP ALM 12.53 建立连接
【发布时间】:2018-05-27 10:46:25
【问题描述】:

我正在使用以下代码连接到 ALM 12.53,但无法连接,收到错误消息:

Active X 无法创建对象

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

【问题讨论】:

  • 是否有您应该添加的库/参考?
  • 我想我已经有了每个需要为此连接添加的库/参考。

标签: excel alm vba


【解决方案1】:

如果有更多信息,您的问题会更清楚,但也许您需要 ALM Explorer 插件

如果您无法下载 ActiveX 控件或您的浏览器限制了 ActiveX 组件的使用,

ALM Explorer 插件非常有用。使用 ALM Explorer 时下载的唯一组件是 ALM 组件。

注意: ALM Explorer 不支持 Performance Center 窗口,例如 Performance Test Designer、Performance Trending 或 MyPC。这些窗口在标准 Web 浏览器中打开。

(Source)

【讨论】:

  • 通过降级到 excel 版本 2010,解决了这个问题。感谢@ashleedawg 的回复。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-06-06
  • 1970-01-01
  • 2023-04-01
  • 1970-01-01
  • 2020-11-22
  • 1970-01-01
相关资源
最近更新 更多