Launch QC excel report from web button
Question ID: 104801
0
0

Is there any way that it is possible to launch a QC excel report from a web button embedded in a web page?

Marked as spam
Posted by (Questions: 100, Answers: 4)
Asked on January 15, 2013 4:31 pm
40 views
Answers (1)
2
Private answer

Yes, this is possible although in this example the excel report would not be stored in QC but generated on clicking the button, the user that is accessing the report would still need the QC connectivity add in installed and would need to have the client registered. Using the sample code below I was able to create an HTML button that launches excel and executes VBA that connects to Quality Center using the OTA API. For this example for tests that were run overnight we combined the date and time so that overnight runs could be filtered more precisely, I used code from these two sources in this example:

http://support.microsoft.com/kb/198703

http://eyeontesting.com/questions/2159/sql-queries-in-api.html

Note: You will need to change the first few lines to reference your QC instance, Domain, Project, login, etc. Also you will need to enable certain active x controls in IE to allow the button to launch Excel.

Save the following as an html in notepad:


EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top