This is such a weird problem, I don't know if anyone can help but I thought
I'd ask.

We have several scripts that upload .csv files with no problems. We just
wrote a new one (though the code itself is not new). When this script runs
and uses setFileField to select the file and then submits to upload it, four
null rows are always uploaded. We can upload the same file manually and this
doesn't happen. (I even tried doing it with a Watir script, and it was fine,
which is what I expected since it drives the actual browser). If I add rows
to the file, it still will add four extra rows no matter how many real rows
are in the file. We've tried creating a brand new file from scratch in case
it was something funky about that file, no difference.

We're mystified as to how to solve this problem. I searched on the mail
archives and don't see anything like this (and indeed, it's never happened
to us before). Something about going thru the http rather than the actual
browser appears to find four extra null rows. When the app tries to insert
them in the db, we get an error, of course.

Any ideas even on how to debug this?
thanks
Lisa

-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter

Reply via email to