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

Answers were Sorted based on User's Feedback



In my Script Firstly i have to parametrize the data then we import the data from c drive.suppose i..

Answer / 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

In my Script Firstly i have to parametrize the data then we import the data from c drive.suppose i..

Answer / mithra

Incorporate the following method in for loop :

Datatable.setnextrow

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is the syntax to call one action in another?

0 Answers  


Brief the process of testing with UFT?

0 Answers  


what is the structure for the data driven framework

0 Answers   Wipro,


how will you handle the situation when object is not caputred during record?

0 Answers  


what r advance features u had done in QTP?

3 Answers   HCL,






What is User defined function in QTP

6 Answers   Bank Of America,


how to check URL using QTP? write vb script with descriptive programm only?

1 Answers   Syntel,


HOW AND WHY TO CREATE EMPTY OBJECT IN QTP?

2 Answers   Patni,


What are the types of properties that quick test learns while recording?

0 Answers  


Why do we use text checkpoint as we can make use of the same in the standard check point?

3 Answers   IBM,


Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini

2 Answers   TCS,


Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot

3 Answers  


Categories