Forum Discussion
Hi Michael,
Gennadiy is right. You can easily obtain the data stored in the CSV file from test and then compare the data generated by your reports equal to the file's contents. To obtain the exact value stored in the file from script, you can use CSVDriver:
Set Driver = DDT.CSVDriver("C:\MyFile.txt")
DDT.CurrentDriver.Value(i)
You can also obtain the values stored in the CSV file from a keyword test. For this purpose, use the Data-Driven Loop operation.
Below, are some links that will help you get started:
1. Reading Data From External Files
Describes how you can read data from external files with TestComplete.
2. CSV Variables
Describes the CSV variables that let you retrieve data from CSV files and save it to a TestComplete project.
3. DDT.CSVDriver
Describes the CSVDriver method.
4. Data-Driven Loop operation
Describes the Data-Driven Loop operation.
5. Data-Driven Testing With Scripts - Tutorial
Contains a data-driven testing tutorial (for scripts).
6. Data-Driven Testing With Keyword Tests - Tutorial
Contains a data-driven testing tutorial (for keyword tests).