How can we check whether a particular sheet loaded (existed)
or not in Data Table.

Answers were Sorted based on User's Feedback



How can we check whether a particular sheet loaded (existed) or not in Data Table. ..

Answer / madhulika

On Error Eesume Next
datatable.getsheet("Sheet name")
'Checking error number, if no error then returns 0
If err.count<>0 Then
msgbox "Sheet not available"
Else
msgbox "Sheet available"
End if
On error go to 0

Is This Answer Correct ?    5 Yes 0 No

How can we check whether a particular sheet loaded (existed) or not in Data Table. ..

Answer / nandankumar

Once we execute the test then if we check in result window
we have run time datatable there we can check out whether
our specified sheet is existed or not.

if i am wrong, please correct me..

Is This Answer Correct ?    3 Yes 0 No

How can we check whether a particular sheet loaded (existed) or not in Data Table. ..

Answer / ravi

ONCE WE CAN USE INSERT METHOD IN DATA TABLE METHOD OFTER
EXECUTING THE STATEMENT WE WILL GO TO THE RUNTIME DATA
TABLE IN THE WHEREEVER WE INSET PLZ GO AND CHECK

Is This Answer Correct ?    0 Yes 0 No

How can we check whether a particular sheet loaded (existed) or not in Data Table. ..

Answer / veeresh babu

We can use datatable.getsheet("sheetname")
to access any sheet at run time

Is This Answer Correct ?    0 Yes 0 No

How can we check whether a particular sheet loaded (existed) or not in Data Table. ..

Answer / vaani tks

U can debug and watch the data table at run time, so that
we can see that particular sheet is loaded or not.. or u
can use wait statement to view it..

Is This Answer Correct ?    1 Yes 3 No

How can we check whether a particular sheet loaded (existed) or not in Data Table. ..

Answer / ramana vanteru

For the above answers, i would like to add somemore info,
In datatable, after adding a sheet, we can get the sheet
count with the following script..

Ex: datatable.addsheet("New_sheet")
msgbox datatable.getsheetcount

Note: "getsheetcount" will give us the no.of sheets present
in the datatable.

Is This Answer Correct ?    0 Yes 2 No

How can we check whether a particular sheet loaded (existed) or not in Data Table. ..

Answer / saradarao.v

hi,Ramana Vanteru
if u don't mind pls send me ur id

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

how can you select random value for every iteration from a weblist

4 Answers   Microsoft,


Hi All, I'm Akshaya here, could anybody please help me regarding how to import the excel sheet to run time datatable. But Pl. keep it in your knowledge is that excel sheet is opened. Thanks, Akshaya Madali 9823213538

4 Answers  


Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak

0 Answers  


how can we write descriptive programming for menus when qtp is not able to identify it..and how can we write descriptive programming for partially identified and non standard objects..do i have to map the objects before writing the script

2 Answers  


Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs like 'Tab ,F7 etc' and also mouse (Click). After recording when i am running the Script ,it is not able to recognize the keyboard inputs like F7,Tab and mouse Click because of which either i have to skip that part or manually do the inputs. Please answer how can i make script more flexible so that it will recognize both keyboard and mouse operations.

3 Answers  






In QTP, Give the difference of Global sheet and Local sheet in datatable?

3 Answers  


Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.

3 Answers  


waht is the difference between QTP 8.2 and 9.0 version

15 Answers   AppLabs, CTS, Polaris,


What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance.

11 Answers   Polaris,


what is the difference between Reusable action and external action?

2 Answers   HCL,


Hi, I got some difficulties in automating a web check box in a peoplesoft application. Let me explain the scenario, When clicked on a look up button in the application, it navigates to a new page with check boxes and respective options. Below is the source code for one check box and its option. <input type='checkbox' name='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' id='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' tabindex='34' value="Y" onclick="this.form.H1AU_BUNDLE_WRK_H1AU_SELECT_CH$chk$2.valu e=(this.checked?'Y':'N');submitAction_win0 (this.form,this.name);" /> </td> <td align='left' class='PSLEVEL1GRIDODDROW' > <span class='PSEDITBOX_DISPONLY' >$29 - $29 Cap with FREE Mobile</span> I want to parametrize using "$29 - $29 Cap with FREE Mobile". I am not aware of how to parametrize this. Currently I am parametrizing with 'H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' Can any one please help me out with this??/

0 Answers  


What is environment variable in qtp and why to use it?

0 Answers  


Categories