Any guidance would be greatly appreciated.
--
Bob Silverberg
www.silverwareconsulting.com
is the problem when you use the plugin? if so, i think this is a tough
one to crack. Basically, it looks like the form scope isn't present
when you make webservice calls to a component, and that's why it
fails.
anyone else get around this?
marc
I'd have a component responsible for just the file upload and mock
that out. To me (FWIW), I'd say that testing the actual file upload is
an acceptance/functional test - not a unit test so I wouldn't do it
using a unit testing framework., Rather I'd test scenarios that
include that using Selenium or something similar as part of a set of
functional tests.
Best Wishes,
Peter
--
Bob Silverberg
www.silverwareconsulting.com
Just askin . . . :-)
Best Wishes,
Peter
I did think that perhaps the solution was to NOT test the cffile
upload, and that may be what I end up having to do, but without the
extra selenium test I don't think that my testing of the component
would be complete.
What do you think?
--
Bob Silverberg
www.silverwareconsulting.com
On Wed, Sep 17, 2008 at 2:05 PM, Bob Silverberg
--
Bob Silverberg
www.silverwareconsulting.com
i'm with peter on this one: you already know that cffile action =
upload works. so you're probably trying to test something else...
where does the file go, all the junk around the cffile. so if you
abstract out the cffile... even if it's into a separate single-line
method ... then you can easily mock it, have your mock function record
data you want to record or whatever, etc.
On Wed, Sep 17, 2008 at 2:05 PM, Bob Silverberg
Thanks guys!
--
Bob Silverberg
www.silverwareconsulting.com