Micro Focus QTP (UFT) Forums
QTP with other programing languages!! - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP with other programing languages!! (/Thread-QTP-with-other-programing-languages)



QTP with other programing languages!! - oskar_schindlerus - 09-27-2009

Hi Folks,

I have just begun learning QTP as I am supposed to test out a website.

One of the requirements is to carryout a transaction on a website. There are two success criteria:

(1) The website should be reachable.
(2) The transaction should complete within a certain interval.

The time taken for the transaction should be recorded in a database.

Now will QTP let me do the last part of recording in a database or will I have to write a wrapper around the QTP script? Also, can a QTP scripts be invoked and used via other programming languages?

Thanks,
- OskarSmile


RE: QTP with other programing languages!! - Ankur - 09-28-2009

To interact with DB, you need to create an ADODB object and once you have DSN with you, you can do anything. It would limited - only by your imagination.

Also, can a QTP scripts be invoked and used via other programming languages?

Yes, QTP's Automation Object Model can be used in any language that supports automation (JScript, VC etc) . Don't confuse it with IDE of QTP. IDE will only support VBScript.


RE: QTP with other programing languages!! - oskar_schindlerus - 09-28-2009

Hi Ankur,

Thanks for the reply.

Great. I have written a bunch of user agent code in perl that navigates and does a ton of stuff with the site. The problem was that the perl plugins did not have the ability to recognize Java GUI objects. I am reading up VBScript for the QTP IDE.... should be done soon and then will hook onto the QTP readings. BTW: Is the Automation Object Model an API that QTP exposes?


RE: QTP with other programing languages!! - Ankur - 09-28-2009

Correct, you can refer this article on AOM