![JAR search and dependency download from the Maven repository](/logo.png)
FitNesseRoot.files.testResults.RestFixtureTests.IssueFixes.Issue120.20160517141814_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>v20151230</FitNesseVersion> <rootPath>RestFixtureTests.IssueFixes.Issue120</rootPath> <result> <counts> <right>4</right> <wrong>0</wrong> <ignores>2</ignores> <exceptions>0</exceptions> </counts> <date>2016-05-17T14:18:14+01:00</date> <runTimeInMillis>42</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/><h3><a href="https://github.com/smartrics/RestFixture/issues/120">Issue #120</a> Render full URL for REST requests</h3> <br/>When you execute a <a href="RestFixture">.RestFixture</a> table only the path from the URL is currently rendered from column 2<br/>Ideally we would like to see a full URL here<br/><br/>The behaviour of the formatter controlling how the cells in position 1 is determined by the<br/>config property <pre>restfixture.display.absolute.url.in.full</pre> which by default is set to true.<br/><br/>In the following table (see source) the path to /resources/0 is <pre>%proto%://localhost:9876/resources/0</pre> <br/>and by default is should be rendered in full (the label 'proto' is assigned via let.)<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>proto</td> <td>const</td> <td><div>http</div></td> <td><div>http</div></td> </tr> <tr class="slimRowColor1"> <td>HEAD</td> <td><div><a href='http://localhost:9876/resources/0'>http://localhost:9876/resources/0</a></div></td> <td><div>200</div></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;183<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td> <td><div>no-body</div></td> </tr> </table> <br/>The config property is now set explicitly set to 'false'.<br/><br/><table> <tr class="slimRowTitle"> <td><span class="pass">Table: Rest Fixture Config</span></td> <td>withRestFixtureAbsoluteUrlInFullSetToFalse</td> </tr> <tr class="slimRowColor0"> <td>restfixture.display.absolute.url.in.full</td> <td><span class="pass">false</span></td> </tr> </table> <br/>With the property set, each absolute URL is rendered correctly only showing the file part of the URL.<br/><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">withRestFixtureAbsoluteUrlInFullSetToFalse</td> </tr> <tr class="slimRowColor0"> <td>comment</td> <td colspan="4"><div>the&nbsp;following&nbsp;URI&nbsp;should&nbsp;be&nbsp;NOT&nbsp;shown&nbsp;in&nbsp;full</div></td> </tr> <tr class="slimRowColor1"> <td>HEAD</td> <td><div><a href='http://localhost:9876/resources/0'>/resources/0</a></div></td> <td><div>200</div></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;183<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td> <td><div>no-body</div></td> </tr> <tr class="slimRowColor0"> <td>comment</td> <td colspan="4"><div>the&nbsp;following&nbsp;URI&nbsp;should&nbsp;be&nbsp;NOT&nbsp;in&nbsp;full&nbsp;and&nbsp;it&nbsp;is&nbsp;correctly&nbsp;shown&nbsp;in&nbsp;relative</div></td> </tr> <tr class="slimRowColor1"> <td>HEAD</td> <td><div><a href='http://localhost:9876/resources/0'>/resources/0</a></div></td> <td><div>200</div></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;183<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td> <td><div>no-body</div></td> </tr> </table> <br/>The property can also be set in the default config (see SuiteSetUp<a title="create page" href="RestFixtureTests.IssueFixes.SuiteSetUp?edit&amp;nonExistent=true">[?]</a>), as such, taking effect in each fixture.<br/><br/></content> <relativePageName>Issue120</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, proto, const, http, ], [HEAD, %proto%://localhost:9876/resources/0, , , ]]]}</instruction> <slimResult>ignore()</slimResult> <expectation> <status>ignore</status> <instructionId>tableTable_1_1</instructionId> <type>TableTableExpectation</type> </expectation> </instructionResult> <instructionResult> <instruction>{id='tableTable_2_0', instruction='make', instanceName='tableTable_2', className='RestFixtureConfig', args=[withRestFixtureAbsoluteUrlInFullSetToFalse]}</instruction> <slimResult>pass(Table: Rest Fixture Config)</slimResult> <expectation> <status>pass</status> <instructionId>tableTable_2_0</instructionId> <col>0</col> <row>0</row> <type>ConstructionExpectation</type> <evaluationMessage>Table: Rest Fixture Config</evaluationMessage> </expectation> </instructionResult> <instructionResult> <instruction>{id='tableTable_2_1', instruction='call', instanceName='tableTable_2', methodName='doTable', args=[[[restfixture.display.absolute.url.in.full, false]]]}</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>, withRestFixtureAbsoluteUrlInFullSetToFalse]}</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=[[[comment, the following URI should be NOT shown in full], [HEAD, %proto%://localhost:9876/resources/0, , , ], [comment, the following URI should be NOT in full and it is correctly shown in relative], [HEAD, /resources/0, , , ]]]}</instruction> <slimResult>ignore()</slimResult> <expectation> <status>ignore</status> <instructionId>tableTable_3_1</instructionId> <type>TableTableExpectation</type> </expectation> </instructionResult> </instructions> </result> <finalCounts> <right>1</right> <wrong>0</wrong> <ignores>0</ignores> <exceptions>0</exceptions> </finalCounts> <totalRunTimeInMillis>43</totalRunTimeInMillis> </testResults>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy