2016-06-28 5 views
0

を許可されていない405の方法Jmeter_レスポンスエラーのように:</strong>:HTTPレスポンスコード:私は<strong><p> </p>以下サンプラー要求としてJMeterは、その投げエラーを使用してHTTPのPOSTメソッドを使用してWebアプリケーションに画像をアップロードしようとしていたときに

Size in bytes: 436 
Headers size in bytes: 335 
Body size in bytes: 101 
Sample Count: 1 
Error Count: 1 
Data type ("text"|"bin"|""): text 
Response code: 405 
Response message: Method Not Allowed 

Response headers: 
HTTP/1.1 405 Method Not Allowed 
Allow: GET, HEAD, OPTIONS, TRACE 
Content-Length: 101 
Content-Type: text/html 
Server: Microsoft-IIS/8.0 
X-Powered-By: ASP.NET 
Set-Cookie: ARRAffinity=a1634f39ccba9517317254d32be7078bb62c2877a947d85cab990f2708382045;Path=/;Domain=revflexsit.azurewebsites.net 
Date: Tue, 28 Jun 2016 10:04:41 GMT 


HTTPSampleResult fields: 
ContentType: text/html 
DataEncoding: null 

要求:

POST http://revflexsit.azurewebsites.net/#//testerprofile 

POST data: 
--8WPDqrXY5glD81_9CcLHn-xfOTrWvH4Dh4srjx 
Content-Disposition: form-data; name="profileUploadPhoto"; filename="Tulips.jpg" 
Content-Type: image/jpeg 
Content-Transfer-Encoding: binary 

<actual file content, not shown here> 
--8WPDqrXY5glD81_9CcLHn-xfOTrWvH4Dh4srjx-- 


[no cookies] 

Request Headers: 
Connection: keep-alive 
Content-Length: 621121 
Content-Type: multipart/form-data; boundary=8WPDqrXY5glD81_9CcLHn-xfOTrWvH4Dh4srjx; charset=US-ASCII 
Host: revflexsit.azurewebsites.net 
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_40) 

応答データ:

The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used. 

答えて

2

サーバの応答はかなり自明である、あなたは、そのURLにPOSTリクエストを作るだけHEAD、OPTION、GETやものをトレースすることができていません。

HTTP(S) Test Script Recorderを使用してテストシナリオを記録し、必要に応じて結果のテスト「スケルトン」を変更しないのはなぜですか?

あなたはまだ手動でシナリオを構築するために熱望している場合は、http://revflexsit.azurewebsites.net/サイトに探して、正しい要求は次のようになりますようだ:

  • パス:/api/TesterProfile/UploadTesterProfile?Id=${YOUR_ID_HERE}&UpdateAdminId=0&dimensions=x,y,x,y
  • ファイルのアップロード:

    • ファイルパス:アップロードしようとしている画像のフルパス
    • パラメータ名:profileUploadPhoto
    • MIMEタイプ:関連写真MIME Type

はボックス "POSTのために使用multipart/form-data" をティックすることを忘れないでください。

詳細については、How to Test Image Upload Functionality With JMeterを参照してください。

+0

ありがとうございました.... –

関連する問題

 関連する問題