QTP问题


1. QTP的Debug那个下拉菜单是灰色的 :

QTP安装目录下 tools里第一个:Addtional InstallationRequirements重新load一下;就在装license之前的那步重新装了一下.

 

2.QTP support forFirefox version 11

InstalltwoQTP patches:QTPWEB_00090,QTPWEB_00092;

Downgrade(oppositeofupgrade)the FF to version 11: uninstall FF version 23, install FF 11and setnotto upgrade.

AllowFF install QTPadd-in.

Firstopen QTP,thenopen your desire url.

 

2.2 QTP 11 support IE9 

QTP 11only supports IE8. You should use IE8 for your testing.

 I was happy tolearn today that HP justreleased a patch : QTPWEB_00078.

 

3. QTP - Menu bar /Menu Items missing.Themenu bar disappears or some menu items disappear. 

To enable missing items or display all menu items in thetool bar,follow the following steps:-

3.1. Right click anywhere in the tool bar area.

3.2. Click Customize

3.3. Go to toolbars tab

3.4. Click on Restore all button.

To enable missing items or display all menu items in themenu bar,follow the following steps:-

3.1. Go to Start page of QTP

3.2. Go to Tools-->Options

3.3. In the general section, click on Restore Layout button.

 

4. ALM/QC Lock

'Must Set up your ALM / QC connection first IE login via the file>ALM/QC Connection

Set QCConnection=QCUtil.QCConnection

Set con=QCConnection.command

con.CommandText="DELETE FROM LOCKS WHERE LK_USER ='user_name'"

Set recset=con.execute

 

 

5.碰到的问题:

5.1 ALM/QC-TestLab-跑脚本,会有“unspecified error“的错误:

     检查QTP的license;

5.2 ALM/QC-TestLab-跑脚本,会有“You do not have permissions to run tests on this machine...“的错误:

     检查脚本和QTP的: In the QTP-Options dialog in QTP, check the box Allowother HP products to run...

5.3 ALM/QC-TestLab-跑脚本,会有“Unable to run the test "的错误:


5.4 ALM/QC-TestLab-跑脚本,会有”Access is denied"的错误:

改变机器的配置,下面的资料都参考并实践了,不知道是哪个帖子解决的。

http://www.cnblogs.com/juddhu/archive/2012/02/16/2354737.html

http://www.addictivetips.com/windows-tips/windows-7-access-denied-permission-ownership/

http://technet.microsoft.com/en-us/library/cc771689.aspx

http://technet.microsoft.com/en-us/library/cc771689.aspx


 

6.禁掉IE升级弹出框

Step 1.  Run services (services.msc)

Step 2. Choose update (windows update)

Step 3. Close update (double click stop button)

Step4. After you closed update, please restart pc.

 

7. 如果是用seat license, QTP 显示Error, 可以查看license服务器情况(哪些客户端占用了license):
在QTP安装文件夹中有个工具 “WlmAdmin.exe”。

8.新脚本默认的头注释和代码:

1.       Go to the installation folder, and create a file named “ActionTemplate.mst” in “dat” folder.

By Default: “C:\Program Files (x86)\HP\QuickTest Professional\dat”

2.       Edit the “ActionTemplate.mst”, write some template comments or code.

3.       Re-open the QTP, or create a new QTP action, then it works.

Refer to:http://www.learnqtp.com/action-template-qtp/



9.DataTable.GetRowCount = Excel Total Row Count = 几千行
如果QTP得到的数据是几千的话, 说明Excel的usedRange是到最后一行. 在Excel里面, 用Ctrl+End来确认最后一行; 原因是Ctlr+down之后.不小心输入再删掉了.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值