Upload and associate QTP results.xml to new Run
I'm currently trying to work out how (using the OTA API) to take a QTP generated results.xml file (or all the files in the result directory, whatever is needed), upload them to the appropriate place in QC and associate them to a new Run such that the Results Viewer button works as it would had I performed a test run with QTP connected to QC.
From looking at the Repository table I know how to locate and download (via the DB) results.xml files for QTP/QC runs generated normally, but uploading with all the correct paths and associations is a different matter. Besides which I'm hoping to do this purely through the OTA API as I will not have direct DB access in future.
Any suggestions for even bits of this would be greatly appreciated.