Connecting to the QC Tabs through QTP codes
Can i connect to the Test Lab or Test plan by QTP scripts?
Somehow i managed to connect to the Defects tab through the below code.
Set QCConnection = QCUtil.QCConnection
'Get the IBugFactory
Set BugFactory = QCConnection.BugFactory
But not finding anyway for Test lab/Plan connection. Any help will be highly appreciated
Re: Connecting to the QC Tabs through QTP codes
Use QCUtil.QCConnection.TestFactory to get a test or a list of tests from the test plan. Use QCUtil.QCConnection.TreeManager to get a test subject.
Use QCUtil.QCConnection.TSTestFactory to get a test or alistof tests in the test lab. QCUtil.QCConnection.TestSetFactory allows access to test sets. QCUtil.QCConnection.TestSetTreeManager allows access to test set folders.
Refer to the OTA API Reference manual that is accessible from the Help menu in QC.