使用Com4从Java进行QC连接 [英] QC Connection from Java using Com4

查看:311
本文介绍了使用Com4从Java进行QC连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下代码连接到QC:

I am trying to connect to QC using code below :

ITDConnection2 QCconn= ClassFactory.createTDConnection();
QCconn.initConnectionEx(Parameters.QC_URL);
QCconn.login(Parameters.QC_USERNAME, Parameters.QC_PASSWORD);
QCconn.connect(Parameters.QC_DOMAIN, Parameters.QC_PROJECT);

但是我在线上获得例外

ITDConnection2 QCconn= ClassFactory.createTDConnection();

异常:
com4j.ComException:80004002 QueryInterface失败:不支持此类接口:。 \\ com4j.cpp:163

Exception: com4j.ComException: 80004002 QueryInterface failed : No such interface supported : .\com4j.cpp:163

我在我的电脑上安装了QC。我也在其他PC上遇到同样的错误。

I have QC install on my PC. I am gettign same error on other PCs as well.

推荐答案

我们通过重新安装质量中心11.52解决了这个问题并运行了IE管理员模式,它将TDConnect插件添加到QC,然后连接到QC的java程序。

We resolved this issue by reinstalling Quality center 11.52 and run the IE in admin mode and it added the TDConnect plugin to QC , then java program connected to the QC.

这篇关于使用Com4从Java进行QC连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆