Add Defect To QC from QTP that use the QCUtil.QCConnection sub
来源:互联网 发布:淘宝上拍卖会是真的吗 编辑:程序博客网 时间:2024/05/29 13:25
QTP执行时,有时我们可能想直接向QC/TD中添加defect, 那么具体怎么做喃?那么我将以两种方式来进行从qtp中提交defect
今天先用第一种方式. 下面是具体代码
' ==================================================================================
' description : Add Defect To QC from QTP that use the QCUtil.QCConnection sub ,This code page
' from manual , It working fine On TD8.2 and qtp10.00
' Questtion: can not support bug.description? resolve - - bug.field("DB_field") = "value",
' date : 2009-10-19
' Author : namesliu
' Note: This property is supported only when QuickTest is connected to Quality Center.
' ==================================================================================
Dim QCConnection
Set QCConnection = QCUtil.QCConnection 'Note: This property is supported only when QuickTest is connected to Quality Center.
'Get the IBugFactory
Set BugFactory = QCConnection.BugFactory
'Add a new, empty defect
Set Bug = BugFactory.AddItem (Nothing)
'Enter values for required fields
Bug.Status = "New"
Bug.Summary = "New defect"
Bug.DetectedBy = "namesliu" ' user that must exist in the database's user list
BUG.field ("bg_DETECTION_DATE") = now
' Bug.description will be erro, bug.field("bg_description") is correct, so bug.filed is field in DB
bug.field("bg_description") = " the bug detected by QTP!"
Bug.Post 'Post the bug to the database ( commit )
- Add Defect To QC from QTP that use the QCUtil.QCConnection sub
- QTP连接QC时,通过QCUtil对象获取QC中的Test信息
- How To Use An Embedded Resource From A Sub-Folder
- Use the Stack mehod and a temporary Stack to retrieve entries from the Stack source and add
- Cannot add Controls from 64-bit Assemblies to the Toolbox or Use in Designers Within the Visual Stud
- qtp qc
- a interface to stack that implement use the fixed array.
- The robot API &&How to add and use sensor.
- Use grep to search certain content in the specified sub-directory.
- check the manual that corresponds to your MySQL server version for the right syntax to use
- How to use the Journal Import Correction Screen - from Metalink
- How to use FTP from the command line.
- use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command
- Use Java reflection to find classes that implement an interface from a package
- Could not use "Ocean configurator" to add the ocean module to the ocean module project
- How to add subview to a webview so that the subview would scroll along with webview?
- the best solution that you can add the emotion function to freetextbox
- Use xrandr to add screen
- vivi启动过程------s3c2440
- Flex坐标系统及转换
- PHP json_decode函数无法解析json2.js生成json的问题
- extjs学习笔记(四)带分页的grid
- 两次发布操作太快了,请等 20 秒钟再试
- Add Defect To QC from QTP that use the QCUtil.QCConnection sub
- 获取子窗口的位置 GetWindowRect
- MSSQL数据库损坏的修复命令DBCC简介
- php调试相关技术
- Oracle10g--SPFILE与PFILE【转】
- 理解devfs、sysfs、udev
- 有效授权的6个步骤 The Six Steps of Effective Delegation
- JAVA开发者最常去的20个英文网站{转载}
- MySQL配置文件my.cnf(my.ini) 例子最详细翻译