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 Export The Screen Shoots Along With The Test Reports In QTP Version 10? Thanks In Advance SenthilKumar
Gmail application is there.On that Inbox so many mails are there including naukari mails. On that mails i can select the only naukri mail checkboxes. plz tell the descriptive code for the above..
In qtp, how you can use xpath to identify objects?
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
How to capture all the data of a webtable, weblist and combolist using QTP?
What are the different ways to invoke an application using QTP?
how to evalute defects in QTP script?
what is qtp automation frame work,what is the use of that frame work?
64 Answers Cap Gemini, IBM, iGate, TCS,
In a QTP project lets say there are 100+ function library and incorrectly we have duplicate some function in multiple libraries. How to find those duplicate functions and remove them?
can any body pls mail me latest FAQ's in QTP to my mailid btrintra@gmail.com....Thanks in advance
Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.
How does quicktest professional (qtp) identifies the object in the application?