我正在努力使soapUI和ALM进行交流。我终于得到了scriptom setup correctly,甚至得到了HP参考。但是我有几个疑问..。
您必须在与ALM平台通信的每个工作站上下载并注册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--Update--自从发布这个问题以来,我尝试注册API参考文档中提到的dll,但是仍然得到了与前面相同的错误,因此我还有两个问题:D
按照ALM的API引用注册dll的步骤chm
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来做我想做的事情会更容易吗?我希望代码能够使用ALM和QC9.0。
发布于 2013-10-16 08:25:05
希望这能有所帮助!
发布于 2013-09-19 10:26:49
从HP ALM 11开始,OTAClient.dll不再默认注册。要注册它,您需要用户从插件页面这样做。可以从/qcbin/上的链接访问它。如果我没记错的话,它被称为公共或共享部署,它需要管理权限。
https://stackoverflow.com/questions/18852600
复制相似问题