梦之安魂曲 发表于 2009-9-10 18:09:39

QC远程调用QTP执行脚本时,提示“拒绝访问”!

QC安装在A机器,QTP安装在B机器
1、登陆B机器通过web访问QC,然后在QC上调用QTP执行测试用例,成功
    运行日志如下:
    {
    0: "header",
    db: "CMSTest",
    user: "administrator",
    cycle: "default"
    }

    {
    type: "1",
    date: \00000015\2009/09/10 - 16:52:37,
    testid: "23",
    testname: "LoginError",
    hostname: "chinahlq",
    description: "主机已连接"
    }

    {
    type: "3",
    date: \00000015\2009/09/10 - 16:53:44,
    testid: "23",
    testname: "LoginError",
    hostname: "T80001-11",
    description: "Test run passed."
    }

2、登陆A机器通过web访问QC,然后在QC上调用QTP执行测试用例,提示“拒绝访问”
    运行日志如下:
    {
    0: "header",
    db: "CMSTest",
    user: "administrator",
    cycle: "default"
    }

    {
    type: "2",
    date: \00000015\2009/09/10 - 16:50:19,
    testid: "23",
    testname: "LoginError",
    hostname: "chinahlq",
    description: "拒绝访问。"
    }

3、登陆另外一台C机器通过web访问QC,然后在QC上调用QTP执行测试用例,提示“无法获取测试类型 <QUICKTEST_TEST> 的 RemoteAgent 的 ClassID”
    运行日志如下:
    {
    0: "header",
    db: "CMSTest",
    user: "administrator",
    cycle: "default"
    }

    {
    type: "2",
    date: \00000015\2009/09/10 - 17:29:06,
    testid: "24",
    testname: "Login",
    hostname: "chinahlq",
    description: \00000031\无法获取测试类型 <QUICKTEST_TEST> 的 RemoteAgent 的 ClassID
    }

请问这是怎么回事?先拜谢了~~!

梦之安魂曲 发表于 2009-9-11 11:10:23

自己顶一下~~ 不要沉了啊~~

heavy200t 发表于 2009-9-11 17:53:17

1、QC for QTP的插件是否安装?
2、检查一下QTP选项:allow HP products to run tests and components是否开启?

aishifu1 发表于 2009-9-12 14:57:19

第一种情况:正常。
第二种情况:查看B机器上的QTP Agent是否启动。
第三种情况:C机器上没有安装QC for QTP的插件是否安装。

梦之安魂曲 发表于 2009-9-15 11:26:50

原帖由 aishifu1 于 2009-9-12 14:57 发表 http://bbs.51testing.com/images/common/back.gif
第一种情况:正常。
第二种情况:查看B机器上的QTP Agent是否启动。
第三种情况:C机器上没有安装QC for QTP的插件是否安装。

谢谢楼上的回答~~
QTP上的TDPlugin和QC插件页中的所有插件已经安装,并打开“Allow other Mercury products to run tests and components”选项
第三种情况依然
第二种情况在网上查了一下,是由于在A机和B机上远程调用QTP时的用户权限不一样,需要设置DCOM权限,现在我把QTP所在机器A的所有用户和用户组的权限都完全开放(远程访问、远程启动、远程激活、完全控制),已经不提示“拒绝访问”了,但提示为“Unable to connect the testing tool to the requested Quality Center server”。
查看RemoteLog,日志记录如下:
OK: 09/10/09 , 18:56:18:640 : run Start File Line=652 ThreadId=2944
--------------------------------------------------------------------------------
OK: 09/10/09 , 18:56:18:640 : Begin InitiateQTP File Line=81 ThreadId=2944
--------------------------------------------------------------------------------
OK: 09/10/09 , 18:56:18:640 : Begin ConnectTulipToCorrectServer File Line=524 ThreadId=2944
--------------------------------------------------------------------------------
OK: 09/10/09 , 18:56:18:640 : Connected server details: Server = http://129.168.250.18:8080/qcbin, Domain = CMS File Line=558 ThreadId=2944
--------------------------------------------------------------------------------
OK: 09/10/09 , 18:56:18:640 : Connected server details: Project = CMSTest, UserName = h90002191 File Line=559 ThreadId=2944
--------------------------------------------------------------------------------
OK: 09/10/09 , 18:56:18:640 : ConnectTulipToCorrectServer - need to disconnect we are connected to the wrong QC File Line=567 ThreadId=2944
--------------------------------------------------------------------------------
Error: 09/10/09 , 18:56:18:921 : Exception caught! Hr=0x80020009. Msg=Connection is not available File Line=589 ThreadId=2944
--------------------------------------------------------------------------------
Error: 09/10/09 , 18:56:18:921 : ConnectTulipToCorrectServer : Failed to connect to QT to TD File Line=592 ThreadId=2944
--------------------------------------------------------------------------------
Error: 09/10/09 , 18:56:18:921 : InitiateQTP : Failed to ConnectTulipToCorrectServer File Line=121 ThreadId=2944
--------------------------------------------------------------------------------
OK: 09/10/09 , 18:56:18:921 : Begin CloseQTP : bForce = 0 File Line=1459 ThreadId=2944
--------------------------------------------------------------------------------
OK: 09/10/09 , 18:56:18:921 : End CloseQTP File Line=1540 ThreadId=2944
--------------------------------------------------------------------------------
Error: 09/10/09 , 18:56:18:921 : run : InitiateQTP failed File Line=675 ThreadId=2944

实在是不知道怎么回事~~ 快崩溃了~~

heavy200t 发表于 2009-9-15 23:01:34

OK: 09/10/09 , 18:56:18:640 : ConnectTulipToCorrectServer - need to disconnect we are connected to the wrong QC File Line=567 ThreadId=2944
--------------------------------------------------------------------------------
Error: 09/10/09 , 18:56:18:921 : Exception caught! Hr=0x80020009. Msg=Connection is not available File Line=589 ThreadId=2944

问题似乎在这里,通过A机器QTP是否能连接QC?

事实和胜利 发表于 2011-12-15 23:07:38

也遇到了相同的问题~~求解释~~
页: [1]
查看完整版本: QC远程调用QTP执行脚本时,提示“拒绝访问”!