Micro Focus QTP (UFT) Forums
How to write QTP script in Javascript - 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: How to write QTP script in Javascript (/Thread-How-to-write-QTP-script-in-Javascript)



How to write QTP script in Javascript - scrapspace - 02-23-2009

Hi,
I am trying to write a script in javascript and run it in QTP 9.0.
but it is giving syntax error.

do i need to install some add-in to write scripts using javascript?
please help me out to run javascript using QTP.


RE: How to write QTP script in Javascript - Ankur - 02-24-2009

If you are talking about the QuickTest Automation Object Model(AOM)(controlling QTP from outside) you can write your scripts in any language that supports automation... this includes Javascript.

If you're talking about QTP IDE, you can only write your scripts ONLY in VBScript.


RE: How to write QTP script in Javascript - tarunlalwani - 02-25-2009

You can't use JavaScript in QTP IDE as of now. But there is some research going in on that area which will allow you use either JScript or VBScript.