【发布时间】:2013-10-16 16:25:05
【问题描述】:
我正在尝试让soapUI 和ALM 进行通信。我终于得到了scriptom setup correctly,甚至得到了 HP OTA ALM 参考。但是我有一些疑问......
- 参考资料说
您必须在将与 ALM Platform 通信的每个工作站上下载并注册 COM 库
我不可能只将 OTAClient.dll 添加到 java.library.path 或其他地方并使其工作。我问这个是因为当脚本完成时,并不是脚本的所有用户都没有管理员权限来注册 dll。尽管他们肯定会拥有 dll,因为只要有人在他们的机器上打开 ALM,就会下载它。
自从我需要创建一个程序来通过程序访问 QC 或 ALM 已经有几年了,但以前我只会创建一个 ActiveXObject(使用 vbs)然后从那里开始,不需要注册或任何东西。
- 由于某种原因,我的以下代码无法正常工作,有什么建议可以解决吗?
代码:
import org.codehaus.groovy.scriptom.*;
def tdc = new ActiveXObject('TDApiOle80.TDConnection')
错误:
org.codehaus.groovy.scriptom.ActiveXObject$CreationException: Could not create ActiveX object: 'TDApiOle80.TDConnection'; Can't co-create object error at line: 3
---更新-- 自从发布这个问题以来,我尝试注册 API 参考文档中提到的 dll,但仍然得到与之前相同的错误,所以我还有两个问题:D
根据 ALM 的 API 参考 chm doc 注册 dll 的步骤
To use the Open Test Architecture API as a stand-alone tool, develop your own applications in a development environment that supports COM. You must download and register the COM library on every workstation that will communicate with the ALM Platform. You must have a reference to the library in your application development project.
The library, OTAClient.dll, is automatically downloaded to your workstation the first time you run ALM.
Register the library for the server by running Client Side Connectivity from the ALM Add-ins page. Select Add-ins from the Help menu. On the Add-ins page, select Client Side Connectivity, and click Download Add-in. You may need to repeat the registation if you use a different version of ALM or Quality Center 9.2 or later.
其他问题... 1. 如何检查 dll 是否已实际注册,以及 64 位版本而不是 32 位版本? 2. 使用 ALM 公开的 Rest API 来做我想做的事情会更容易吗?我希望代码能够与 ALM 和 QC9.0 一起使用。
【问题讨论】:
标签: groovy soapui hp-quality-center scriptom