• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upload attachment to QC [Quality Center] using java

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refresh.....
 
Rob Spoor
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kalidas Raju,
Your post was moved to a new topic.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic