| || |
How to export Excel sheet when Executing QTP scripts from TD
I am excuting QTP scripts from Test Director.
When using below mention code to export excel,it is working fine
datatable.ExportSheet "C:\QTP_Tests\Result_Folder\Results_ORDER.xls","Or der"
But when i want to export to Test Director,it is giving Error.
datatable.ExportSheet "[QualityCenter] Subject\Tests_QTP\Results_ORDER.xls","Order"
what may be the problem ?
It is not giving sntax error.
Run time it is not exporting.
Re: How to export Excel sheet when Executing QTP scripts from TD
You cannot use the path "[QualityCenter] Subject\Tests_QTP\Results_ORDER.xls" as file system path. The export sheet function expects a file system path. You would need to use TDAPIs to attach the file into the specified script