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
Why bpt?
How can I import environment from a file on disk?
What is the quicktest professional (qtp) testing process?
Write a script to verify font style and color of a windows object using descriptive programming
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
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
What is reusable action?
What is Associate Repository in QTP 9.2 ?
How to capture all the data of a webtable, weblist and combolist using QTP?
How smart identification works in qtp ?
What are the major/ important methods, functions in QTP we use realtime testing
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
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.
Is qtp supports uni-code?
How are actions and functions different in QTP?