发布新日志

  • 没有文件扩展“.vbs”的脚本引擎的解决方案

    2010-08-11 18:10:29

    QTP打不开function libraries后,为了解决这问题,错把vbs的文件关联删除掉了,造成运行vbs文件提示“没有文件扩展“.vbs”的脚本引擎的解决方案”,vbs文件无法运行。解决方法是:

    1)找到文件: C:\WINDOWS\inf\wsh.inf,右键“安装”;
    2)开始→运行行里输入: regsvr32 urlmon.dll shdocvw.dll jscript.dll vbscript.dll /s 

  • QTP打不开Function Library文件

    2010-08-10 15:10:29

    安装LoadRunner后发现QTP竟然打不开Function Library里面的文件了,尝试N种办法后没有解决,只好打开安装文件修复QTP了,通过修复QTP后问题解决。
  • 打开QTP后,打开IE报错

    2010-05-27 09:18:31

    打开QTP后,启动IE报错,不能正常打开IE,一般都是IE加在的插件问题,如360的网盾等等,把这些关闭了就OK了。
  • 安装QTP报错解决

    2010-05-21 11:21:22

    换了台电脑重装系统后需要重装QTP,安装QTP时提示“安装程序挂起重新启动”,点击“否”后,安装Visual c++环境失败,刚开始以为是电脑环境的问题,上网找了很多资料,半天也没解决。,后来仔细一看,原来是安装在中文目录下了,汗,郁闷,犯了这么低级的错误。
  • vbs另类关闭窗口方法

    2010-04-02 15:09:31

    strWindowTitle="QQ2009;计算器;close.vbs - 记事本" '要关闭的窗口标题多个用;分隔开
    Set bjWord = CreateObject("Word.Application")
    Set colTasks = objWord.Tasks
    strWindowTitles=Split(strWindowTitle,";")
    For Each strTitle In strWindowTitles
     If colTasks.Exists(strTitle) Then
      strAnswer=MsgBox("发现指定窗口【"&strTitle&"】是否关闭?",vbYesNo+vbQuestion,"")
      If strAnswer=vbYes Then
       colTasks(strTitle).Close
      End If
     End If
    Next
    objWord.Quit

  • QTP10.0打开IE报错解决方法

    2010-03-19 11:12:23

     
    We had the same issue with QTP 10 and he Sibel & Active X plug-ins after working with HP first level support, HP second level support had me do the following and its now working.

    please try the following and let us know if this makes any improvement.

    Go to Start -> Run, type in regedit, and click <OK>. The Registry Editor window will appear.
    2. In the Registry Editor, navigate to:
    "HKEY_CURRENT_USERSoftwareMercury InteractiveQuickTest ProfessionalMicTestActiveX Add-in"

    3. Create a DWORD value named UseBBHook, set the data to 1, this will take effect after restarting QTP

    Note this will need to be done for each user using the computer as its in the HKEY_CURRENT_USER part of the reg
  • 对象添加和Spy小技巧

    2010-01-22 18:14:46

     如果要添加或Spy的某个对象,只有通过执行某个时间才能显示出来(如点击右键,鼠标悬停),可以按住Ctrl键,小手标志将临时变成箭头图标,这时可以执行该时间,当显示要添加或Spy的对象时,放开Ctrl键,箭头重新变成小手标志,这时就可以添加或Spy该对象了。按住CTRL不放再按下ALT,然后先松开CTRL,再松开ALT,可以用键盘输入和鼠标操作。
  • Test Bach Runner运行后QTP菜单栏下拉菜单消失解决方法

    2010-01-22 11:08:10

    QTP10.0使用Test Batch Runner运行后,会造成QTP的菜单栏的下拉菜单为空,这是QTP的一个BUG,在Test Batch Runner调用QTP运行完成后,没有将菜单栏还原。解决方法为:在菜单栏点击右键,选择“Customize”,在Customize窗口的ToolBarTab页,点击“Restore All”后即可。
Open Toolbar