I would like QTP to get the status of a test (a whole test, not a specific step) located in a given test set (I know the ID of this test set). How to do this? I think I should request the TESTCYCL table, but I don't know how...
Re: How to get the status of a test in a given set
You need to have your QTP connected to QC.
If your script is loaded from QC then CurrentTest object would be pointing to the OTA object for the test plan test.
If you are running script from QC then CurrenTestSet, CurrentTestSetTest would also be available.
If you are storing test results in QTP then CurrentRun would be available.
Now if you want to directly get Status of an test in test set using QTP. Then you need to use QCUtil.QCConnection and inside that you will have to use objects like TestSetTreeManager, TestSetFactory. You should download the OTA API help file. Login in to QC and then go to help and download these files.