VBSedit connect to QTP
QTP 11 or UFT 12
I want to use VBSedit to create an executable file that will probably run faster than QTP/UFT. I am creating objects inside of the exe.
Is there a way to call the exe from UFT and use the objects that were created in the exe?
Also is there a way that I can keep my VBScript code inside of the exe and call it from UFT. I may not want a client in the future to see some code.
To hide the code you could Obfuscate it. There used to be a product called Stronix, not sure if its still supported.
I've done this myself and squirrel'd the code in an obscure directory and re-created the VBS functions at runtime and destroyed them at the end but it wouldn't have taken much effort to find and de-crypt the code. It more of a way to stop the non-automators changing the code before they executed the tests.
No, you can not access objects created in a separate executable.
Though R&D and trials needed, but it could be the answer you're looking for.
Do check this article:-
Writing QTP Tests in Visual Studio » Advanced QTP
I looked at the article. It looks as if QTP has a loop that acts like a "listener". When it sees a change, then it performs the line of code.
I don't know if I'd sell a client on the idea, but it sounds like there may be a use for it.
May I ask why you want to put the VBscript code into an .exe? Why not just put it into a .vbs and have that be the executable? Then you can do what you want with the objects and the file.