sry bt ur answer is wrong .java and java script is diffrent
things.u can use jeva but the using script will be vb
script and it not accepts java script.
Hi,
QTP accepts Java Script, Jscript, and VB scripting.
some of the objects are not identified by using Java script.
So, we can use use Vb scripting.
Regards
Suresh
please give the answers that you are aware and optimistic,
somany seekers are checking this site for updating their
knowledge and some simply beginers
so, please make this site reliable for someone who doesn't
know things.....
The add-ins are included so that QTP can recognize certain
objects. Java add-in enables QTP to be able to identify
JAVA objects and use corresponding methods; similarly .NET
add-in helps QTP to identify .NET objects. A .NET window is
identified as swfWindow and not WinObject or Window Object.
Will QTP accept Javascript would mean - can you make QTP
identify objects, perform tasks like entering data in edit
box, click buttons, etc. using JavaScript.
Answer is YES.
Quote from a documentation
"You can write your QuickTest automation programs in any
language and development environment that supports
automation. For example, you can use: VBScript, JavaScript,
Visual Basic, Visual C++, or Visual Studio.NET."
Please refer
http://students.depaul.edu/~slouie/QTUsersGuide.pdf - page
804-805
There is something I would like to add/modify in my previous
post. The paragraph I quoted regarding QTP accepting
various language - Any of the above languages can be used to
automate the QTP processes i.e. using QTP AOM. As far as
scripting the QTP scripts is concerned, VBScript is the ONLY
valid script.
If you have a test suite of 3 different tests like - smoke
test, a regression test on module 1 and a regression test on
module 2, you can create and run an automation script from
lets say MS Visual Basic that loads the required add-ins for
a test, starts QTP, configures settings, run the test and
save it!
For writing QTP scripts - ONLY VBSscript
For Automating QTP processes i.e. using QTP AOM, any of the
languages mentioned in above post.
Java Script programming cannot be done in QTP but it will
support Java script. We can make a DLL by using Java script
and add that to QTP and there after you can use that.
Hello,
QTP creates VBScript and it supports java script when we
do recording. That means some statement of java script we
can add in VB script which is mandatory during
testing/recording.
The add-in managers will enables QTP to recognize objects
in the developement environment of AUT(Application under
test). When add-ins are enabled the corresponding objects
will be consider as standard objects.
Hope i am right :-)
In some cases qtp accepts javascript. In some cases it is
not working. Actually qtp is very famous tool in testing
tools. With out qtp we can't get job in mnc's and also some
small companies also. Just now i learn qtp in mind-q
systems. Which is famous institute in hyderabad.
For example one window is there the window contain some of
Check boxes but my question is how many check boxes are
there particular window?
Please solve the problem
gi_raju@rediffmail.com
ippaliraju@yahoo.co.in