Quality Center / Test Director has hooks for writing external scripts. This is called the Open Test Architecture (OTA) These can run on the client using COM using the OTAClient.dll or from within Test Director as a VAPI-XP test case.
You can download OTAClient.dll by logging in to Test Director and going to Help->Add-in Page->HP Quality Center Client Side Setup.
You are prompted to install this when you first log in to Test Director from a new computer, so you might already have OTAClient installed. Alternately, you can just install HP Quality Center Connectivity with will install OTAClient.dll without all the client-side functionality.
Note that you need to disable Windows User Account Control (UAC) to use Quality Center.
The steps for disabling UAC are slightly different for Windows Vista.
You can create a Test Director connection with VBScript or JScript, using Ruby or Python COM, with a Java COM Bridge like JACOB.
Dim qc Set qc = CreateObject("TDApiOle80.TDConnection")
var qc = new ActiveXObject("TDApiOle80.TDConnection");
import win32com from win32com import client td = win32com.client.Dispatch( "TDApiOle80.TDConnection" )
I’m using Windows 7 x64 so I can’t use the 64 bit WScript/Cscript executable. By calling my script with the 32 bit version of CScript.exe it will work. SysWOW64 will check to see if your COM object is 32 bit and use the correct interpreter.
Likewise, with Python, you need to make sure that you have a 32 bit version of python installed, as well as 32 bit pywin32.
The important thing to remember is that you need to use the 32 bit version of each with OTAClient.dll
This was a pretty big source of headaches for me.