QCUtil - QTP

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
End Select

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

QTP Topics