In my Script Firstly i have to parametrize the data then we
import the data from c drive.suppose i have parametrize the
Person name and company Name and i have enter one person
name and one company name in the excel sheet now we import
the sheet and the script is passed i want to ask one thing
can we add more than one person name and more than one
company name in the excel sheet suppose firstly we create
person name "ADDy" and company nmae.'Wipro" and we set the
current row in the script for this data and now we want run
the script another set of data so how we can run the script
with another set of data

Answer Posted / shilpa reddy

let us take a variable i ,which represents the datatable
row count.
code for ur question is:
i=1
set currentrow(i)
x=datatable(columnno,"sheetname")//here give no 1 as column
name,so name is passed
y=datatable((columnno,"sheetname")//here give no 2 as
column name,so companyname is passed
i=i+1

now set the x n y values in ur required location(i.e in
script).here one thing to observe is that u cannot pass
data directly from excel sheet to script,first u should
import the data to run time datatable,using import/import
sheet methods.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain abt dyanamic changing object with example?

1905


Problem with XML checkpoint in QTP ?

3509


Can you brief the hurdles you faced during Automation testing?

577


What is the descriptive programming?

1516


WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT

1711






.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1684


How do Parameterization and Data-Driving relate to each other in QTP?

560


What is the difference between local and shared object repository in qtp?

567


What are the flaws in water fall model and how to overcome it?

564


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1864


how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1540


what is output value in QTP and how it can be used in automation testing

1440


What is QTP’s model for test creation?

683


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3444


When and why to use descriptive programming?

612