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...

Does QTP support Java Script also. Which is one is
preferrable for QTP, VB script or Java script

Answer Posted / govardhan palla

Please leave your mail id here. I'll surely drop a Zip file
to you which contains small demo Frame work on Flight
Reservation Application.

Anyhow some part of the demo I am keeping here, Please have
a look at below

QTP Framework Demo VIII

Changes for VIII

All the objects except for the Browser and Page are handled
by Descriptive Programming.

Files:

QTP Script BookFlightDemo.

This script will now only run in QTP 9.1 or later versrions
of QTP like 9.2,9.5 or 10.0 you should be able to backward
engineer the script. You need to convert it to full DP
objects and create a new script in your version QTP and
include all the files below.

Excel.vbs (Data Reading Functions)

GlobalVars.vbs (Holds Global values)
DP_Objects.vbs (Basic Descriptive Programming subs)
Navigation.vbs (Common Navigation subs)
Flights_Demo.xls (Data file (Datatable
replacement))

Instructions

Copy the folder Data to the root directory of you C drive.
Start QTP and open the script BookFlightDemoII.

There will be one Keyword in the QTP script “BookFlights”

This demo uses the Mercury Tours web site which you should
have a link to in your sample applications.

http://newtours.mercury.com/

The start condition is at the login screen.

Make sure all the vbs files are referenced in the resource
panel
QTP > Resources > Associated Function Libraries

When you run the script you will be asked to select a data
file select Flights_Demo.xls.

I have made a few changes from the first version of the
demo. The long lines of code created by QTP when recoding
have been replaced by simple short lines. For example

strBrowser = "Welcome: Mercury Tours"
strPage = "Find a Flight: Mercury"

'Departing From:
Call DPWebList ("fromPort", strFromPort)

The browser and page are set before the fields and are re-
set when required. Descriptive Programming is also used in
this demo now as shown in the example below.

'billAddress1
Call DPWebEdit ("billAddress1", strbillAddress1)


The script will run for 2 iterations it will report 1 pass
and 1 fail.

This is not a full solution for a framework if you want
that give me a job. I have provided examples of putting
common actions into subs that can be called this allows for
easy maintenance of common reusable actions, Again these
may not be ideal candidates for this but its an example of
what you can do.


Govardhan Palla

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Connect to QC using AOM.

1676


1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins

1979


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

2249


What is the significance of “action 0” in qtp?

1047


What is the differences between image check point and bit map check point?

1068


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

2153


what are all the fileds present in object repository?

2039


In Remote acess server how u run a test?

1717


What are the different types of action?

988


Hi,All How to create a link in excel sheet using qtp

3426


Does QTP run in any environment?

1078


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

2204


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

1018


What are the advantages of Object Repository?

1093


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

1886