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


Please Help Members By Posting Answers For Below Questions

Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

1580


What are the types of environment variables in qtp?

545


What is 'sleep' in sync point?

628


What are the different types of recording modes?

539


What is keyword driven framework?

621






What is QTP testing process?

629


Hello friends..... On which areas of an application we can not test with QTP

1559


What are benefits of qtp?

584


If you are testing a web application then what will you test in that application?

1543


An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))

1591


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1486


What is the file extension of the code file and object repository file in QTP?

600


What are the different ways to invoke an application using QTP?

648


UFT 12.02 which ALM version will support

983


when to start the automation?

1478