Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My system is getting struck when i import excel sheet to the QTP runtime DataTable
#2
Not Solved
Hi Mani,

Thanks for such a detailed post, it helps to understand the exact issue. If you want to import an Excel file in your Datatable.
Just do the two steps
1. Add a sheet to your datatable
2. Import the sheet you want from the excel file

Try this
Code:
Datatable.AddSheet "Sheet1"
Datatable.ImportSheet C:\Testcases.xls",1,3

In your mentioned steps I can see you have imported the excel in line 3
if you do a Import, the imported xls replaces all data in the existing run-time Data Table (including all data sheets).
also the files mentioned are different, I beleive you need to use the file mentioned earlier.

Hope this helps, let me know there is any issue.
Sorry, I misunderstood, I beleive you are preparing the datatable by importing the sheet.
just noticed that you have taken a blank test.

this is working fine when I tried. I doubt there must be some issue the DataTable.xls.

Reply


Messages In This Thread
RE: My system is getting struck when i import excel sheet to the QTP runtime DataTable - by Saket - 09-01-2009, 11:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,640 01-05-2020, 10:03 PM
Last Post: Bhuvana
  How to make QTP Script to work when system gets locked? ramkumarad 6 12,497 11-02-2017, 03:37 PM
Last Post: Divv
  Reading data from excel sheet serenediva 1 9,621 03-03-2017, 10:07 AM
Last Post: vinod123
  How import final calculated values by cell formula from Excel not the formula itself. qtped 1 4,861 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Local System Monitor kbhargava505 0 2,526 10-16-2015, 12:52 PM
Last Post: kbhargava505

Forum Jump:


Users browsing this thread: 2 Guest(s)