You can always write a stand alone python tool that pretends that it is a
browser, does the GET, confirms that the form looks right, gathers the
cookies or other CSRF token souces, and does the POST, including attaching
the uploaded data parts.  But since this requires dipping into HTTP and
HTML further than most people go, it has the potential to be more
complicated than what you are testing.  Perhaps someone has already done
this and will comment.

Of course this doesn't test any browser JavaScript that you are using.

Another approach, probably even more complex, is to add to your favorite
browser(s) the ability to script the filling of upload fields.

There are engines that allow you to script clicking and typing on a
desktop, but I have no experience with them, and that sounds fragile to me,
since, for example, FireFox auto updates and where things are changes.

Bill

On Wed, Mar 20, 2013 at 2:19 PM, Daniel França <daniel.fra...@gmail.com>wrote:

> Hi all,
> I'm trying to set up tests for a upload using the plupload queue widget:
> http://www.plupload.com/
> I'm using Splinter for in-browser test, but I couldn't find a way to make
> it happen. Splinter has some methods to attach files, but only if it's a
> simple file field.
> Another way would be click the button to browse the files, and choose the
> file... but I don't think it's possible using Splinter (or selenium), is it?
> Or with drag-n-drop of the files.
>
> Anyone has any suggestion of the best way to automatize theses tests?
>
> --
> Daniel França,
> about.me/danielfranca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to