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
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 |
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 |
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 |
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 |
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 |
How to Parameterize Object repository in QTP?
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?
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
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?
what are the attributes of QTP?
what is the Exact Meaning of Environment Variables?
how to identify an object which is not in the object repository identification can be done using descriptive programming.
what is compiled module?
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.
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..