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

How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

563


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2794


Can U Explain about QTP tool from older version to latest version also its differences?

1508


one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.

1513


What is CMMP and CMMH?

690






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

1203


Explain quicktest professional (qtp) testing process?

534


How can I check if a environment variable exist or not?

534


How u will do versioning in QTP?

1446


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1838


What are the steps involved in recovery scenario wizard?

517


Step 3&4 are repeated until an the object in recognised uniquely.

1514


describe some problems that u had with automating testing tool?

1403


explain how to write vb script in qtp?when will you write own script?

1851


Explain the difference between call to action and copy action?

511