Whether xlsx extension works while importing data sheet? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Whether xlsx extension works while importing data sheet? (/Thread-Whether-xlsx-extension-works-while-importing-data-sheet) |
RE: Whether xlsx extension works while importing data sheet? - vijaya.t - 01-21-2011 hi QTP 10 doesnt support .xlsx.so,if you try to import .xlsx file,it throws an error,showing invalid file. thanks vijaya RE: Whether xlsx extension works while importing data sheet? - RGummadidala - 02-08-2011 Hi All, I'm also struggling to import an excel file to Datatable. I have an excel by name Sample.xls and my script is as below Code: Dim qt Can somebody throw some light on this ? RE: Importing data sheet format? - akbarsharifmd - 03-07-2011 datatable.ImportSheet"D:\Akbar1.xls",1,1 Try this it is working.....cool RE: Whether xlsx extension works while importing data sheet? - mukesh_shenoy18 - 04-12-2011 Hi all, Code: Set oexcel = CreateObject("Excel.Application") /////////////////////////////////////////////// when i run this script i get an run error like this //////////////////////////////////////////////////////// The test run cannot continue due to an unrecoverable error. Microsoft Office Excel cannot access the file 'C:\76149810'. There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook. //////////////////////////////////////////////////////////////// The data 111111111 and 22222222 was written into the excel sheet. I think i have to open the file in the append mode as it tries to write a new file with the same name.Can anyone help me how to open the xlsx file in the append mode Thanks RE: Whether xlsx extension works while importing data sheet? - Saket - 04-14-2011 Hi, first of all there is no need to use QTP AOM inside QTP in the expert view. your last statement only should work.Now answer to your question : "at the end of the run, there are no values in the DataTable" - The import you are doing is runtime, so the data which you see will not be visible after the run session. you can see the imported data in the runtime data table. for your second query - as the data is being imported into Global sheet, the test is being iterated to the number of rows in the global sheet. If your test is iterated 5 times then there must be data in 5 rows in the excel you are importing. try importing your data in a new sheet. hope this solves your query. @mukesh_shenoy18 - Please open a new thread for your query. RE: Whether xlsx extension works while importing data sheet? - AnujN - 05-25-2011 (04-14-2011, 01:20 PM)Saket Wrote:(02-08-2011, 09:25 AM)RGummadidala Wrote: Hi All, RE: Whether xlsx extension works while importing data sheet? - swapnanil.jgec@gmail.com - 06-25-2011 Use Excel 97-2003 Workbook type while saving the excel sheet. RE: Whether xlsx extension works while importing data sheet? - cflow - 07-25-2012 I required this for my testing today, so here is a fully functional XLSX importer Disclaimer: This does not format or cleanup the Excel sheets themselves, just renames them for import so they are CamelCase. If you want your columns in the datasheets to be CamelCase with no special characters you will need to do some further extension. Code: 'Usage for XLS or XLSX: And for a Bonus Code: Function camelCase(strIn) RE: Whether xlsx extension works while importing data sheet? - QTPScript - 08-30-2012 I am playing with excel and qtp regularly. In QTP 11 xlsx is not supporting. RE: Whether xlsx extension works while importing data sheet? - agarwl.anurag - 10-15-2012 Hi, All the QTP version only support one extension i.e .xls format when you are importing any excel file at run time in datatable. |