While I have been working for Businesses that are Vendor partners with HP, IBM and Microsoft, my opinions and advice is my own.
The solutions provided are either sourced from my own scripting libraries or from a quick Google Search.
I've written a console app in C# that I'm launching from QC workflow. The C# application currently has no idea that the user is already logged into Quality Center. In order for the C# app to access QC, I have to ask the user to re-login - which I'd like to avoid. Perhaps I can somehow pass the TDConnection object from Workflow? (COM? - QTP does it somehow)
Fyi: The problem I'm trying to solve = (already in another thread) I can't access Business Process information from QTP Workflow because I currently can't cast a Test to a BusinessProcess object due to the ridiculous lack of "Dim As" functionality.
The idea is I could call something external to workflow to get the necessary information. Are there other ideas on how to use external code?
There is no way to pass the TDConnection COM object given to the workflow by the QC user interface to another program.
You could try to pass the connection info (domain, project, user, password) either as program parameters to your C# program or through any other inter-process communication channel (local temporary file or registry entries for instance). However, the last versions of QC do not expose the user password in clear text anymore and thus you will be stuck at some point of time.
The other alternative is to turn your C# program into a COM object, in which case you can pass the TDConnection object you receive from the QC user interface to your own object.
I answered the other thread : maybe you do not need any extra program/DLL