Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 12447
Status: rejected
Priority: 0/
Queue: Test-WWW-Mechanize

People
Owner: Nobody in particular
Requestors: william [...] knowmad.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.04
Fixed in: (no value)



Subject: File upload tests
Great module! I'd been using HTTP::WebTest for years but am starting to like WWW::Mech more thanks to your work. Is there any plan or any way to do file upload testing? Thanks, William
Date: Thu, 28 Apr 2005 09:48:23 -0500
From: Andy Lester <andy [...] petdance.com>
To: Guest via RT <bug-Test-WWW-Mechanize [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #12447] File upload tests
RT-Send-Cc:
On Thu, Apr 28, 2005 at 09:37:22AM -0400, Guest via RT (bug-Test-WWW-Mechanize@rt.cpan.org) wrote: Show quoted text
> Great module! I'd been using HTTP::WebTest for years but am starting to like WWW::Mech more thanks to your work. Is there any plan or any way to do file upload testing?
How do you see such a thing working? xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
Show quoted text
> How do you see such a thing working?
Perhaps if I describe the scenario it will make more sense. I'm using Apache::Test for testing my web application. A::T starts up an apache server(s) on a high port (usu. 8529) from which I can perform both response and request testing. I'm using Test::WWW::Mechanize to do request tests. I need to submit a form which uploads a file to the server and checks the response. The Apache::TestRequest module has UPLOAD_* tests, but I haven't had any luck getting them to work yet. I figured that WWW::Mechanize would have a way to do the file upload. The docs have only a single sentence ("To upload a file, specify its file name explicitly.") which I haven't tested yet. From the sounds of it, a general post test may do the job. Perhaps something like the following: $mech->post_contains($url,%args); Does that make sense? Thanks, William
I'm closing this ticket as I move over to our new bug tracker at http://code.google.com/p/www-mechanize/issues/list. If you want to recreate this ticket now (2 years later), please do so. Thanks, Andy