File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload attachment to QC [Quality Center] using java

 
Rajiv Bhati
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rajiv Bhati
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refresh.....
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Rob, you are just awesome, I hope one day i will be like you in java.
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kalidas Raju,
Your post was moved to a new topic.
 
Senthil Kumar Bala
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic