Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How is a Step generator used in UFT?

1150


write the vb script for call to new action in qtp?

2240


Can the user toggle between using Local OR and shared OR for the same action?

916


Why we load add-ins in qtp?

1054


Explain the concept of object repository & how qtp recognizes objects?

1041


Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1891


What is keyword view?

956


How to handle dynamic objects in quicktest professional (qtp)?

901


Explain the features of quick test pro(qtp)?

977


What is the basic concept of quicktest professional?

984


What are the different recording modes?

924


write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading

1828


What is a programmatic description?

1050


What do you to script when objects are removed from application?

1021


What is the default object synchronization timeout in qtp?

1158