Correct syntax for read and load global datatable from Resources tab in QC to QTP - 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: Correct syntax for read and load global datatable from Resources tab in QC to QTP (/Thread-Correct-syntax-for-read-and-load-global-datatable-from-Resources-tab-in-QC-to-QTP) |
Correct syntax for read and load global datatable from Resources tab in QC to QTP - hari1024 - 12-07-2011 Hello, We are trying important to load global and local datasheet from respurces tab in QC into a particular test in QTP.I am looking for piece of code in QTP to import the datasheet? Can anyone help? RE: Correct syntax for read and load global datatable from Resources tab in QC to QTP - sshukla12 - 12-08-2011 Hi, U can use this, Code: Function ImportDataSheet(strsheet) Subject\97_RTT Resources---> Path in QC TestData---> Folder in QC where Data sheet is stored DataSheet.xls----> .xls file(datasheet) strsheet---> worksheet within .xls workbook from where u want to import data. sheet_name----> Datatable in qtp where u want to import the .xls file Code: Function Import_ressources (parent_folder, proj_name, src_file, src_sheet, dest_sheet) Regards, Sankalp |