Tris
6 years agoContributor
Possible to use csv file for variables in script?
Hi all, I'm attempting to use a csv file containing variables in a scripted function in order to use the variables within the csv file to generate a connection string. I've had a good look ar...
- 6 years ago
Rather than a CSV, consider using an INI file.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/storages/ini.html
If you need to use a CSV, you can open a text file using OpenTextFile and other methods of the aqFIle object and read lines from the CSV. You can then use aqString.GetListItem to grab a value from the comma separated fields in the row, assuming you set the ListSeparator property to a comma.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/opentextfile.html