| || |
QTP Scripting Object API ( QTEXECUTIONENGINELib)
I am wondering if we can use QTP Scripting Framework API outside QTP, I was exploring some QTP COM DLL from Visual Studio but i did not find any relevant information.
to elaborate more, what i am looking for is,
I am not talking about QTP AOM, but i am talking about using QTP functions in our own custom DLL..
For example, QTP Wait function, RunAction function and QTP Description, Desktop and Environment class.
So far i find ... but i have not used this
QTEXECUTIONENGINELib.IQTASUnitExecutionEngineItem. RunAction(Object, [Object], [Object]) As Object
My objective is to use create framework Lib as a DLL.. I am looking for someone who have tried this approach in past, and seeking answers like..
Is this possible, what i am looking for ?
Is this a good approach/feasible, should we go ahead with this approach ?
Issue we face when we try to follow this type of approach?
Re: QTP Scripting Object API ( QTEXECUTIONENGINELib)
Nope it is not possible. Reason being these objects are added to a Global scope. Which means when you can RunAction the VBScripting engine itself checks the global objects to see if any of their IDispatch interface contains this method. This would have been possible had QTP added these as non global and object level members. Then the object could have been passed to your DLL.