how do we add a new sheet to data table in QTP?
Answer Posted / noor
To Add a new sheet first we need to give the reference for
the sheet i.e
Datatable.getsheet("sheetname")
//sheet namehere can be global or local//
then add this statement
Datatable.addsheet("sheetname")
If you want to give the column name and its value include
Datatable.addsheet("dtglobal/Action1")"Username","ABC"
Thanks.
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What is difference between run time object and test object?
Thanks....But can u tell me how i use the QTP for GIS with one Example...
For which type of project the iterative model is suitable?
I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing
How to check bitmap output value?
Explain the concept of how quicktest professional (qtp) identifies object?
Where you get the run time data table?
Define Environment Variable in UFT and its uses?
What are the different types of qtp test assets and their extensions?
Explain different types of action in qtp?
When and why to use descriptive programming?
Explain the concept of object repository and how QTP recognizes objects?
how can i call function (which has link with excell sheet at a remote location) within another function
Can we run test with out adding object in object repository? How it is possible?
diff between qtp versions from 8.5