11-03-2011, 03:49 PM
Hi,
I have to Excel files: File1.xls and File2.xls. I want to launch my QTP Test 2-times; the first time the test loads File1.xls, the second time loads File2.xls.
I want that this operation has automatized in a vbscript. The simplest solution, I think, is generate the script and the first put this code line
App.Test.Settings.Resources.DataTablePath = "C:\File1.xls"
and the second time this line
App.Test.Settings.Resources.DataTablePath = "C:\File2.xls"
Exist other solutions?
Thanks in advance
Andrea
I have to Excel files: File1.xls and File2.xls. I want to launch my QTP Test 2-times; the first time the test loads File1.xls, the second time loads File2.xls.
I want that this operation has automatized in a vbscript. The simplest solution, I think, is generate the script and the first put this code line
App.Test.Settings.Resources.DataTablePath = "C:\File1.xls"
and the second time this line
App.Test.Settings.Resources.DataTablePath = "C:\File2.xls"
Exist other solutions?
Thanks in advance
Andrea