ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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. 
 Question Submitted By :: Lamxi Narayana
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 1 No
Vijayendra Reddy (codon Softwa
 
  Re: 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
# 2
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 ?    1 Yes 1 No
Venu
 
 
 
  Re: 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
# 3
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
Sudeepthz
 
  Re: 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
# 4
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 ?    1 Yes 0 No
Baba Fakruddin
 
  Re: 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
# 5
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
Bfakruddin
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
how to get childobject from .net application. i tried but its showing child object count zero. but window has child objects.the following script i written... pls help me how to get. set parent=SwfWindow("winodw name") CheckObjectDescription parent, SwfButton Public Function CheckObjectDescription(parent, oDesc) Set oDesc = Description.Create() oDesc("micClass:").Value ="Swfbutton" Set children = parent.ChildObjects(oDesc) cntObj=children.count msgbox(cntObj) End function  1
how to capture (or) checkpoint for chineese or any other language except english using QTP in a web page. ( my application have 24 language, how to check those lanugages using QTP? is it possible). Please let me know  2
hi all, I want to know about the QTP scripts, i have read more books but all areis to be a theory so how can i improve my script skills. if anybody knows about qtp scripts plz guide me and i need a sample scripts.my mail id is karthis4u@gmail.com, 9986667831 If you all have any data send it to akadi111@gmail.com  2
I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)  1
Is QTP a compiler or interpreter..? can you we execute a QTP Script file in a another system which does not have QTP installed..?? Virtusa4
Explain about merging of two repositories?  3
Plz explain about Virtual object? What is the situation u r using , explain with example?  1
How to use custom checkpoints in QuickTest Professional? TCS1
what is the use of VIRTUAL OBJECTS? explain ? TCS10
What is object repository?  2
What are the properties you would use for identifying a browser & page when using descriptive programming ?  2
Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?  1
if i have 10 actions and out of 10 actions last 3 actions i renamed will my script exicute sucesfuly r not? changed actions where i can see? IBM1
Synchronizing test Wipro2
What is test fusion report? CIL2
Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text and Tables ?  1
Please explain about unicode compatibility in QTP. how we can able to use it. Please help me  1
what is risks of testing a project? AppLabs4
is it possible to operate(on/off)the capslock using qtp  2
How can we change the .mtr file to .tsr file and vice-versa Wipro2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com