Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
added fileupload test for png
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Mar 18, 2011
1 parent 4f5648b commit f906b19
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Webinject/t/02-Test_Cases.t
Expand Up @@ -173,7 +173,7 @@ sub test_case_09 {
@ARGV = ($Bin."/data/09-fileupload.xml");
my $webinject = Webinject->new();
my $rc = $webinject->engine();
is($webinject->{'result'}->{'totalpassedcount'}, 2, '09-fileupload.xml - passed count');
is($webinject->{'result'}->{'totalpassedcount'}, 4, '09-fileupload.xml - passed count');
is($webinject->{'result'}->{'totalfailedcount'}, 0, '09-fileupload.xml - fail count');
is($rc, 0, '09-fileupload.xml - return code');
}
Expand Down
13 changes: 13 additions & 0 deletions Webinject/t/data/09-fileupload.xml
Expand Up @@ -10,4 +10,17 @@ upload...' )"
posttype="multipart/form-data"
verifypositive="Testing upload..."
/>

<case
id="2"
description1="sample File upload test - POST"
description2="verify file upload"
method="post"
url="http://cgi-lib.berkeley.edu/ex/fup.cgi"
postbody="( upfile => ['t/data/fileup2.png'], note => 'Testing
upload...' )"
posttype="multipart/form-data"
verifypositive="Testing upload..."
/>

</testcases>
Binary file added Webinject/t/data/fileup2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f906b19

Please sign in to comment.