Forum Discussion
- saaran11 years agoContributor
Thanks buddy,
1. "On error resume next" is used to avoid the run time error, but for me eventhough if run time error throws. i have to click it and proceed for execution.
2. can you show the screen shot to import excel sheet from desktop to test complete tool.
Once again thanks for your efforts.
Regards,
Sarankumar P
- saaran11 years agoContributor
Hi,
I tried by using STORE, but can't able to map the excel sheet inorder to import...
Can you please give some more suggestions or different ways to import excel sheet.
Regards,
Sarankumar P.
- finae11 years agoContributor
Another option for using/reading files :
use DDT.ExcelDriver
an example:
set xlDriver = DDT.ExcelDriver("C:\mytest\test.xls","Sheet1",true) xlDriver.First while not xlDriver.EOF col1Value=xlDriver.Value("TheColumnName") col1Name=xlDriver.ColumnName(ColumnIndex) ' i m sure this is 0 base ..///codes xlDriver.Next wendThis will read the xls file and loop through all records (make sure they are string base), until the last record
as far as the error mentioned, if the error is an application error and does not crash but allows you to continue (ie handled application thrown error), you can also consider using OnUnexpectedWindow.
- saaran11 years agoContributor
Thanks for your valuable reply..
To read data's from external file like excel sheet, i will use fso method to get value's from excel sheet.That's not a problem for me..
My quastion is, If you see UFT tool ,below expert view and keyword view excel strucure will be there like ("Global Sheet and Local Sheet"). like same way we can able to create excel sturcutre in test complete tool.
Thanks
Sarankumar P.