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 to Parameterize Object repository in QTP?

6 Answers   Cognizant, IIBM,


Can anyone please tell me how to select next 5th business date from calendar using QTP/UFT ?

1 Answers   Cigniti Technologies,


How to retrieve data from application objects?

1 Answers  


for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code? 

2 Answers   FFASVA, Genpact, Wipro,


how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0

0 Answers  






I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?

4 Answers  


what are the attributes of QTP?

3 Answers  


what is the Exact Meaning of Environment Variables?

10 Answers   AppLabs,


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

2 Answers  


what is compiled module?

1 Answers  


Login to flight app, in window flight reservation set the date field and select flyfrom as Frankfurt and verify whether flyto list box has the item FrankFurt, log the results.

1 Answers   Cap Gemini,


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

1 Answers  


Categories