How to add multiple values in rows, under a single column of
a run time datatable?

Answers were Sorted based on User's Feedback



How to add multiple values in rows, under a single column of a run time datatable?..

Answer / uday

datatable.GetSheet(1)
For i=1 to 5
datatable.SetCurrentRow(i)
datatable.Value(1,1)=i
Next

Is This Answer Correct ?    7 Yes 3 No

How to add multiple values in rows, under a single column of a run time datatable?..

Answer / srihari prasad nayak

21
45
87

Is This Answer Correct ?    2 Yes 9 No

How to add multiple values in rows, under a single column of a run time datatable?..

Answer / saff

BY importing the data from external excel sheet

1) first addsheet
2) importheet from excel to the local datatable

datatable.addsheet(tagretsheet)
datatable.importsheet sourcefile,sourcesheet,targetsheet

or else

u can manualy give the values into the shhet

datatable.value(parametername,sheetname)=parametervalue

Is This Answer Correct ?    5 Yes 13 No

Post New Answer

More QTP Interview Questions

What is qtpro?

0 Answers  


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

2 Answers   AppLabs,


suppose we recording a web based project so for that we are using internet explorer after that if we execute that script in netscape then script will execute or not and one more thing is to exeute the script in any browser what to do

2 Answers   DigiTech,


what are all the fileds present in object repository?

0 Answers   Wipro,


hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

0 Answers   Livetek, NIIT,






How to record a qtp script ?

0 Answers  


How to create scenario selector

0 Answers  


pls guys understand this is question CAREFULLY,,, interviwer asks can u write test case for ATM m/c..i told, insert card enter pw...like this,,but interviwer not happy with that...ur not going to atm center? in ur office system ur testing ATM M/c...why ..how to test? what is the process?

1 Answers   Accenture,


what is regular expression how will you implement it?

1 Answers  


what is delay in QTP?

2 Answers  


Where to use function or action?

0 Answers  


if the excel sheet specified in script is not there,we get run time error how to handle the error ,please anybody explain me in detail

2 Answers   Quinnox,


Categories