qtp
上帝De助手
人生苦短,及时行“乐”!
展开
-
QTP中读写xml的组件
QTP中读写xml可以使用其自带的组件,下面是简单的使用脚本。 ''' '''The class use to write data for test result report ''''===========Demo to use this class===================== 'Dim xmlobj 'Set xmlobj = new XML 'xmlobj.init 'x原创 2012-06-04 13:20:59 · 1464 阅读 · 0 评论 -
QTP中VBS调用数据库的方式【mysql,sqlserver,oracle,excel】
Option Explicit Dim oDataBase Set oDataBase = new DataBase Dim sDBName, sSQL, RS '''To Read Mysql Data 'sName = "Mysql.ProductDB" 'sSQL = "select * from Products_Core limit 0,10;" 'print oDataBase.St原创 2012-06-13 18:18:13 · 2626 阅读 · 0 评论 -
QTP中report对象的封装
''The class use to report result ''''===========Demo to use this class===================== 'Dim oReporter 'Set oReporter = new Report 'oReporter.Set_Parent_Node("in") 'oReporter.Pass "test", "testpas原创 2012-06-13 18:22:11 · 2098 阅读 · 0 评论