How to add run-time parameter to a datasheet?

Questions by rajeshrs

Showing Answers 1 - 9 of 9 Answers

parshi

  • Oct 21st, 2005
 

HI use the following code

Datatable.<sheet name>.addparameter <col name>,<col value>

example,

datatable.localsheet.addparameter "Col1","Column"

hope this will work

Wasim

  • Nov 11th, 2005
 

Try using this line of code.

DataTable("Col Name",dtGlobalSheet/LocalSheet)="Col Value"

The only disadvantage with tihs code is, u will be able to see the parameter till the script is running, once stopped the parameter will vanish from the data table.

  Was this answer useful?  Yes

rani

  • Dec 23rd, 2005
 

1. enter the data in data sheet(global/action).

2.right click on actionbutton it showing all possible codition.

3. choose run all Iteration row by row. in Qtp8.2

 just choose optiones and run

  Was this answer useful?  Yes

sreekanth chilam

  • May 1st, 2007
 

First of all,

You get  the runtime parameter by using GetROproperty and store in a variable, say X

Then by using DataTable.Value("sheetname",dtGlobal/LocalSheet)=X

I hope it will solve your problem.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions