Attaching Files to QC defect by Java code from local machine
When we open a defect in QC开发者_JAVA技巧 generally we need to attach the logs of the server i want to Make an application such that It will take files(logs from all the relevant server) and stores in our local machine and then we can rar those files and directly attach it to QC defect mentioned by person opening defect Now my question is how can i access the defect and attach the files to that particular defect
Please give your suggestions if any
QC has a published COM API called Open Test Architecture, (OTA) you can use that to load the relevant defect and attach the file to it. You can find relevant examples in QC Help for OTA.
Note that this is a COM API, if you insist using Java client to communicate with it, then you will have to use a Java to COM bridge like JIntegra (there is a free one as well, but I don't remember it's name).
But if you can write your client in VB6, C++ or .NET it will be much simpler (and cheaper) than writing it in Java.
For more Java to COM bridges, check out this question
精彩评论