Content-Type : Multipart/mixed using FitNesseで HTTP POST リクエストを送信したい 。プロジェクトに必要なため、 Fitnesse Tool http://fitnesse.org/のみを使用するソリューションが必要です。ヘルプ/ガイダンスは素晴らしいでしょう。
2 に答える
マルチパート混合コンテンツ タイプのフィットネス フィクスチャを作成しました。既存の smartrics レスト フィクスチャcan handle only multipart/form-data NOT multipart/mixed
.
また、Httpcomponent 3.2 が multipart/mixed をサポートせず、multipart/form-data のみをサポートしていることも奇妙です。さらに悪いことに、マルチパート/混合をサポートしていないというドキュメントはありません。「multipart/form-data」コンテンツ タイプがいたるところにハードコードされていることがわかるのは、ソース コードを調べただけです。
私のフィクスチャは次を使用して書かれています:
Http component 4.3 : I have added additional support for multipart/mixed, apart from the already existing multipart/form-data
.Smartrics rest fixutre 3.0 : Extended the already existing restfixture class and the partfactory class to support multipart/mixed
.
https://code.google.com/p/multipart-rest-fitnesse-fixture/から器具をダウンロードし ます。
サンプル Fitnesse 使用法を説明するリクエスト: http://geekoolympics.blogspot.in/2014/01/multipart-fitnesse-fixture-for-restful.html