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



IF application is a Java-based application means 2 0r 3 tier application. How the script will be i..

Answer / baba fakruddin

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

IF application is a Java-based application means 2 0r 3 tier application. How the script will be i..

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

IF application is a Java-based application means 2 0r 3 tier application. How the script will be i..

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

IF application is a Java-based application means 2 0r 3 tier application. How the script will be i..

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

IF application is a Java-based application means 2 0r 3 tier application. How the script will be i..

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

Post New Answer

More QTP Interview Questions

how can we group that these test cases only should be automated and in which order you execute that test cases?

2 Answers   BSL,


hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.

3 Answers  


What is the difference between gettoproperty and settoproperty?Explain with an example?

4 Answers   QQS, Satyam,


hi i want write code for "test engineer" in this i want write reverse how ca plz let me know through script

4 Answers  


Where are the snapshots stored?

2 Answers  






For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

0 Answers   V2 Solutions,


Which scripting language used by quicktest professional?

0 Answers  


what are the parameters you are considering for object identification?

1 Answers  


In an output value text checkpoint, where does the output value stored by default ?

4 Answers   Ordain Solutions,


Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance..

3 Answers   Sony,


How does you pass optional arguments in qtp?

0 Answers  


How to Import the data from MS-Access in QTP?

1 Answers  


Categories