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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the basic concept of quicktest professional?

797


What is action split and the purpose of using this in qtp?

762


What is the differences between image check point and bit map check point?

799


Why to use descriptive programming?

794


Explain features of the latest version of qtp/ uft 12.1?

838


how many maximum number of virtual users we can create?

1816


what is the hierarchy to use properties in descriptive programming

1756


How does you pass optional arguments in qtp?

796


How to attach a file to TD?

887


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

1684


What are the ways you can synchronize?

794


is it possible to add sheets to excel at runtime

3646


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1748


For which type of projects the iterative model is not suitable?

1685


How does qtp identify objects in the application?

845