Monday, June 21, 2010

QTP QC integration: QCUtil

There is magic variable thats called QCUtil that gives you instant access to values in QC, if the QTP script was started from QC.

Example of Usage
Set currentTSTest = QCUtil.CurrentTestSetTest
currentTSTest.Field("TC_USER_11") = 4
currentTSTest.Post

Check if connected to Quality Center
If QCUtil.IsConnected Then
...
End If

All methods in QCUtil
CurrentRun - Returns the Quality Center OTA Run object, which represents the current run.
CurrentTest -
CurrentTestSet -
CurrentTestSetTest -
IsConnected -
QCConnection -

No comments: