Micro Focus QTP (UFT) Forums
how can I save a DataTablefrom one test and import the same to another Test - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: how can I save a DataTablefrom one test and import the same to another Test (/Thread-how-can-I-save-a-DataTablefrom-one-test-and-import-the-same-to-another-Test)



how can I save a DataTablefrom one test and import the same to another Test - uma87 - 08-26-2011

Hi,

I have a datatable created for Test Script 1 which contains URLs for the script to run, I want to save this Datatable and import the same to another test script. is this possible. if yes how can i do this?


RE: how can I save a DataTablefrom one test and import the same to another Test - sshukla12 - 08-26-2011

Save ur datatable to .xls file and use it to another test script.

Hope this will resolve ur problem.
If u need code for this please let me know.

Regards,
Sankalp


RE: how can I save a DataTablefrom one test and import the same to another Test - uma87 - 08-26-2011

Is their any option from QTP to save datatable to excel?

DataTable.Import "FilePath" would do right to use it in another test?


RE: how can I save a DataTablefrom one test and import the same to another Test - sshukla12 - 08-26-2011

I don't think that it will work fine.
U have to save the datatable to excel and then import it to any other test.

Correct me if wrong.

Regards,
Sankalp