一、Cannot find the "shoujian.projectname" object's parent "10_2" (class Frame). Verify that parent properties match an object currently displayed in your application.问题的解决。
这个问题真是郁闷,其实产生的 主要原因是: 在录制脚本的时候,qtp没有识别出来框架Frame中的对象,回放时找不到对象出错。
解决办法:通过object spy 识别对象 并将其添加到对象库;然后在录制点击对象的一段脚本(或者自己写),再次回放就ok了。
二、注意:datatable.Importsheet "D:\test\USER_INFO.xls",1, "Action1" 中, "Action1"一定要加双引号,要不然默认导入到Global中。
三、自动启动qtp的vbscript脚本。
dim qtapp
Set qtapp=createobject("QuickTest.application")
qtapp.Launch
qtapp.visible=true
用法:将脚本卸载记事本文件中,文件格式保存为 .vbs 点击直接运行。就可以自动启动qtp。
四、描述性编程中出现“ The “[WinEdit]”object's description ,matches more than one of the objects currently displayed in your appliction.Add addtional properties to the objects ddescription in order to uniquely identify the object.”中问题的解决。
这个问题看起来其实很简单就是在QTP描述过程中,发现匹配该对象的属性多于1个,因此无法正确匹配,所以QTP报错。错误如图下:
问题解决方法:
添加更多的对象属性,以
这个问题真是郁闷,其实产生的 主要原因是: 在录制脚本的时候,qtp没有识别出来框架Frame中的对象,回放时找不到对象出错。
解决办法:通过object spy 识别对象 并将其添加到对象库;然后在录制点击对象的一段脚本(或者自己写),再次回放就ok了。
二、注意:datatable.Importsheet "D:\test\USER_INFO.xls",1, "Action1" 中, "Action1"一定要加双引号,要不然默认导入到Global中。
三、自动启动qtp的vbscript脚本。
dim qtapp
Set qtapp=createobject("QuickTest.application")
qtapp.Launch
qtapp.visible=true
用法:将脚本卸载记事本文件中,文件格式保存为 .vbs 点击直接运行。就可以自动启动qtp。
四、描述性编程中出现“ The “[WinEdit]”object's description ,matches more than one of the objects currently displayed in your appliction.Add addtional properties to the objects ddescription in order to uniquely identify the object.”中问题的解决。
![qtp <wbr>问题汇总(不断更新)<一> qtp <wbr>问题汇总(不断更新)<一>](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
问题解决方法:
添加更多的对象属性,以