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

please tell me how to identify the index of the link in the web table .links are not constant.example i want to click the link in the inbox ,search the item and click the partcular mail.(mail links count is not constant)

1 Answers   IBM,


When a requirement is given to u to automate , What is ur basic approach ?

4 Answers  


Tell me Three major differences between QTP & Winrunner?

2 Answers  


How will you set a unique four digit number in an edit field in QTP?

2 Answers   IBM,


how to write regular expression for Date field?

12 Answers   Google,






what kind of frame work you used in your last project?

0 Answers   Deloitte,


how to identify an object which is not in the object repository identification can be done using descriptive programming.

2 Answers  


If there are 100 checkboes in a page then how can we select 10th & 11th & 14th chexkboxes at once through descriptive programing in QTP using vb script. Please send the answers...

5 Answers   NTT Data,


what are the mandatory properties in qtp? what are the library functions in qtp?

3 Answers   Wipro,


How to supress warnings from the "Test results page"?

3 Answers   Crea,


Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5

2 Answers  


Can the user toggle between using Local OR and shared OR for the same action?

0 Answers  


Categories