Hi Narender,
>>1) For .xlsfile object("Excel.Application"), but Iam using .CSV file for test data how to use connection string for this?
TestComplete supports CSV files for data driven tests. To connect to a CSV file, use the
DDT.CSVDriver(FileName) method. See
Using CSV Files as Data Storages for details.
>>2) Iam using Open office and saved my excel file as .xls, but while Iam executing Iam facing with this error (ActveX object can't create object: Excel.Application).
Anil is right. To read data from .xls files, Microsoft Excel should be installed on the computer. Unfortunately, Open Office does not provide the underlying programming components which are required by TestComplete.
Therefore, to use input data prepared in Open Office, you need to save it to the CSV format and then read it from TestComplete via the DDT.CSVDriver method.
Regards