POSTリクエストに smartrics-RestFixture-3.0-bin.zip を使用しようとしていますが、何らかの理由で失敗しています。サービス自体の問題のように見えますが、Fitnees を学んでいるので、テストにも問題があるかどうかはわかりません。
誰でも詳細を共有できますか、またはデモREST APIを使用してRestFixture/Wiki形式を使用したPOSTレストリクエストの例- http://www.thomas-bayer.com/sqlrest/CUSTOMER/
私の Wiki ベースの TC は以下のようになります - (ID = 20 の顧客データを追加しようとしています)
'''Trying to add customer 20 entry'''
!| smartrics.rest.fitnesse.fixture.FitRestFixture | http://www.thomas-bayer.com/sqlrest/CUSTOMER/ |
| setBody | <CUSTOMER xmlns:xlink="http://www.w3.org/1999/xlink"><ID>20</ID><FIRSTNAME>Anne1</FIRSTNAME><LASTNAME>Miller1</LASTNAME><STREET>201 Upland Pl.</STREET><CITY>Lyon1</CITY></CUSTOMER> |
| POST | /20| 200 | | |
エラーを下回っています:
<html><head><title>Apache Tomcat/7.0.26 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.26</h3></body></html>
提案してください。ありがとう!
更新日: 2015 年 4 月 6 日
POST メソッドを使用して新しい CUSTOMER エントリを追加しようとしましたが、間違っていました。PUT メソッドを使用する必要がありました。今日、PUT メソッドを使用して新しい CUSTOMER エントリを追加しようとしたところ、同じエラーが発生しました :(..
WEB サービスのみの問題のようです。