| Author |
Upload attachment to QC [Quality Center] using java
|
Rajiv Bhati
Greenhorn
Joined: Jul 27, 2011
Posts: 4
|
|
Hello All,
Currently i am working on a project where our goal is to upload files [Ms word, notepad, Excel...] to QC using java program.
Can some body share a code or guide me how to do that.
Regards,
Rajiv
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
I assume you're talking about the HP Quality Center software? Please TellTheDetails. Not everyone knows what "Quality Center" is; I myself had to look it up.
A quick search (for upload to Quality Center, without Java) lead me to this which can be used with JNI. If I add "java" to the search words I even find QcTools4j.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Rajiv Bhati
Greenhorn
Joined: Jul 27, 2011
Posts: 4
|
|
Rob Spoor wrote:I assume you're talking about the HP Quality Center software? Please TellTheDetails. Not everyone knows what "Quality Center" is; I myself had to look it up.
A quick search (for upload to Quality Center, without Java) lead me to this which can be used with JNI. If I add "java" to the search words I even find QcTools4j.
Thank you so much Rob for replying, because I was putting the same questions on so many java forum and no one dares to reply.
Yes, I am talking about HP's Quality Center version 9.2
About my self; I am just a learn and implement kind of person not much specialized in java. NO idea about JNI, but i will defiantly going to explore.
QcTools4j: I have try that as well however the observations are:
1] If i click to download QcTools4j, i get popup for com.mercury.qualitycenter.otaclient-9.2.jar file
2] I imported com.mercury.qualitycenter.otaclient-9.2.jar and try work with it
3] The java doc provided on http://qctools4j.sourceforge.net/
talks about classes like:
com.tszadel.qctools4j.clients.AbstractClient
com.tszadel.qctools4j.model.metadata.Attachment
Where as if i browse "com.mercury.qualitycenter.otaclient-9.2.jar " there are no such classes
Example:
=================
com.mercury.qualitycenter.otaclient.IAttachment;
com.mercury.qualitycenter.otaclient.IAttachmentFactory;
com.mercury.qualitycenter.otaclient.IRunFactory;
com.mercury.qualitycenter.otaclient.IRun;
=================
nothing call "tszadel" inside the jar
So i am just trying to bit the bush;
Sucess:
I am able to build the following code using "com.mercury.qualitycenter.otaclient-9.2.jar"
With the help of above code i can connect to QC, get the Test Set instance, Test Case instance, Run instance
but i need a direction to deal with attachment part, and there i get into the problem.
Please help
|
 |
Rajiv Bhati
Greenhorn
Joined: Jul 27, 2011
Posts: 4
|
|
|
Refresh.....
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
The com.tszadel.qctools4j.clients.AbstractClient and com.tszadel.qctools4j.model.metadata.Attachment classes are part of QcTools4j. You'll need to download those, but I'm surprised that you can't do that directly from their website. Fortunately I know SourceForge somewhat; you can find the right JAR file at https://sourceforge.net/projects/qctools4j/files/.
I'm afraid that's probably as much help as I can offer, since I have never worked with QC before.
|
 |
Rajiv Bhati
Greenhorn
Joined: Jul 27, 2011
Posts: 4
|
|
Thank you so much Rob, you are just awesome, I hope one day i will be like you in java.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
I'm not nearly as good as several people around here, both staff and non-staff. But thanks anyway! And you're welcome of course.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
Kalidas Raju, Your post was moved to a new topic.
|
 |
Senthil Kumar Bala
Greenhorn
Joined: Aug 10, 2010
Posts: 2
|
|
Rajiv Bhati wrote:Thank you so much Rob, you are just awesome, I hope one day i will be like you in java.
Hi Rajiv Bhati,
I too involved in the same task that you done. I am in initial stage so please guide me i downloaded the two jars 1. com.mercury.qualitycenter.otaclient-9.2.jar and 2. QcTools4j-0.2.4.jar and i am new too all these stuff please guide me what i have to do next.
Looking for your reply
Regards,
Senthil
|
 |
Azarudeen Anifa
Greenhorn
Joined: Jul 19, 2012
Posts: 3
|
|
Hi Rajiv,
Your code really helpful. But i got struck here.
}
I m getting Test Set ID, But I am not able to get the list of tests inside the testlab. What code should be added.
Quick reply more appreciated.
Thanks
Azar
|
 |
 |
|
|
subject: Upload attachment to QC [Quality Center] using java
|
|
|