Forum Discussion

vladm's avatar
vladm
Occasional Contributor
14 years ago

CSV Driver doesn't see columns of csv file

Hi All, help me please to find the reason of such problem:



Dashboard_drv = DDT.CSVDriver("C:\\Documents and Settings\\Administrator\\Desktop\\FILES AFTER UPLOAD to COMPARE\\Dashboard.csv");

var Col_Num = Dashboard_drv.ColumnCount;

var Col_Name, i;

Log.Message(Col_Num);



for ( i=0; i < Col_Num; i++ )

{

Col_Name = Dashboard_drv.ColumnName(i);

Log.Message(Col_Name);

}





After executing this code CSV driver said that Col_Num = 1 but file contains 23 columns.



Any ideas?



Interesting fact: This code worked successfully on physical machine but after moving my Test Complete to virtual machine i got such problem.



Maybe some differences in Regional and language options???







Thanks.

2 Replies

  • vladm's avatar
    vladm
    Occasional Contributor

    I'm sorry, but i thought that this topic is not under your responsibility. That's why i decided to write the same question in "Adobe Flash, Flex and AIR Application Testing" area in order to get an answer as quickly as possible. 


    This will not happen again. Thanks a lot.