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
Describe function procedure in vbscript.
Mention the different actions types of qtp.
whare exactly we have to use functions and sub routain
How many add-ins comes by default with quicktest professional?
How to save your test using quicktest professional?
What are the various types of Actions in UFT?
HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.
Is it possible to call win runner script in qtp?
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code
Discuss quicktest professional (qtp) environment?
What the differences are and best practical application of Object Repository?
What are the types of properties that quick test learns while recording?
How to execute a winrunner script in quicktest professional?
Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,