共 21 篇文章 |
|
阅39 转自杨柳1234 公众公开 12-07-31 04:26 |
转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. 阅226 转6 评1 公众公开 12-05-15 02:55 |
阅167 转1 评0 公众公开 12-02-07 14:36 |
注:QTP在录制脚本时,如果通过主属性与辅助属性已能够唯一识别对象,则不会获取对象的ordinal identifier顺序值。但是,如果一个WebElement对象的Index属性值为3,则QTP查看程序页面中的第4个Web对象,而不管对象是属于Web对象的哪种类型,因为WebElement对象可以是任何Web对象。WebElement("Name:=UserName", "Index:=0"... 阅939 转9 评0 公众公开 12-02-07 09:21 |
手动添加对象至对象库时,这里QTP会启动对象选择模式(Object Selection Mode),从而对你选择的对象进行添加。在对象库窗口,选择[Export Local Objects]命令,便可以把对象库以tsr格式的文件导出到本地。在项目过程中,如果对象库是分裂状态的,最好是将其生成统一的对象库,其目的是为了让测试团队更好的维护和调用对象库。[Primary file]与[S... 阅3377 转21 评0 公众公开 12-02-07 00:24 |
阅2635 转19 评0 公众公开 12-02-04 05:54 |
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... 阅1741 转9 评0 公众公开 12-02-04 05:19 |
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... 阅194 转1 评0 公众公开 12-01-28 00:14 |
Err对象保存了“错误信息”下面结合例子讲解On Error Resume Next,On Error Goto 0,Err这三者没有加上On Error Resume Next语句。一个子程序中如果没有On Error Resume Next语句,那么当错误在子程序中出现时,将会中断这个子程序的运行,跳转到调用这个子程序的外层程序.如果这个外层程序在“出问题的函数调用”之前包含有On Error Resume Nex... 阅8063 转12 评0 公众公开 12-01-14 12:50 |