Today: Yesterday: Total: Online:
カテゴリー
その他
  • RSS1.0
  • RSS2.0
  • atom0.3
  • valid XHTML1.0
  • valid CSS2
  • Credit
RSSリーダーで購読する | この日記のはてなブックマーク数 | プロフィール
コメントが一番多い記事(233コメント):人の心理の裏をかくホームページ集客術:リピータになってもらうためには
ツイートが一番多い記事(94ツイート):ちょっと待て!twitterやfacebookに子供の写真を掲載する親達への警告
いいねが一番多い記事(574いいね):facebookスパムに要注意。なりすましの見分け方とアカウント乗っ取りの手口(2013年度版)

カテゴリー » JAVA » httpUnit November 07, 2011

httpunitでファイルアップロード ID:1320658575


uploadは
・PostMethodWebRequestを生成する際に以下のコンストラクタを使用して第二引数をtrueにしないとだめ
・webRequest.selectFileを使う必要あり

http://www.kazu.tv/blog/archives/000667.html
http://httpunit.sourcearchive.com/documentation/1.7plus-pdfsg/classcom_1_1meterware_1_1httpunit_1_1FileUploadTest_ae64f9d07277e80bc175c021defdd14d.html
http://svn.atlassian.com/svn/public/atlassian/vendor/httpunit-1.5.4/tags/httpunit-1.5.4-atlassian-1/src/test/java/com/meterware/httpunit/FileUploadTest.java
http://lists.canoo.com/pipermail/webtest/2002q4/000336.html

read error
http://permalink.gmane.org/gmane.comp.web.httpunit.devel/2359

より、ファイルアップロードのサンプル
http://httpunit.svn.sourceforge.net/viewvc/httpunit/trunk/httpunit/test/com/meterware/httpunit/FileUploadTest.java?view=log
ソースのサンプルダウンロードができる

実際に動いたソースは
http://httpunit.svn.sourceforge.net/viewvc/httpunit/trunk/httpunit/test/com/meterware/httpunit/FileUploadTest.java?revision=1031&view=markup
— posted by midilin @ 06:36PM | Comment(0)

コメントをどうぞ。名前(ペンネーム)は必須です。URLはオプションです。

Comment Form
名前(ペンネーム): 文字色:
リンク作成 »
スパム対策画像認証(右に表示されている画像の番号を入れてください):
下のアイコンをクリックするとテキストエリアに挿入できます
:) :D 8-) ;-) :P :E :o :( (TT) ):T (--) (++!) ?;w) (-o-) (**!) ;v) f(--; :B l_P~ (QQ)

←メールアドレスを入力しておくと midilin がレスをした際に通知します: