Re: TDD with Django/Splinter/plupload queue

2013-03-23 Thread Daniel França
Hi guys, Thanks for the answers. I'm gonna have a look in this phantomjs, I think it does what I need. Best, Daniel França On Wed, Mar 20, 2013 at 4:39 PM, Elliot Bradbury wrote: > PhantomJS is a headless webkit browser that can be programmed to perform > automated webpage tasks (like maybe sele

Re: TDD with Django/Splinter/plupload queue

2013-03-20 Thread Elliot Bradbury
PhantomJS is a headless webkit browser that can be programmed to perform automated webpage tasks (like maybe select a file for upload). The standard API is Javscript but I believe there is a Python port. Maybe that could help? http://phantomjs.org/ On Wed, Mar 20, 2013 at 3:34 PM, Bill Freeman w

Re: TDD with Django/Splinter/plupload queue

2013-03-20 Thread Bill Freeman
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 fu

TDD with Django/Splinter/plupload queue

2013-03-20 Thread Daniel França
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