IF application is a Java-based application means 2 0r 3
tier application. How the script will be in QTP. pls kindly
give some sample script.
Answers were Sorted based on User's Feedback
VBScript is scripting language which is used by QTP. QTP
supports no.of environments. Initially we have to check
particular addin and enter. QTP prepares methods for that
environment in background and it identify the object and
generates steps with that methods.
for Java application, we have to install java addin and
check java addin before we start scripting.
QTP will record script in the form of
javawindow("Calculator").javabutton("1").click
javawindow("Calculator").javabutton("2").click
javawindow("Calculator").javabutton("+").click
.
.
.
.
if you wanna write scripts in descriptive you can go like this
javawindow("windowname:=Calculator").javabutton("text:=1").click
javawindow("windowname:=Calculator").javabutton("text:=2").click
.
.
.
you can use collection object
dim window
set window=description.create()
window("title").value=Calculator
javawindow("window").javabutton("text:=1").click
javawindow("window").javabutton("text:=2").click
.
.
.
.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / venu
Hi there,
I was with a concept that the application technology is
independent of QTP script. (I mean the Script will always
be a VB based in QTP. And for Java based application we
need to have a JAVA addin)
Please correct me if I'm wrong.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sudeepthz
Hi i think that the QTP script will be the same. we use the
VB script in QTP. and the format would be the same.. The
QTp will identify the objects with obj Properties.. or we
will do discriptive programming..
I think Vijayendra Reddy is correct. Its a question to the
script for Windows Application...
Correct if I am Wrong
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / bfakruddin
Whether it may be 2 tier/3tier/n tier architecture....
nothing will be different, the script would be in VBScript.
according to the environment,application the methods will
change...
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vijayendra reddy (codon softwa
Hi,
we will write script in 2ways.
1.by using properties collections
2.by using Description.create
example:
Dialog("text:=login).winedit
("attachedtext:=username").set "xxxx"
dialog("text:=login").winedit
("attachedtext:=password").set "yyyy"
Dialog("text:=login").winbutton("text:=ok").click
| Is This Answer Correct ? | 0 Yes | 3 No |
Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT
Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.
5 Answers Lehman Brothers, rsystems,
VB - Script Training in MUMBAI.
Actually How do we use this Smart Identification Technology during Recording mode.
Use of Debug Viewer?
what is memory leakage?
16 Answers ITC Infotech, Panamax, TIT,
For an application we automated QTP scripts. At the same time new requirement comes for a new module for the same application and its already developed. So how we automated now this new module with the old application(using old QTP script).
The interviewer asked me when u recorded one application.object repository properties are saved with .tsr extention. in qtp expert view wherever mouse is there that snapshot displayed in active screen but some recored script lines are not displyed in actives screen y?
How to "Turn Off" QTP results after running a Script?
can any one please tell me QTP 9.2 supports which version of IE and Mozilla firefox.
Can anybody help me by sharing the code for checkbox in qtp using vbscript.
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.