how to add run-time parameter to a datasheet?



how to add run-time parameter to a datasheet?..

Answer / chaitu

a = Datatable.GetSheet("SheetNmae").GetParameterCount
If a = "" Then
b = inputbox ("Enter the no.of columns")
For i = 1 to b
Datatable.GetSheet("sheetname").AddParameter
("paraname","paravalue")
Next
End If

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More QTP Interview Questions

Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?

0 Answers  


what are all the fileds present in object repository?

0 Answers   Wipro,


HOW TO FIND WEBTABLE? HOW TO RETRIVE THE WEBTABLE VALUES? PLZ TELL ME THE PROCEDURE.

2 Answers   TCS,


Username field having some string mistake like"user naem".what type of testing i prefer to test spell check.

6 Answers   GE,


Explain advantages and disadvantages kdf?

0 Answers  






If u don't have any Knowledge on perticular application but they give that application to u for Testing ? Then How we wil move towards testing on that application?

16 Answers   Genpact, HP,


how to find that tools work well with ur existing system?

0 Answers  


I am new with QTP. Is anybody could tell me where I can find a good tutorial with lots of samples?

0 Answers  


how u write vb script in qtp pls give me some basic script and some material

32 Answers   Datamatics, UHG, Winit,


How many types of Automation frameworks are there in UFT? Describe them.

0 Answers  


what are the different data driven types?

6 Answers  


How to capture a window in QTP?

0 Answers   IBM, Mphasis,


Categories