Quality Testing

Quality is delighting customers


Is it possible to use Java Script in QTP? This is one of the interview question, i was faced. Can any one answer this question.


Views: 6384

Reply to This

Replies to This Discussion

Yes Kusuma We can use Java Script, but the Addin should be added

Hi Kusuma,

We can use Java Script in QTP. But before that we have to install Add-in

No it is not possible to use Java script in QTP. I don't know why I see so many yes in this post. Java add-in and being able to use JavaScript is a totally different thing.

QTP scripting can only be done through VBScript

using the javascript in QTP is different,and adding add-in to test the java project is different,QTP does'nt support javascript

Yes Java Script can be used in QTP
yes, we can use

HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Configuration_UI\ScriptMgr

Create a new String value with name AltProgID and value "Mercury.JSScriptMgr" and change the value of "Create" to 1

Create a new child key inside the key
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Configuration_UI\ScriptConstants

Repeat the same steps for the below key
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional\Configuration

C:\Program Files\Mercury Interactive\QuickTest Professional\bin\QTEditor.ini
Add the below parameter to [General options]
AllowJavaScript = 1
DisableVBScript = 1
I think, no need to modify/edit regedit contents. If QTP supports Java or JScript for QTP Scripting, HP will provide a dropdown (like control) to select the required scripting languge i.e. VBScript or JScript/Java like VSTS (it supports C#, VB.Net etc)
Hi Kusuma,

TO my knowledge in QTP I know QTP supports only VB Script.

VB Script and JavaScript are from different vendors hence I suspect we can't use both of them.

No Java script can not be used in QTP...

FYI:Test complete supports multiple scripts like vb scripting, delphi etc.
Hi ,
The Java script is not supported in the QTP. I think there is a confusion between the JScript and Java script. There is a support for the JScript in the QTP.

Vijay V.K
Totally agreed to those who said No.

In qtp we use vbscript and the application you want to test might be java developed then you need the required add in.
I am just wondering why did ppl say Yes in a first go w/o knowing correct answer.
Request - > Folks dont mislead needy ppl. if not knowing the answer for sure!

@ Shirish ,

agree with you

QTP dont support JAVA script.


Some faculty of Institute teach student that its support java script because that never worked on actual project in their life


TTWT Magazine





© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service