Page 2 of 2

Re: HP Quality Center Logging

Posted: Thu Oct 27, 2011 1:27 pm
by sdaly
....btw, another option is to trigger from QC directly , check out http://soft-test-tech.co.uk/2011/10/tri ... s-from-qc/

Re: HP Quality Center Logging

Posted: Thu Oct 27, 2011 5:39 pm
by rsriram
Thanks Scott, let me try to look into the new API. This is something that I have already did many times before and found this message weird too!

I did try to see a few examples online and they are all the same. Some say that the Test Name might contain spaces, but no. My test name has no spaces in it.

Anyway, let me check more options! :)

Re: HP Quality Center Logging

Posted: Thu Oct 27, 2011 5:42 pm
by rsriram
yes... I'm triggering the script from QC and that works fine. I'm trying to upload result log to QC.

Re: HP Quality Center Logging

Posted: Tue Jan 03, 2012 12:30 pm
by sumanhyd
Hi,

I am facing a small issue with the code.Its not adding the test case to test lab when i selected the test lab in QC or else it perfectly adding the test case to the test set in the lab. Its giving message as failed to post test.

Any suggestions..?

Regards,
Suman

Re: HP Quality Center Logging

Posted: Tue Mar 20, 2012 9:06 am
by narendharG
Hi

Could you please provide me same code using C#

Thanks
--Naren

Re: HP Quality Center Logging

Posted: Fri Sep 07, 2012 6:04 am
by JimDonovan
Hey SDALY,

Mate thanks for your post, I have been stuck for days on this exact code, I searched everwhere for a solution to why I was having problems with my .additem, everyone is using vb or vbscript to do this and of course they use .additem(null). I tired vbnull, dbnull, "", nothing, null objects everything! I finally found your post (should have started in this forum) and tried your system.dbnull.value and it fixed my issue in 1 minute that took me days..

because of your code I am now able to execute ranorex tests from my framework, then upload the run and test results to ALM.

Thanks again,

jim

Re: HP Quality Center Logging

Posted: Tue Sep 11, 2012 8:17 am
by sdaly
You are welcome Jim. Glad you found it useful :D

Re: HP Quality Center Logging

Posted: Wed Mar 19, 2014 3:54 pm
by livelyjay
Old post, but I found this very helpful. Some have asked for the code in C#, which is what I am writing my scripts in, so I had to update sdaly's code to work with C#. I tested this and it updates the overall run status in QC, but the code for attaching the Ranorex report file is commented out because "application.StartupPath" doesn't seem to work.

I'm going to try and implement updating actual test steps, and if I accomplish that I'll post the code here.
QCBridge_C#.txt

Re: HP Quality Center Logging

Posted: Thu Mar 20, 2014 2:54 pm
by Support Team
Hi livelyjay,

Thank you very much for your effort. We really appreciate that.

Regards,
Robert