| || |
Invalid variant operation
I want to read input from CSV file, but when I run test, it always fails and error message "invalid variant operation" shown up.the log said the error is in this line
I can't find what's wrong with this line, it seems fine.
After that, I tried using DDT project from test complete made easy book and it also failed. >.<
Is there anyone who also has the same problem ? thanks
Re: Invalid variant operation
You seem to be using the Files.FileNameByName method incorrectly. To make this line work, you need to add your file to the Files collection and name it "Test.csv" there (see the "About Files Collection" and "Stores.FileNameByName" help topics).
If your file is not in the Files collection, you just need to use its full name:
<font class="small">Code:</font><hr /><pre>DDT.CSVDriver("c:\\something\\Test.csv");</pre><hr />