Hi friend
I have query regarding QTP datatable.
I want to insert data in datatable during runtime.

suppose i wrote

datatble.value(1) = "Test data"

so when i run the script it says column(1) doesn't exist.

Then i write something in column A1 manualy and run the
script again.

Now it works fine.

Pls clarify how i can put value in blank cell of datatable.

Answer Posted / prashanth

Hi Friend,

Try this...

In the Datatable, in the first row, first column u can
find "A". DoubleClick on "A" and give any name like..."Test"

Now, in the Active Screen...

DataTable.Value("Test", Global)="Test data"

'Now if you want to use the value present in the datable,
in the script...

K=DataTable.Value("Test", Global)

Now, the value "Test Data" is stored in the variable "K"


Thanks,
Prashanth
prashanth.vikey@gmail.com

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why bpt?

576


How can I import environment from a file on disk?

523


What is the quicktest professional (qtp) testing process?

555


Write a script to verify font style and color of a windows object using descriptive programming

826


I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2240






How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

510


What is reusable action?

585


What is Associate Repository in QTP 9.2 ?

590


How to capture all the data of a webtable, weblist and combolist using QTP?

2839


How smart identification works in qtp ?

566


What are the major/ important methods, functions in QTP we use realtime testing

2255


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1658


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

1546


Is qtp supports uni-code?

597


How are actions and functions different in QTP?

642