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
Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma
who QTP recognizes the object stored in object repository?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
How to use transactions in qtp?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
Is any limitation to xml checkpoints?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
How many types of parameters are available in quicktest professional (qtp)?
we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?
What are the views available in quicktest professional (qtp)?
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji