You may remember that this object was used in the "Working with Quality Center" chapter. The only change made to this object is that TDConnection property has now been renamed to QCConnection. So any places where we were using QCUtil.TDConnection, we now need to use QCConnection. If you want to create version independent scripts you can use the following approach:
'Check the version of QTP on which code is running
Select Case Environment("ProductVer")
Case "8.©", "8.1" , "8.2"
Set TDConnection = QCUtil.TDConnection
Case "9.0", "9.1", "9.2", "10", "11"
Set TDConnection = QCUtil.QCConnection
Using Qtp Help
Qtp Environment Variables
Descriptive Programming (dp)
Debugging In Qtp
Working With Apis
Qtp Automation Object Model
Working With Xml
Working With Databases
Working With Microsoft Excel
Working With Microsoft Outlook
Working With Microsoft Word
Working With Microsoft Internet Explorer
Working With Hp Quality Center
Working With .net Classes
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.