![JAR search and dependency download from the Maven repository](/logo.png)
FitNesseRoot.files.testResults.RestFixtureTests.IssueFixes.Issue170.20160517142345_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.Issue170</rootPath> <result> <counts> <right>4</right> <wrong>0</wrong> <ignores>1</ignores> <exceptions>0</exceptions> </counts> <date>2016-05-17T14:23:45+01:00</date> <runTimeInMillis>47</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/170">Issue #170</a> How to validate HTML</h3> <br/>The issue refers to inability to extract XPath from html.<br/>Actually the html in the Issue #170 redefines the default namespace.<br/><pre> &lt;html xmlns="http://www.foo.org/"&gt; &lt;head&gt; &lt;title&gt;ACS Simulator&lt;/title&gt; ... </pre> <br/><br/>As such the namespace must be defined for the XPath:<br/><br/><table> <tr class="slimRowTitle"> <td><span class="pass">Table: Rest Fixture Config</span></td> <td>conf</td> </tr> <tr class="slimRowColor0"> <td>restfixture.xml.namespace.context</td> <td><span class="pass">&amp;nbsp;defalias=http://www.foo.org/&amp;nbsp;</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">conf</td> </tr> <tr class="slimRowColor0"> <td>GET</td> <td><div><a href='http://localhost:9876/files/support/issue170.html'>/files/support/issue170.html</a></div></td> <td><div>200</div></td> <td><div>Content-Type&nbsp;:&nbsp;text/html<br/>Content-Length&nbsp;:&nbsp;5684<br/>Server&nbsp;:&nbsp;Jetty(6.0.2)</div></td> <td><div>&lt;html&nbsp;xmlns="http://www.foo.org/"&gt; <br/>&lt;head&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;ACS&nbsp;Simulator&lt;/title&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;link&nbsp;rel="stylesheet"&nbsp;type="text/css"&nbsp;href="https://www.datacash.com/CSS/application.css"/&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;style&nbsp;type="text/css"&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--&nbsp;/*&nbsp;&lt;![CDATA[&nbsp;*/ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.acs_iframe_size&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width:&nbsp;390px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height:&nbsp;400px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;]]&gt;&nbsp;*/ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/style&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;&nbsp;charset=iso-8859-1"/&gt; <br/>&lt;/head&gt; <br/>&lt;body&nbsp;onload="onLoadHandler();"&gt; <br/>&lt;div&nbsp;class='acs_iframe_size'&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;h1&gt;ACS&nbsp;Simulator&lt;/h1&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;form&nbsp;name="return_form" <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;action="https%3A%2F%2Fdev01-realm1-mothercare.demandware.net%2Fon%2Fdemandware.store%2FSites-MCENGB-Site%2Fdefault%2FHello-Start" <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;method="POST"&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;noscript&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;center&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h1&gt;Processing&nbsp;your&nbsp;3-D&nbsp;Secure&nbsp;Transaction&lt;/h1&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&gt;JavaScript&nbsp;is&nbsp;currently&nbsp;disabled&nbsp;or&nbsp;is&nbsp;not&nbsp;supported&nbsp;by&nbsp;your&nbsp;browser.&lt;/h2&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;Please&nbsp;click&nbsp;on&nbsp;the&nbsp;Submit&nbsp;button&nbsp;to&nbsp;continue&nbsp;the&nbsp;processing&nbsp;of&nbsp;your&nbsp;3-D&nbsp;secure&nbsp;transaction.&lt;/h3&gt; <br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="submit"&nbsp;value="Submit"/&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/center&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/noscript&gt; <br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;script&nbsp;language="javascript"&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!-- <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;onLoadHandler()&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.return_form.submit(); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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5/g+xstJIB+HvvAnqMns3RzbE3OUVhFjd+48SefYxXFSAkXkNEZq0MMWqJxMySrE <br/>D7mxoXSFatRWbaGHC1XMOfy2W3j5THG/bB3Y59uLJ+yXG46He5D7XTT2ehl9m/rrRfU/ASpnEJk= <br/>&lt;/textarea&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="hidden"&nbsp;name="MD"&nbsp;value="3400900054126447"/&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/form&gt; <br/>&lt;/div&gt; <br/> <br/>&lt;/body&gt; <br/>&lt;/html&gt; <br/></div></td> </tr> <tr class="slimRowColor1"> <td>let</td> <td>title</td> <td>body</td> <td><div>//defalias:title/text()</div></td> <td><div>ACS&nbsp;Simulator</div></td> </tr> </table> </content> <relativePageName>Issue170</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='RestFixtureConfig', args=[conf]}</instruction> <slimResult>pass(Table: Rest Fixture Config)</slimResult> <expectation> <status>pass</status> <instructionId>tableTable_1_0</instructionId> <col>0</col> <row>0</row> <type>ConstructionExpectation</type> <evaluationMessage>Table: Rest Fixture Config</evaluationMessage> </expectation> </instructionResult> <instructionResult> <instruction>{id='tableTable_1_1', instruction='call', instanceName='tableTable_1', methodName='doTable', args=[[[restfixture.xml.namespace.context, defalias=http://www.foo.org/ ]]]}</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>, conf]}</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, /files/support/issue170.html, , , ], [let, title, body, //defalias:title/text(), ]]]}</instruction> <slimResult>ignore()</slimResult> <expectation> <status>ignore</status> <instructionId>tableTable_2_1</instructionId> <type>TableTableExpectation</type> </expectation> </instructionResult> </instructions> </result> <finalCounts> <right>1</right> <wrong>0</wrong> <ignores>0</ignores> <exceptions>0</exceptions> </finalCounts> <totalRunTimeInMillis>47</totalRunTimeInMillis> </testResults>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy