共 21 篇文章
显示摘要每页显示  条
转QTP连接MySQL1.首先安装mysql数据驱动,qtp在windows系统下操作连接mysql,所以下载mysql-connector-odbc- 5.1.8-win32.msi 下载地址:http://mysql.mirrors.pair.com/Downloads/Connector-ODBC/5.1/mysqlconnector-odbc-5.1.8-win32.msi.
注:QTP在录制脚本时,如果通过主属性与辅助属性已能够唯一识别对象,则不会获取对象的ordinal identifier顺序值。但是,如果一个WebElement对象的Index属性值为3,则QTP查看程序页面中的第4个Web对象,而不管对象是属于Web对象的哪种类型,因为WebElement对象可以是任何Web对象。WebElement("Name:=UserName", "Index:=0"...
手动添加对象至对象库时,这里QTP会启动对象选择模式(Object Selection Mode),从而对你选择的对象进行添加。在对象库窗口,选择[Export Local Objects]命令,便可以把对象库以tsr格式的文件导出到本地。在项目过程中,如果对象库是分裂状态的,最好是将其生成统一的对象库,其目的是为了让测试团队更好的维护和调用对象库。[Primary file]与[S...
QTP--SystemUtil对象 SystemUtil对象的几个常用方法:1. "SystemUtil.Run"syntax: SystemUtil.SystemUtil.run"notepad","F:\食普.txt" 或者打开网页:Dim strURL strURL="www.baidu.com" SystemUtil.2. "SystemUtil.BlockInput" and "SystemUtil.Unblo...
QTP下Datatable Methods.Datatable Methods are used for performing the operations on the runtime datatable.Import:-It is used for importing all the sheets from Excel sheet to runtime datatable.ImportSheet:-It is used for importing a specified sheet from Excel sheet to runtime datatable.ExportSheet:-It is used for export...
Err对象保存了“错误信息”下面结合例子讲解On Error Resume Next,On Error Goto 0,Err这三者没有加上On Error Resume Next语句。一个子程序中如果没有On Error Resume Next语句,那么当错误在子程序中出现时,将会中断这个子程序的运行,跳转到调用这个子程序的外层程序.如果这个外层程序在“出问题的函数调用”之前包含有On Error Resume Nex...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部