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

How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

1504


Suggest and Define a solution for an application whose objects are not recognized by UFT?

666


What is qtpro?

593


How many add-ins comes by default with qtp?

537


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

1515






i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com

1462


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1519


How do you create regression test packs?

608


How did you use regular expressions in QTP and also in WR?

2159


In qtp, how you can exit for loop?

522


Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..

1514


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

648


what type of run time errors you get while you ar edoing rpg program?

1509


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1640


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1411