seaside testing - fileUpload

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

seaside testing - fileUpload

carlo.t
Hi Liliana

This sounds like integration testing where arguably
one could assume that it will work if your webserver
is set up correctly.

What I am trying to say is that it may not be worth
testing something like this, unless you have a
particular case where mumbled results are being
received....

You could though read a file from the filesystem which
is of a particular type, and construct the WAFile and
send it through and compare this uploaded version vs
the filesystem one.


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: seaside testing - fileUpload

Liliana-2
Hi.

Actually, if I need to import comma delimited files with different number of
columns and need to identify the columns by their titles and read the values
in the correct object properties, I do need to write tests...

Thanks anyway :)

Liliana

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of snoobab
kicker
Sent: 20 February 2008 04:39 PM
To: [hidden email]
Subject: [Seaside] seaside testing - fileUpload

Hi Liliana

This sounds like integration testing where arguably
one could assume that it will work if your webserver
is set up correctly.

What I am trying to say is that it may not be worth
testing something like this, unless you have a
particular case where mumbled results are being
received....

You could though read a file from the filesystem which
is of a particular type, and construct the WAFile and
send it through and compare this uploaded version vs
the filesystem one.


 
____________________________________________________________________________
________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: seaside testing - fileUpload

Stefan Schmiedl
On Wed, 20 Feb 2008 17:02:48 +0200
"liliana" <[hidden email]> wrote:

> Hi.
>
> Actually, if I need to import comma delimited files with different number of
> columns and need to identify the columns by their titles and read the values
> in the correct object properties, I do need to write tests...

You're right, this is worthy of tests.

But: Those tests should have nothing to do with how the data got on the
server.

Prepare a CSV file and store its contents into a string, which
is what you feed into the parser. Or, if the parser is set up to work
on a stream, feed the parser a readStream on the file.

Don't slow your tests for serious matters down with transport details.

s.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside