Forum Discussion
Tool is generating the CSV file, which is used as the input source for the Automation. I will be using those values as the input to the application which is read from CSV using DDT CSV Driver.
What tool?
(You really need to give specific information if you want useful answers!)
And try manually creating a CSV yourself (using notepad) and feed it that and see what happens. At least then that will tell you if the problem is the formatting of the CSV by "the tool" (whatever it is) or TestComplete when it reads it in.
All my tests (scripted) are data driven using data read in from an Excel spreadsheet (I don't use the DDT object, I have my own IDE extension modules which effectively form a test framework). I just tried feeding a textbox 10.10.10.10 from my Excel input sheet and it worked perfectly. The Excel cell format is "General" but the 10.10.10.10 being preceeded by "P:" (part of my framework, the "P:" indicates a parameter. It's not part of the actual data it feeds the TextBox) would likely cause Excel to treat it as Text and so not try and apply any crazy number formatting to it (which it would without the "P:").
- vijay_bhaskar10 years agoOccasional Contributor
I just created the CSV manually and tried it gives the same output.
please find the code and CSV file attached
function csv()
{
var FileName = "C:\\Users\\XXX\\Desktop\\testing.csv"
var output= DDT["CSVDriver"](FileName)
while (!output["EOF"]()){
Log["Message"](output["Value"]("test"))
}
DDT["CloseDriver"](output["Name"])
}
Regards
Vijay Bhaskar U
- Colin_McCrae10 years agoCommunity Hero
When I click or download that, it comes through as an Excel 2003 .xls file?
What did you create it with? If you created it with Excel, but saved it as a CSV ..... don't. Create it using NotePad.
- vijay_bhaskar10 years agoOccasional Contributor
I even tried creating it with Excel, but saved it as a CSV .. still it gives the same result
I have attached the created CSV file.
Regards
Vijay Bhaskar U
Related Content
Recent Discussions
- 12 hours ago