Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write QTP script in Javascript
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
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.
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
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.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to write a script for fly out menus (Parent - Child - Sub Child) rajkumarsm 3 4,773 09-02-2014, 10:01 AM
Last Post: vinod123
  How to read and write in excel through QTP script shwetha_m 5 29,777 03-14-2014, 02:58 PM
Last Post: venkatesh9032
Wink Webedit Javascript sync issue praveenzack 3 3,363 10-10-2012, 06:25 PM
Last Post: praveenzack
  Write QTP code in Notepad TurtleRock 3 5,027 10-17-2011, 04:23 PM
Last Post: TurtleRock
  HoW to write script for launching IE? bhawin 8 35,645 11-08-2010, 04:37 PM
Last Post: KavitaPriyaCR

Forum Jump:


Users browsing this thread: 1 Guest(s)