How to parameterize in QTP?

Answer Posted / shyam.meghansh

Paramaterization can be done in this way:
#1. In the sheet "Action 1", write some parameters under
column A like name1, name2.
#2. In the code,
Browser("browser_name").Page("page_name).Webedit
("textbox_name").Set
Datatable("A","Action 1").
#3. From FSO u can do like this

datatable.import(<file name>)


In default sheet the data will be stored and in the script
u need 2 modify the code like this

Browser("browser_name").Page("page_name).Webedit
("textbox_name").Set
Datatable(Names,Gtsheet).

Names :- is the colum name and
GtSheet : - is global sheet in default sheet

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

574


Explain the views in the QTP GUI?

619


Which environments does qtp support?

679


What are the recording modes in wave event?

1538


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4144






When should I use smart identification?

604


Explain in brief about the qtp automation object model (aom).

565


Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

1794


In Remote acess server how u run a test?

1288


How to save your test using quicktest professional (qtp)?

599


How you can write contexts to text file in qtp?

591


regular expression in qtp standar check point for months from accepting months from january to december only

1475


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1517


What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)

1013


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 .

1727