![JAR search and dependency download from the Maven repository](/logo.png)
FitNesseRoot.files.testResults.RestFixtureTests.PutTests.20160312222349_1_0_0_0.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartrics-RestFixture-LiveDoc Show documentation
Show all versions of smartrics-RestFixture-LiveDoc Show documentation
FitNesse tests documenting the RestFixture
<?xml version="1.0"?> <testResults> <FitNesseVersion>v20150424</FitNesseVersion> <rootPath>RestFixtureTests.PutTests</rootPath> <result> <counts> <right>9</right> <wrong>0</wrong> <ignores>0</ignores> <exceptions>0</exceptions> </counts> <runTimeInMillis>48</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/><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>This test shows how to pass bespoke headers in the request. In this specific case, the stub echoes back the 'Echo-Header', so that the <br/>following PUT and GET can match it the response.<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>setBody</td> <td colspan="4">&lt;resource&gt;&lt;name&gt;name being updated&lt;/name&gt;&lt;data&gt;data being updated&lt;/data&gt;&lt;/resource&gt;</td> </tr> <tr class="slimRowColor1"> <td>setHeader</td> <td colspan="4"><div>Echo-Header&nbsp;:&nbsp;echoed</div></td> </tr> <tr class="slimRowColor0"> <td>PUT</td> <td><div><a href='http://localhost:9876/resources/0'>/resources/0</a></div></td> <td><span class="pass"><div>200</div></span></td> <td><span class="pass"><div>Echo-Header&nbsp;:&nbsp;echoed<br/><i><span class='fit_label'>expected</span></i><hr/><br/>Echo-Header&nbsp;:&nbsp;echoed<br/>Content-Length&nbsp;:&nbsp;0<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>no-body</div></span></td> </tr> <tr class="slimRowColor1"> <td>GET</td> <td><div><a href='http://localhost:9876/resources/0'>/resources/0</a></div></td> <td><span class="pass"><div>200</div></span></td> <td><span class="pass"><div>Echo-Header&nbsp;:&nbsp;echoed<br/><i><span class='fit_label'>expected</span></i><hr/><br/>Echo-Header&nbsp;:&nbsp;echoed<br/>Set-Cookie&nbsp;:&nbsp;JID="ABC.${a.y}";<br/>Content-Type&nbsp;:&nbsp;application/xml;charset=ISO-8859-1<br/>Content-Length&nbsp;:&nbsp;83<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/>&nbsp;/resource/name[text()='name&nbsp;being&nbsp;updated']&nbsp;&lt;br/&gt;<br/>&nbsp;/resource/data[text()='data&nbsp;being&nbsp;updated']<br/><br/><i><span class='fit_label'>expected</span></i><hr/><br/>&lt;resource&gt;&lt;name&gt;name&nbsp;being&nbsp;updated&lt;/name&gt;&lt;data&gt;data&nbsp;being&nbsp;updated&lt;/data&gt;&lt;/resource&gt;<br/><i><span class='fit_label'>actual</span></i></div></span></td> </tr> </table> </content> <relativePageName>PutTests</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=[[[setBody, <resource><name>name being updated</name><data>data being updated</data></resource>], [setHeader, Echo-Header : echoed], [PUT, /resources/0, 200, Echo-Header : echoed, no-body], [GET, /resources/0, 200, Echo-Header : echoed, /resource/name[text()='name being updated'] <br/> /resource/data[text()='data being updated'] ]]]}</instruction> <slimResult>pass()</slimResult> <expectation> <status>pass</status> <instructionId>tableTable_1_1</instructionId> <type>TableTableExpectation</type> </expectation> </instructionResult> </instructions> </result> <finalCounts> <right>1</right> <wrong>0</wrong> <ignores>0</ignores> <exceptions>0</exceptions> </finalCounts> <totalRunTimeInMillis>48</totalRunTimeInMillis> </testResults>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy