Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
FitNesseRoot.files.testResults.RestFixtureTests.PostTests.20160517142346_1_0_0_0.xml Maven / Gradle / Ivy
<?xml version="1.0"?>
<testResults>
<FitNesseVersion>v20151230</FitNesseVersion>
<rootPath>RestFixtureTests.PostTests</rootPath>
<result>
<counts>
<right>51</right>
<wrong>0</wrong>
<ignores>0</ignores>
<exceptions>0</exceptions>
</counts>
<date>2016-05-17T14:23:46+01:00</date>
<runTimeInMillis>234</runTimeInMillis>
<content><div class="collapsible closed"><ul><li><a href='#' class='expandall'>Expand</a></li><li><a href='#' class='collapseall'>Collapse</a></li></ul>
<p class="title">Included page: <a href="RestFixtureTests.SetUp">.RestFixtureTests.SetUp</a> <a href="RestFixtureTests.SetUp?edit&amp;redirectToReferer=true&amp;redirectAction=" class="edit">(edit)</a></p>
<div><table>
<tr class="slimRowTitle">
<td>script</td>
<td colspan="2"><span class="pass">smartrics.rest.test.fitnesse.fixture.HttpServerFixture</span></td>
</tr>
<tr class="slimRowColor0">
<td>check</td>
<td>is started</td>
<td><span class="pass">true</span></td>
</tr>
<tr class="slimRowColor9">
<td colspan="3"><span class="pass">reset resources database</span></td>
</tr>
</table>
</div>
</div>
<br/>Posting an XML should create a resource<br/><br/><div class="collapsible"><ul><li><a href='#' class='expandall'>Expand</a></li><li><a href='#' class='collapseall'>Collapse</a></li></ul>
<p class="title">Note</p>
<div>You set the body for the POST operation with the setBody.<br/>Here you can see how <b>let</b> is used. The first cell is the <i>label</i> of the variable.<br/>The follwoing cell indicates where to get the data from. That is either the <i>header</i> or the _body_ of the last successful HTTP response<br/>Then the expression to extract the value to be assigned to he variable. For <i>header</i> it has to be a regular expression, for _body_ it<br/>has to be an XPath whose execution must return a String node.<br/></div>
</div>
<table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>let</td>
<td>name</td>
<td>const</td>
<td><div>test&nbsp;post</div></td>
<td><div>test&nbsp;post</div></td>
</tr>
<tr class="slimRowColor1">
<td>setBody</td>
<td colspan="4"><span class="pass"><div>&lt;resource&gt;&lt;name&gt;test&nbsp;post&lt;/name&gt;&lt;data&gt;some&nbsp;data&lt;/data&gt;&lt;/resource&gt;</div></span></td>
</tr>
<tr class="slimRowColor0">
<td>POST</td>
<td><div><a href='http://localhost:9876/resources'>/resources</a></div></td>
<td><span class="pass"><div>201</div></span></td>
<td><div>Location&nbsp;:&nbsp;/resources/2<br/>Content-Length&nbsp;:&nbsp;0<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div>no-body</div></span></td>
</tr>
<tr class="slimRowColor1">
<td>let</td>
<td>id</td>
<td>header</td>
<td><div>Location:/resources/(.+)</div></td>
<td><div>2</div></td>
</tr>
</table>
<br/><div class="collapsible"><ul><li><a href='#' class='expandall'>Expand</a></li><li><a href='#' class='collapseall'>Collapse</a></li></ul>
<p class="title">Note</p>
<div>Variables are global: here the GET op is executed on an URI containing <b>%id%</b> where the label 'id' is defined in the test above.<br/>The test succeedes only if the resulting XPath match the XML used for the creation of the resource.<br/>You can also put variables in the expected result<br/>The subsequent <b>let</b> operation shows how to use XPaths in the body.<br/><br/>Label values can be accessed from code using <b>new Variables().get("labelname");</b><br/></div>
</div>
<br/><div class="collapsible"><ul><li><a href='#' class='expandall'>Expand</a></li><li><a href='#' class='collapseall'>Collapse</a></li></ul>
<p class="title">Note on fit.Fixture symbol map</p>
<div>Labels are implemented on top of the Fitnesse symbols map. So every label set via <a href="RestFixture">.RestFixture</a> is accessible via <b>fit.Fixture.getSymbol()</b>.<br/><br/>If a label starts with $, the $ is ignored.<br/></div>
</div>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>GET</td>
<td><div><a href='http://localhost:9876/resources/2'>/resources/2</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Set-Cookie&nbsp;:&nbsp;JID="ABC.${a.y}";<br/>Content-Type&nbsp;:&nbsp;application/xml;charset=ISO-8859-1<br/>Content-Length&nbsp;:&nbsp;65<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div><br/>&nbsp;/resource/name[text()='test&nbsp;post']&lt;br/&gt;<br/>&nbsp;/resource/data[text()='some&nbsp;data']<br/><br/><i><span class='fit_label'>expected</span></i><hr/><br/>&lt;resource&gt;&lt;name&gt;test&nbsp;post&lt;/name&gt;&lt;data&gt;some&nbsp;data&lt;/data&gt;&lt;/resource&gt;<br/><i><span class='fit_label'>actual</span></i></div></span></td>
</tr>
<tr class="slimRowColor1">
<td>let</td>
<td>name</td>
<td>body</td>
<td><div>/resource/name/text()</div></td>
<td><div>test&nbsp;post</div></td>
</tr>
<tr class="slimRowColor0">
<td>let</td>
<td>$symName</td>
<td>body</td>
<td><div>/resource/name/text()</div></td>
<td><div>test&nbsp;post</div></td>
</tr>
</table>
<br/>Labels that are set to null are rendered using the default value for null, e.g. the string "null"<br/><br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>GET</td>
<td><div><a href='http://localhost:9876/resources/2'>/resources/2</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Set-Cookie&nbsp;:&nbsp;JID="ABC.${a.y}";<br/>Content-Type&nbsp;:&nbsp;application/xml;charset=ISO-8859-1<br/>Content-Length&nbsp;:&nbsp;65<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><div>&lt;resource&gt;&lt;name&gt;test&nbsp;post&lt;/name&gt;&lt;data&gt;some&nbsp;data&lt;/data&gt;&lt;/resource&gt;</div></td>
</tr>
<tr class="slimRowColor1">
<td>let</td>
<td>thisIsNull</td>
<td>body</td>
<td><div>/resource/somewhereelse/text()</div></td>
<td></td>
</tr>
<tr class="slimRowColor0">
<td>comment</td>
<td colspan="4"><div>this&nbsp;is&nbsp;null:&nbsp;'null'</div></td>
</tr>
</table>
<br/>Albeit, the value can be overridden<br/><br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture Config</span></td>
<td>withBespokeNullRepresentation</td>
</tr>
<tr class="slimRowColor0">
<td>restfixture.null.value.representation</td>
<td><span class="pass"></span></td>
</tr>
</table>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td><a href="http://localhost:9876">http://localhost:9876</a></td>
<td colspan="3">withBespokeNullRepresentation</td>
</tr>
<tr class="slimRowColor0">
<td>GET</td>
<td><div><a href='http://localhost:9876/resources/2'>/resources/2</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Set-Cookie&nbsp;:&nbsp;JID="ABC.${a.y}";<br/>Content-Type&nbsp;:&nbsp;application/xml;charset=ISO-8859-1<br/>Content-Length&nbsp;:&nbsp;65<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><div>&lt;resource&gt;&lt;name&gt;test&nbsp;post&lt;/name&gt;&lt;data&gt;some&nbsp;data&lt;/data&gt;&lt;/resource&gt;</div></td>
</tr>
<tr class="slimRowColor1">
<td>let</td>
<td>thisIsNull</td>
<td>body</td>
<td><div>/resource/somewhereelse/text()</div></td>
<td></td>
</tr>
<tr class="slimRowColor0">
<td>comment</td>
<td colspan="4"><div>this&nbsp;is&nbsp;null:&nbsp;''</div></td>
</tr>
</table>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture Config</span></td>
<td>withBespokeNullRepresentation</td>
</tr>
<tr class="slimRowColor0">
<td>restfixture.null.value.representation</td>
<td><span class="pass">NIL</span></td>
</tr>
</table>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td><a href="http://localhost:9876">http://localhost:9876</a></td>
<td colspan="3">withBespokeNullRepresentation</td>
</tr>
<tr class="slimRowColor0">
<td>GET</td>
<td><div><a href='http://localhost:9876/resources/2'>/resources/2</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Set-Cookie&nbsp;:&nbsp;JID="ABC.${a.y}";<br/>Content-Type&nbsp;:&nbsp;application/xml;charset=ISO-8859-1<br/>Content-Length&nbsp;:&nbsp;65<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><div>&lt;resource&gt;&lt;name&gt;test&nbsp;post&lt;/name&gt;&lt;data&gt;some&nbsp;data&lt;/data&gt;&lt;/resource&gt;</div></td>
</tr>
<tr class="slimRowColor1">
<td>let</td>
<td>thisIsNull</td>
<td>body</td>
<td><div>/resource/somewhereelse/text()</div></td>
<td></td>
</tr>
<tr class="slimRowColor0">
<td>comment</td>
<td colspan="4"><div>this&nbsp;is&nbsp;null:&nbsp;'NIL'</div></td>
</tr>
</table>
<br/><br/><div class="collapsible"><ul><li><a href='#' class='expandall'>Expand</a></li><li><a href='#' class='collapseall'>Collapse</a></li></ul>
<p class="title">Json</p>
<div>Expectations can be asserted also in json format for responses whose content type is 'application/json'<br/>Variables may be substitued in the expected result<br/></div>
</div>
<table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>setBody</td>
<td colspan="4"> { "resource" : { "name" : "test post", "data" : "some data" } } </td>
</tr>
<tr class="slimRowColor1">
<td>POST</td>
<td><div><a href='http://localhost:9876/resources/'>/resources/</a></div></td>
<td><span class="pass"><div>201</div></span></td>
<td><div>Location&nbsp;:&nbsp;/resources/3<br/>Content-Length&nbsp;:&nbsp;0<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div>no-body</div></span></td>
</tr>
<tr class="slimRowColor0">
<td>let</td>
<td>id</td>
<td>header</td>
<td><div>Location:/resources/(.+)</div></td>
<td><div>3</div></td>
</tr>
</table>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>GET</td>
<td><div><a href='http://localhost:9876/resources/3.json'>/resources/3.json</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><span class="pass"><div>Content-Type&nbsp;:&nbsp;application/json<br/><i><span class='fit_label'>expected</span></i><hr/><br/>Set-Cookie&nbsp;:&nbsp;JID="ABC.${a.y}";<br/>Content-Type&nbsp;:&nbsp;application/json;charset=ISO-8859-1<br/>Content-Length&nbsp;:&nbsp;65<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)<br/><i><span class='fit_label'>actual</span></i></div></span></td>
<td><span class="pass"><div><br/>jsonbody.resource.name=='test&nbsp;post'&nbsp;&lt;br/&gt;<br/>jsonbody.resource.data=='some&nbsp;data'<br/><br/><i><span class='fit_label'>expected</span></i><hr/><br/>&nbsp;{&nbsp;"resource"&nbsp;:&nbsp;{&nbsp;"name"&nbsp;:&nbsp;"test&nbsp;post",&nbsp;"data"&nbsp;:&nbsp;"some&nbsp;data"&nbsp;}&nbsp;}&nbsp;<br/><i><span class='fit_label'>actual</span></i></div></span></td>
</tr>
</table>
<br/><div class="collapsible"><ul><li><a href='#' class='expandall'>Expand</a></li><li><a href='#' class='collapseall'>Collapse</a></li></ul>
<p class="title">File uploads</p>
<div>Use the multipartFile property to upload files to a server<br/></div>
</div>
<br/><table>
<tr class="slimRowTitle">
<td>script</td>
<td colspan="2"><span class="pass">smartrics.rest.test.fitnesse.fixture.FileUtilFixture</span></td>
</tr>
<tr class="slimRowColor3">
<td>content</td>
<td colspan="2"> { "resource" : { "name" : "test post", "data" : "some data" } } </td>
</tr>
<tr class="slimRowColor7">
<td>name</td>
<td colspan="2">target/live-docs-temp/tempfile</td>
</tr>
<tr class="slimRowColor0">
<td>check</td>
<td>create</td>
<td><span class="pass">true</span></td>
</tr>
<tr class="slimRowColor0">
<td>check</td>
<td>exists</td>
<td><span class="pass">true</span></td>
</tr>
</table>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>setMultipartFileName</td>
<td colspan="4">target/live-docs-temp/tempfile</td>
</tr>
<tr class="slimRowColor1">
<td>POST</td>
<td><div><a href='http://localhost:9876/resources/'>/resources/</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Content-Type&nbsp;:&nbsp;text/plain;&nbsp;charset=ISO-8859-1<br/>Transfer-Encoding&nbsp;:&nbsp;chunked<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div>file:&nbsp;{&nbsp;"resource"&nbsp;:&nbsp;{&nbsp;"name"&nbsp;:&nbsp;"test&nbsp;post",&nbsp;"data"&nbsp;:&nbsp;"some&nbsp;data"&nbsp;}&nbsp;}</div></span></td>
</tr>
</table>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>setMultipartFileName</td>
<td colspan="4">target/live-docs-temp/tempfile</td>
</tr>
<tr class="slimRowColor1">
<td>setMultipartFileParameterName</td>
<td colspan="4">abc123</td>
</tr>
<tr class="slimRowColor0">
<td>POST</td>
<td><div><a href='http://localhost:9876/resources/'>/resources/</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Content-Type&nbsp;:&nbsp;text/plain;&nbsp;charset=ISO-8859-1<br/>Transfer-Encoding&nbsp;:&nbsp;chunked<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div>abc123:&nbsp;{&nbsp;"resource"&nbsp;:&nbsp;{&nbsp;"name"&nbsp;:&nbsp;"test&nbsp;post",&nbsp;"data"&nbsp;:&nbsp;"some&nbsp;data"&nbsp;}&nbsp;}</div></span></td>
</tr>
</table>
<br/>Use simple file upload<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>setFileName</td>
<td colspan="4">target/live-docs-temp/tempfile</td>
</tr>
<tr class="slimRowColor1">
<td>POST</td>
<td><div><a href='http://localhost:9876/resources/'>/resources/</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Content-Type&nbsp;:&nbsp;text/plain;&nbsp;charset=ISO-8859-1<br/>Transfer-Encoding&nbsp;:&nbsp;chunked<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div>{&nbsp;"resource"&nbsp;:&nbsp;{&nbsp;"name"&nbsp;:&nbsp;"test&nbsp;post",&nbsp;"data"&nbsp;:&nbsp;"some&nbsp;data"&nbsp;}&nbsp;}</div></span></td>
</tr>
</table>
<br/><br/><table>
<tr class="slimRowTitle">
<td>script</td>
<td colspan="2"><span class="pass">smartrics.rest.test.fitnesse.fixture.FileUtilFixture</span></td>
</tr>
<tr class="slimRowColor7">
<td>name</td>
<td colspan="2">target/live-docs-temp/tempfile</td>
</tr>
<tr class="slimRowColor0">
<td>check</td>
<td>delete</td>
<td><span class="pass">true</span></td>
</tr>
<tr class="slimRowColor0">
<td>check</td>
<td>exists</td>
<td><span class="pass">false</span></td>
</tr>
</table>
<br/>Other than the aforementioned content types you can emulate form POSTs. <br/>Remember to escape the setBody content cell with <br/><br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>setHeader</td>
<td colspan="4"><div>Content-Type&nbsp;:&nbsp;application/x-www-form-urlencoded;charset=UTF-8</div></td>
</tr>
<tr class="slimRowColor1">
<td>setBody</td>
<td colspan="4">name=test%20post&amp;data=some%20data</td>
</tr>
<tr class="slimRowColor0">
<td>POST</td>
<td><div><a href='http://localhost:9876/resources'>/resources</a></div></td>
<td><span class="pass"><div>201</div></span></td>
<td><div>Location&nbsp;:&nbsp;/resources/4<br/>Content-Length&nbsp;:&nbsp;0<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div>no-body</div></span></td>
</tr>
<tr class="slimRowColor1">
<td>let</td>
<td>id</td>
<td>header</td>
<td><div>Location:/resources/(.+)</div></td>
<td><div>4</div></td>
</tr>
</table>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>GET</td>
<td><div><a href='http://localhost:9876/resources/4'>/resources/4</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Set-Cookie&nbsp;:&nbsp;JID="ABC.${a.y}";<br/>Content-Type&nbsp;:&nbsp;application/xml;charset=ISO-8859-1<br/>Content-Length&nbsp;:&nbsp;68<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div><br/>&nbsp;/resource/name[text()='test&nbsp;post']<br/>&nbsp;/resource/data[text()='some&nbsp;data']<br/><br/><i><span class='fit_label'>expected</span></i><hr/><br/>&lt;resource&gt;<br/>&lt;name&gt;test&nbsp;post&lt;/name&gt;<br/>&lt;data&gt;some&nbsp;data&lt;/data&gt;<br/>&lt;/resource&gt;<br/><i><span class='fit_label'>actual</span></i></div></span></td>
</tr>
</table>
<br/>Header values can also be substituted with symbols previously defined:<br/><br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>let</td>
<td>contenttype</td>
<td>const</td>
<td><div>application/x-www-form-urlencoded;charset=UTF-8</div></td>
<td><div>application/x-www-form-urlencoded;charset=UTF-8</div></td>
</tr>
<tr class="slimRowColor1">
<td>setHeader</td>
<td colspan="4"><div>Content-Type&nbsp;:&nbsp;application/x-www-form-urlencoded;charset=UTF-8</div></td>
</tr>
<tr class="slimRowColor0">
<td>setBody</td>
<td colspan="4">name=test%20post&amp;data=some%20data</td>
</tr>
<tr class="slimRowColor1">
<td>POST</td>
<td><div><a href='http://localhost:9876/resources'>/resources</a></div></td>
<td><span class="pass"><div>201</div></span></td>
<td><div>Location&nbsp;:&nbsp;/resources/5<br/>Content-Length&nbsp;:&nbsp;0<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div>no-body</div></span></td>
</tr>
<tr class="slimRowColor0">
<td>let</td>
<td>id</td>
<td>header</td>
<td><div>Location:/resources/(.+)</div></td>
<td><div>5</div></td>
</tr>
</table>
<br/><table>
<tr class="slimRowTitle">
<td><span class="pass">Table: Rest Fixture</span></td>
<td colspan="4"><a href="http://localhost:9876">http://localhost:9876</a></td>
</tr>
<tr class="slimRowColor0">
<td>GET</td>
<td><div><a href='http://localhost:9876/resources/5'>/resources/5</a></div></td>
<td><span class="pass"><div>200</div></span></td>
<td><div>Set-Cookie&nbsp;:&nbsp;JID="ABC.${a.y}";<br/>Content-Type&nbsp;:&nbsp;application/xml;charset=ISO-8859-1<br/>Content-Length&nbsp;:&nbsp;68<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td>
<td><span class="pass"><div><br/>&nbsp;/resource/name[text()='test&nbsp;post']<br/>&nbsp;/resource/data[text()='some&nbsp;data']<br/><br/><i><span class='fit_label'>expected</span></i><hr/><br/>&lt;resource&gt;<br/>&lt;name&gt;test&nbsp;post&lt;/name&gt;<br/>&lt;data&gt;some&nbsp;data&lt;/data&gt;<br/>&lt;/resource&gt;<br/><i><span class='fit_label'>actual</span></i></div></span></td>
</tr>
</table>
<br/><br/></content>
<relativePageName>PostTests</relativePageName>
<instructions>
<instructionResult>
<instruction>{id='scriptTable_0_0', instruction='make', instanceName='scriptTableActor', className='smartrics.rest.test.fitnesse.fixture.HttpServerFixture', args=[]}</instruction>
<slimResult>pass(smartrics.rest.test.fitnesse.fixture.HttpServerFixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_0_0</instructionId>
<col>1</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>smartrics.rest.test.fitnesse.fixture.HttpServerFixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_0_1', instruction='call', instanceName='scriptTableActor', methodName='isStarted', args=[]}</instruction>
<slimResult>pass(true)</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_0_1</instructionId>
<col>2</col>
<row>1</row>
<type>ReturnedValueExpectation</type>
<evaluationMessage>true</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_0_2', instruction='call', instanceName='scriptTableActor', methodName='resetResourcesDatabase', args=[]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_0_2</instructionId>
<col>0</col>
<row>2</row>
<type>ScriptActionExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_1_0', instruction='make', instanceName='tableTable_1', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_1_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_1_1', instruction='call', instanceName='tableTable_1', methodName='doTable', args=[[[let, name, const, test post, ], [setBody, <resource><name>%name%</name><data>some data</data></resource>], [POST, /resources, 201, , no-body], [let, id, header, Location:/resources/(.+), ]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_1_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_2_0', instruction='make', instanceName='tableTable_2', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_2_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_2_1', instruction='call', instanceName='tableTable_2', methodName='doTable', args=[[[GET, /resources/%id%, 200, ,
/resource/name[text()='test post']<br/>
/resource/data[text()='some data']
], [let, name, body, /resource/name/text(), ], [let, $symName, body, /resource/name/text(), ]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_2_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_3_0', instruction='make', instanceName='tableTable_3', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_3_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_3_1', instruction='call', instanceName='tableTable_3', methodName='doTable', args=[[[GET, /resources/%id%, 200, , ], [let, thisIsNull, body, /resource/somewhereelse/text(), ], [comment, this is null: '%thisIsNull%']]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_3_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_4_0', instruction='make', instanceName='tableTable_4', className='RestFixtureConfig', args=[withBespokeNullRepresentation]}</instruction>
<slimResult>pass(Table: Rest Fixture Config)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_4_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture Config</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_4_1', instruction='call', instanceName='tableTable_4', methodName='doTable', args=[[[restfixture.null.value.representation, ]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_4_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_5_0', instruction='make', instanceName='tableTable_5', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>, withBespokeNullRepresentation]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_5_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_5_1', instruction='call', instanceName='tableTable_5', methodName='doTable', args=[[[GET, /resources/%id%, 200, , ], [let, thisIsNull, body, /resource/somewhereelse/text(), ], [comment, this is null: '%thisIsNull%']]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_5_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_6_0', instruction='make', instanceName='tableTable_6', className='RestFixtureConfig', args=[withBespokeNullRepresentation]}</instruction>
<slimResult>pass(Table: Rest Fixture Config)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_6_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture Config</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_6_1', instruction='call', instanceName='tableTable_6', methodName='doTable', args=[[[restfixture.null.value.representation, NIL]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_6_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_7_0', instruction='make', instanceName='tableTable_7', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>, withBespokeNullRepresentation]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_7_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_7_1', instruction='call', instanceName='tableTable_7', methodName='doTable', args=[[[GET, /resources/%id%, 200, , ], [let, thisIsNull, body, /resource/somewhereelse/text(), ], [comment, this is null: '%thisIsNull%']]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_7_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_8_0', instruction='make', instanceName='tableTable_8', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_8_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_8_1', instruction='call', instanceName='tableTable_8', methodName='doTable', args=[[[setBody, { "resource" : { "name" : "test post", "data" : "some data" } } ], [POST, /resources/, 201, , no-body], [let, id, header, Location:/resources/(.+), ]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_8_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_9_0', instruction='make', instanceName='tableTable_9', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_9_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_9_1', instruction='call', instanceName='tableTable_9', methodName='doTable', args=[[[GET, /resources/%id%.json, 200, Content-Type : application/json,
jsonbody.resource.name=='test post' <br/>
jsonbody.resource.data=='some data'
]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_9_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_10_0', instruction='make', instanceName='scriptTableActor', className='smartrics.rest.test.fitnesse.fixture.FileUtilFixture', args=[]}</instruction>
<slimResult>pass(smartrics.rest.test.fitnesse.fixture.FileUtilFixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_10_0</instructionId>
<col>1</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>smartrics.rest.test.fitnesse.fixture.FileUtilFixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_10_1', instruction='call', instanceName='scriptTableActor', methodName='content', args=[ { "resource" : { "name" : "test post", "data" : "some data" } } ]}</instruction>
<slimResult></slimResult>
<expectation>
<instructionId>scriptTable_10_1</instructionId>
<col>0</col>
<row>1</row>
<type>ScriptActionExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_10_2', instruction='call', instanceName='scriptTableActor', methodName='name', args=[target/live-docs-temp/tempfile]}</instruction>
<slimResult></slimResult>
<expectation>
<instructionId>scriptTable_10_2</instructionId>
<col>0</col>
<row>2</row>
<type>ScriptActionExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_10_3', instruction='call', instanceName='scriptTableActor', methodName='create', args=[]}</instruction>
<slimResult>pass(true)</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_10_3</instructionId>
<col>2</col>
<row>3</row>
<type>ReturnedValueExpectation</type>
<evaluationMessage>true</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_10_4', instruction='call', instanceName='scriptTableActor', methodName='exists', args=[]}</instruction>
<slimResult>pass(true)</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_10_4</instructionId>
<col>2</col>
<row>4</row>
<type>ReturnedValueExpectation</type>
<evaluationMessage>true</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_11_0', instruction='make', instanceName='tableTable_11', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_11_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_11_1', instruction='call', instanceName='tableTable_11', methodName='doTable', args=[[[setMultipartFileName, target/live-docs-temp/tempfile], [POST, /resources/, 200, , file: { "resource" : { "name" : "test post", "data" : "some data" } }]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_11_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_12_0', instruction='make', instanceName='tableTable_12', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_12_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_12_1', instruction='call', instanceName='tableTable_12', methodName='doTable', args=[[[setMultipartFileName, target/live-docs-temp/tempfile], [setMultipartFileParameterName, abc123], [POST, /resources/, 200, , abc123: { "resource" : { "name" : "test post", "data" : "some data" } }]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_12_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_13_0', instruction='make', instanceName='tableTable_13', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_13_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_13_1', instruction='call', instanceName='tableTable_13', methodName='doTable', args=[[[setFileName, target/live-docs-temp/tempfile], [POST, /resources/, 200, , { "resource" : { "name" : "test post", "data" : "some data" } }]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_13_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_14_0', instruction='make', instanceName='scriptTableActor', className='smartrics.rest.test.fitnesse.fixture.FileUtilFixture', args=[]}</instruction>
<slimResult>pass(smartrics.rest.test.fitnesse.fixture.FileUtilFixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_14_0</instructionId>
<col>1</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>smartrics.rest.test.fitnesse.fixture.FileUtilFixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_14_1', instruction='call', instanceName='scriptTableActor', methodName='name', args=[target/live-docs-temp/tempfile]}</instruction>
<slimResult></slimResult>
<expectation>
<instructionId>scriptTable_14_1</instructionId>
<col>0</col>
<row>1</row>
<type>ScriptActionExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_14_2', instruction='call', instanceName='scriptTableActor', methodName='delete', args=[]}</instruction>
<slimResult>pass(true)</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_14_2</instructionId>
<col>2</col>
<row>2</row>
<type>ReturnedValueExpectation</type>
<evaluationMessage>true</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='scriptTable_14_3', instruction='call', instanceName='scriptTableActor', methodName='exists', args=[]}</instruction>
<slimResult>pass(false)</slimResult>
<expectation>
<status>pass</status>
<instructionId>scriptTable_14_3</instructionId>
<col>2</col>
<row>3</row>
<type>ReturnedValueExpectation</type>
<evaluationMessage>false</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_15_0', instruction='make', instanceName='tableTable_15', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_15_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_15_1', instruction='call', instanceName='tableTable_15', methodName='doTable', args=[[[setHeader, Content-Type : application/x-www-form-urlencoded;charset=UTF-8], [setBody, name=test%20post&data=some%20data], [POST, /resources, 201, , no-body], [let, id, header, Location:/resources/(.+), ]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_15_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_16_0', instruction='make', instanceName='tableTable_16', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_16_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_16_1', instruction='call', instanceName='tableTable_16', methodName='doTable', args=[[[GET, /resources/%id%, 200, ,
/resource/name[text()='test post']
/resource/data[text()='some data']
]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_16_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_17_0', instruction='make', instanceName='tableTable_17', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_17_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_17_1', instruction='call', instanceName='tableTable_17', methodName='doTable', args=[[[let, contenttype, const, application/x-www-form-urlencoded;charset=UTF-8, ], [setHeader, Content-Type : %contenttype%], [setBody, name=test%20post&data=some%20data], [POST, /resources, 201, , no-body], [let, id, header, Location:/resources/(.+), ]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_17_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_18_0', instruction='make', instanceName='tableTable_18', className='RestFixture', args=[<a href="http://localhost:9876">http://localhost:9876</a>]}</instruction>
<slimResult>pass(Table: Rest Fixture)</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_18_0</instructionId>
<col>0</col>
<row>0</row>
<type>ConstructionExpectation</type>
<evaluationMessage>Table: Rest Fixture</evaluationMessage>
</expectation>
</instructionResult>
<instructionResult>
<instruction>{id='tableTable_18_1', instruction='call', instanceName='tableTable_18', methodName='doTable', args=[[[GET, /resources/%id%, 200, ,
/resource/name[text()='test post']
/resource/data[text()='some data']
]]]}</instruction>
<slimResult>pass()</slimResult>
<expectation>
<status>pass</status>
<instructionId>tableTable_18_1</instructionId>
<type>TableTableExpectation</type>
</expectation>
</instructionResult>
</instructions>
</result>
<finalCounts>
<right>1</right>
<wrong>0</wrong>
<ignores>0</ignores>
<exceptions>0</exceptions>
</finalCounts>
<totalRunTimeInMillis>234</totalRunTimeInMillis>
</testResults>