All Downloads are FREE. Search and download functionalities are using the official Maven repository.

FitNesseRoot.files.testResults.RestFixtureTests.IssueFixes.Issue174.20160328214517_3_0_0_0.xml Maven / Gradle / Ivy

<?xml version="1.0"?>
<testResults>
  <FitNesseVersion>v20151230</FitNesseVersion>
  <rootPath>RestFixtureTests.IssueFixes.Issue174</rootPath>
    <result>
    <counts>
      <right>14</right>
      <wrong>0</wrong>
      <ignores>0</ignores>
      <exceptions>0</exceptions>
    </counts>
    <date>2016-03-28T21:45:18+01:00</date>
    <runTimeInMillis>477</runTimeInMillis>
    <content></content>
    <relativePageName>SuiteSetUp</relativePageName>
            <instructions>
            <instructionResult>
        <instruction>{id='import_0_0', instruction='import', path='smartrics.rest.fitnesse.fixture'}</instruction>
        <slimResult>pass(smartrics.rest.fitnesse.fixture)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>import_0_0</instructionId>
                    <col>0</col>
                              <row>1</row>
                    <type>ImportExpectation</type>
                                        <evaluationMessage>smartrics.rest.fitnesse.fixture</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='import_0_1', instruction='import', path='smartrics.rest.test.fitnesse.fixture'}</instruction>
        <slimResult>pass(smartrics.rest.test.fitnesse.fixture)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>import_0_1</instructionId>
                    <col>0</col>
                              <row>2</row>
                    <type>ImportExpectation</type>
                                        <evaluationMessage>smartrics.rest.test.fitnesse.fixture</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='scriptTable_1_0', instruction='make', instanceName='scriptTableActor', className='HttpServerFixture', args=[]}</instruction>
        <slimResult>pass(Http Server Fixture)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>scriptTable_1_0</instructionId>
                    <col>1</col>
                              <row>0</row>
                    <type>ConstructionExpectation</type>
                                        <evaluationMessage>Http Server Fixture</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='scriptTable_1_1', instruction='call', instanceName='scriptTableActor', methodName='isStarted', args=[]}</instruction>
        <slimResult>pass(false)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>scriptTable_1_1</instructionId>
                    <col>2</col>
                              <row>1</row>
                    <type>ReturnedValueExpectation</type>
                                        <evaluationMessage>false</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='scriptTable_1_2', instruction='call', instanceName='scriptTableActor', methodName='startServer', args=[9876]}</instruction>
        <slimResult></slimResult>
                <expectation>
                    <instructionId>scriptTable_1_2</instructionId>
                    <col>0</col>
                              <row>2</row>
                    <type>ScriptActionExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='scriptTable_1_3', instruction='call', instanceName='scriptTableActor', methodName='isStarted', args=[]}</instruction>
        <slimResult>pass(true)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>scriptTable_1_3</instructionId>
                    <col>2</col>
                              <row>3</row>
                    <type>ReturnedValueExpectation</type>
                                        <evaluationMessage>true</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='tableTable_2_0', instruction='make', instanceName='tableTable_2', className='RestFixtureConfig', args=[]}</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=[[[http.basicauth.username, foo], [http.basicauth.password, bar], [http.client.connection.timeout, 5000], [http.client.use.new.http.uri.factory, false], [restfixture.display.absolute.url.in.full, true], [restfixture.display.actual.on.right, true], [restfixture.display.toggle.for.cells.larger.than, 200], [restfixture.default.headers, defHeader : 1
anotherDefHeader : 2
], [restfixture.xml.namespace.context, ns1alias=http://smartrics/ns1 
 defalias=http://smartrics/defns], [restfixture.content.default.charset, UTF-8], [restfixture.content.handlers.map, application/xml=XML
application/json=JSON
text/plain=TEXT
default=XML
application/x-javascript=JS
]]]}</instruction>
        <slimResult>pass()</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>tableTable_2_1</instructionId>
                              <type>TableTableExpectation</type>
                                      </expectation>
              </instructionResult>
          </instructions>
      </result>
  <result>
    <counts>
      <right>7</right>
      <wrong>0</wrong>
      <ignores>0</ignores>
      <exceptions>0</exceptions>
    </counts>
    <date>2016-03-28T21:45:18+01:00</date>
    <runTimeInMillis>353</runTimeInMillis>
    <content></content>
    <relativePageName>Issue174</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='decisionTable_1_0', instruction='make', instanceName='decisionTable_1', className='DecisionFixtureTest', args=[]}</instruction>
        <slimResult>pass(decision fixture test)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>decisionTable_1_0</instructionId>
                    <col>0</col>
                              <row>0</row>
                    <type>ConstructionExpectation</type>
                                        <evaluationMessage>decision fixture test</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_1_4', instruction='call', instanceName='decisionTable_1', methodName='setValue', args=[/resources/0]}</instruction>
        <slimResult></slimResult>
                <expectation>
                    <instructionId>decisionTable_1_4</instructionId>
                    <col>0</col>
                              <row>2</row>
                    <type>VoidReturnExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_1_6', instruction='callAndAssign', symbolName='foundResourceUri', instanceName='decisionTable_1', methodName='value', args=[]}</instruction>
        <slimResult>$foundResourceUri&lt;-[/resources/0]</slimResult>
                <expectation>
                    <instructionId>decisionTable_1_6</instructionId>
                    <col>1</col>
                              <row>2</row>
                    <type>SymbolAssignmentExpectation</type>
                                        <evaluationMessage>$foundResourceUri&lt;-[/resources/0]</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_1_8', instruction='call', instanceName='decisionTable_1', methodName='setValue', args=[200]}</instruction>
        <slimResult></slimResult>
                <expectation>
                    <instructionId>decisionTable_1_8</instructionId>
                    <col>0</col>
                              <row>3</row>
                    <type>VoidReturnExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_1_10', instruction='callAndAssign', symbolName='successCode', instanceName='decisionTable_1', methodName='value', args=[]}</instruction>
        <slimResult>$successCode&lt;-[200]</slimResult>
                <expectation>
                    <instructionId>decisionTable_1_10</instructionId>
                    <col>1</col>
                              <row>3</row>
                    <type>SymbolAssignmentExpectation</type>
                                        <evaluationMessage>$successCode&lt;-[200]</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_1_12', instruction='call', instanceName='decisionTable_1', methodName='setValue', args=[/resources/99]}</instruction>
        <slimResult></slimResult>
                <expectation>
                    <instructionId>decisionTable_1_12</instructionId>
                    <col>0</col>
                              <row>4</row>
                    <type>VoidReturnExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_1_14', instruction='callAndAssign', symbolName='notFoundResourceUri', instanceName='decisionTable_1', methodName='value', args=[]}</instruction>
        <slimResult>$notFoundResourceUri&lt;-[/resources/99]</slimResult>
                <expectation>
                    <instructionId>decisionTable_1_14</instructionId>
                    <col>1</col>
                              <row>4</row>
                    <type>SymbolAssignmentExpectation</type>
                                        <evaluationMessage>$notFoundResourceUri&lt;-[/resources/99]</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_1_16', instruction='call', instanceName='decisionTable_1', methodName='setValue', args=[404]}</instruction>
        <slimResult></slimResult>
                <expectation>
                    <instructionId>decisionTable_1_16</instructionId>
                    <col>0</col>
                              <row>5</row>
                    <type>VoidReturnExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_1_18', instruction='callAndAssign', symbolName='notFoundCode', instanceName='decisionTable_1', methodName='value', args=[]}</instruction>
        <slimResult>$notFoundCode&lt;-[404]</slimResult>
                <expectation>
                    <instructionId>decisionTable_1_18</instructionId>
                    <col>1</col>
                              <row>5</row>
                    <type>SymbolAssignmentExpectation</type>
                                        <evaluationMessage>$notFoundCode&lt;-[404]</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='tableTable_2_0', instruction='make', instanceName='tableTable_2', className='RestFixture', args=[&lt;a href="http://localhost:9876"&gt;http://localhost:9876&lt;/a&gt;, ]}</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, $foundResourceUri, $successCode, , ], [let, ok_status_code, js, response.statusCode, ], [GET, $notFoundResourceUri, $notFoundCode, , ], [let, not_found_status_code, js, response.statusCode, ]]]}</instruction>
        <slimResult>pass()</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>tableTable_2_1</instructionId>
                              <type>TableTableExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_3_0', instruction='make', instanceName='decisionTable_3', className='DecisionFixtureTest', args=[]}</instruction>
        <slimResult>pass(decision fixture test)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>decisionTable_3_0</instructionId>
                    <col>0</col>
                              <row>0</row>
                    <type>ConstructionExpectation</type>
                                        <evaluationMessage>decision fixture test</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_3_4', instruction='call', instanceName='decisionTable_3', methodName='setValue', args=[$ok_status_code]}</instruction>
        <slimResult></slimResult>
                <expectation>
                    <instructionId>decisionTable_3_4</instructionId>
                    <col>0</col>
                              <row>2</row>
                    <type>VoidReturnExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_3_6', instruction='call', instanceName='decisionTable_3', methodName='value', args=[]}</instruction>
        <slimResult>pass(200)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>decisionTable_3_6</instructionId>
                    <col>1</col>
                              <row>2</row>
                    <type>ReturnedValueExpectation</type>
                                        <evaluationMessage>200</evaluationMessage>
                  </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_3_8', instruction='call', instanceName='decisionTable_3', methodName='setValue', args=[$not_found_status_code]}</instruction>
        <slimResult></slimResult>
                <expectation>
                    <instructionId>decisionTable_3_8</instructionId>
                    <col>0</col>
                              <row>3</row>
                    <type>VoidReturnExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='decisionTable_3_10', instruction='call', instanceName='decisionTable_3', methodName='value', args=[]}</instruction>
        <slimResult>pass(404)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>decisionTable_3_10</instructionId>
                    <col>1</col>
                              <row>3</row>
                    <type>ReturnedValueExpectation</type>
                                        <evaluationMessage>404</evaluationMessage>
                  </expectation>
              </instructionResult>
          </instructions>
      </result>
  <result>
    <counts>
      <right>2</right>
      <wrong>0</wrong>
      <ignores>0</ignores>
      <exceptions>0</exceptions>
    </counts>
    <date>2016-03-28T21:45:18+01:00</date>
    <runTimeInMillis>112</runTimeInMillis>
    <content>&lt;br/&gt;&lt;span class="meta"&gt;variable defined: ns1=!-http://smartrics/ns1-!&lt;/span&gt;
&lt;br/&gt;&lt;span class="meta"&gt;variable defined: defns=!-http://smartrics/defns-!&lt;/span&gt;
&lt;br/&gt;&lt;br/&gt;&lt;table&gt;
	&lt;tr class="slimRowTitle"&gt;
		&lt;td&gt;Import&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;&lt;span class="pass"&gt;smartrics.rest.fitnesse.fixture&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor1"&gt;
		&lt;td&gt;&lt;span class="pass"&gt;smartrics.rest.test.fitnesse.fixture&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;br/&gt;&lt;table&gt;
	&lt;tr class="slimRowTitle"&gt;
		&lt;td&gt;script&lt;/td&gt;
		&lt;td colspan="2"&gt;&lt;span class="pass"&gt;Http Server Fixture&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;check&lt;/td&gt;
		&lt;td&gt;is started&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;false&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor3"&gt;
		&lt;td&gt;start server&lt;/td&gt;
		&lt;td colspan="2"&gt;9876&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;check&lt;/td&gt;
		&lt;td&gt;is started&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;true&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
 &lt;br/&gt;&lt;div class="collapsible"&gt;&lt;ul&gt;&lt;li&gt;&lt;a href='#' class='expandall'&gt;Expand&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='#' class='collapseall'&gt;Collapse&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
	&lt;p class="title"&gt;Configure the &lt;a href="RestFixture"&gt;.RestFixture&lt;/a&gt; with named configuration table of key value pairs&lt;/p&gt;
	&lt;div&gt;Read more about .RestFixtureConfig&lt;a title="create page" href="RestFixtureConfig?edit&amp;amp;nonExistent=true"&gt;[?]&lt;/a&gt;&lt;br/&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;table&gt;
	&lt;tr class="slimRowTitle"&gt;
		&lt;td colspan="2"&gt;&lt;span class="pass"&gt;Table: Rest Fixture Config&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;http.basicauth.username&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;foo&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor1"&gt;
		&lt;td&gt;http.basicauth.password&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;bar&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;http.client.connection.timeout&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;5000&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor1"&gt;
		&lt;td&gt;http.client.use.new.http.uri.factory&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;false&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;restfixture.display.absolute.url.in.full&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;true&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor1"&gt;
		&lt;td&gt;restfixture.display.actual.on.right&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;true&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;restfixture.display.toggle.for.cells.larger.than&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;200&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor1"&gt;
		&lt;td&gt;restfixture.default.headers&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;defHeader&amp;amp;nbsp;:&amp;amp;nbsp;1&amp;lt;br/&amp;gt;anotherDefHeader&amp;amp;nbsp;:&amp;amp;nbsp;2&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;restfixture.xml.namespace.context&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;ns1alias=http://smartrics/ns1&amp;amp;nbsp;&amp;lt;br/&amp;gt;&amp;amp;nbsp;defalias=http://smartrics/defns&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor1"&gt;
		&lt;td&gt;restfixture.content.default.charset&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;UTF-8&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;restfixture.content.handlers.map&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;application/xml=XML&amp;lt;br/&amp;gt;application/json=JSON&amp;lt;br/&amp;gt;text/plain=TEXT&amp;lt;br/&amp;gt;default=XML&amp;lt;br/&amp;gt;application/x-javascript=JS&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;div class="collapsible closed"&gt;&lt;ul&gt;&lt;li&gt;&lt;a href='#' class='expandall'&gt;Expand&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href='#' class='collapseall'&gt;Collapse&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
	&lt;p class="title"&gt;Included page: &lt;a href="RestFixtureTests.SetUp"&gt;.RestFixtureTests.SetUp&lt;/a&gt; &lt;a href="RestFixtureTests.SetUp?edit&amp;amp;redirectToReferer=true&amp;amp;redirectAction=" class="edit"&gt;(edit)&lt;/a&gt;&lt;/p&gt;
	&lt;div&gt;&lt;table&gt;
	&lt;tr class="slimRowTitle"&gt;
		&lt;td&gt;script&lt;/td&gt;
		&lt;td colspan="2"&gt;&lt;span class="pass"&gt;smartrics.rest.test.fitnesse.fixture.HttpServerFixture&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;check&lt;/td&gt;
		&lt;td&gt;is started&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;true&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor9"&gt;
		&lt;td colspan="3"&gt;&lt;span class="pass"&gt;reset resources database&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br/&gt;&lt;h3&gt;&lt;a href="https://github.com/smartrics/RestFixture/issues/174"&gt;Issue #174&lt;/a&gt; Using multiple fixtures together&lt;/h3&gt;
&lt;br/&gt;The issue reports that symbols can't be shared across fixtures when &lt;a href="RestFixture"&gt;.RestFixture&lt;/a&gt; is used.&lt;br/&gt;&lt;br/&gt;This fixture is a decision table simply used to define four different values in the slim shared map of symbols.&lt;br/&gt;The fixture class allows setting a value and then getting it back:&lt;br/&gt;&lt;pre&gt;
public class DecisionFixtureTest {
    private String value;

    public void setValue(String value) {
        this.value = value;
    }

    public String value() {
        return value;
    }
}
&lt;/pre&gt;
&lt;br/&gt;&lt;br/&gt;In this case we define two symbols for URIs (one success and one fail) and two symbols for return code.&lt;br/&gt;&lt;br/&gt;The table is defined as &lt;br/&gt;&lt;br/&gt;&lt;pre&gt;
!| decision fixture test                |
| value         | value?                |
| /resources/0  | $foundResourceUri=    |
| 200           | $successCode=         |
| /resources/99 | $notFoundResourceUri= |
| 404           | $notFoundCode=        |
&lt;/pre&gt;
&lt;br/&gt;&lt;br/&gt;&lt;table&gt;
	&lt;tr&gt;
		&lt;td colspan="2"&gt;&lt;span class="pass"&gt;decision fixture test&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;value&lt;/td&gt;
		&lt;td&gt;value?&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;/resources/0&lt;/td&gt;
		&lt;td&gt;$foundResourceUri&amp;lt;-[/resources/0]&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;200&lt;/td&gt;
		&lt;td&gt;$successCode&amp;lt;-[200]&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;/resources/99&lt;/td&gt;
		&lt;td&gt;$notFoundResourceUri&amp;lt;-[/resources/99]&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;404&lt;/td&gt;
		&lt;td&gt;$notFoundCode&amp;lt;-[404]&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;br/&gt;&lt;br/&gt;Symbols defined in the above table are then used in rest fixture. This demonstrates that &lt;a href="RestFixture"&gt;.RestFixture&lt;/a&gt; accepts symbols and can resolve them. The table is defined as&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;
| Table: Rest Fixture |http://localhost:9876| |
|GET    | $foundResourceUri     | $successCode  |  |  |
|let    | ok_status_code        | js            | response.statusCode |  |
|GET    | $notFoundResourceUri  | $notFoundCode |  |  |
|let    | not_found_status_code | js            | response.statusCode |  |
&lt;/pre&gt;
&lt;br/&gt;&lt;br/&gt;&lt;table&gt;
	&lt;tr class="slimRowTitle"&gt;
		&lt;td&gt;&lt;span class="pass"&gt;Table: Rest Fixture&lt;/span&gt;&lt;/td&gt;
		&lt;td&gt;&lt;a href="http://localhost:9876"&gt;http://localhost:9876&lt;/a&gt;&lt;/td&gt;
		&lt;td colspan="3"&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;GET&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;&lt;a href='http://localhost:9876/resources/0'&gt;/resources/0&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;&lt;div&gt;200&lt;/div&gt;&lt;/span&gt;&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;Set-Cookie&amp;nbsp;:&amp;nbsp;JID="ABC.${a.y}";&lt;br/&gt;Content-Type&amp;nbsp;:&amp;nbsp;application/xml;charset=ISO-8859-1&lt;br/&gt;Content-Length&amp;nbsp;:&amp;nbsp;183&lt;br/&gt;Server&amp;nbsp;:&amp;nbsp;Jetty(6.0.2)&lt;/div&gt;&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;&amp;lt;resource&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;name&amp;gt;a&amp;nbsp;funky&amp;nbsp;name&amp;lt;/name&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;data&amp;gt;an&amp;nbsp;important&amp;nbsp;message&amp;lt;/data&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;nstag&amp;nbsp;xmlns:ns1='http://smartrics/ns1'&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ns1:number&amp;gt;3&amp;lt;/ns1:number&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/nstag&amp;gt;&lt;br/&gt;&amp;lt;/resource&amp;gt;&lt;/div&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor1"&gt;
		&lt;td&gt;let&lt;/td&gt;
		&lt;td&gt;ok_status_code&lt;/td&gt;
		&lt;td&gt;js&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;response.statusCode&lt;/div&gt;&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;200&lt;/div&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;GET&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;&lt;a href='http://localhost:9876/resources/99'&gt;/resources/99&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;&lt;div&gt;404&lt;/div&gt;&lt;/span&gt;&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;Set-Cookie&amp;nbsp;:&amp;nbsp;JID="ABC.${a.y}";&lt;br/&gt;Content-Length&amp;nbsp;:&amp;nbsp;0&lt;br/&gt;Server&amp;nbsp;:&amp;nbsp;Jetty(6.0.2)&lt;/div&gt;&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;no-body&lt;/div&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor1"&gt;
		&lt;td&gt;let&lt;/td&gt;
		&lt;td&gt;not_found_status_code&lt;/td&gt;
		&lt;td&gt;js&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;response.statusCode&lt;/div&gt;&lt;/td&gt;
		&lt;td&gt;&lt;div&gt;404&lt;/div&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;br/&gt;The fixture above then defines - via "let" command - two more symbols: "ok_status_code" and "not_found_status_code". The two symbols are re-used in a new instaance of the decision fixture test below, defined as:&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;
!| decision fixture test          |
| value                  | value? |
| $ok_status_code        | 200    |
| $not_found_status_code | 404    |
&lt;/pre&gt;
&lt;br/&gt;&lt;br/&gt;&lt;table&gt;
	&lt;tr&gt;
		&lt;td colspan="2"&gt;&lt;span class="pass"&gt;decision fixture test&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;value&lt;/td&gt;
		&lt;td&gt;value?&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;$ok_status_code&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;200&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;$not_found_status_code&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;404&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;br/&gt;&lt;br/&gt;&lt;table&gt;
	&lt;tr class="slimRowTitle"&gt;
		&lt;td&gt;script&lt;/td&gt;
		&lt;td colspan="2"&gt;&lt;span class="pass"&gt;smartrics.rest.test.fitnesse.fixture.HttpServerFixture&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;check&lt;/td&gt;
		&lt;td&gt;is started&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;true&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor9"&gt;
		&lt;td colspan="3"&gt;stop server&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class="slimRowColor0"&gt;
		&lt;td&gt;check&lt;/td&gt;
		&lt;td&gt;is stopped&lt;/td&gt;
		&lt;td&gt;&lt;span class="pass"&gt;true&lt;/span&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
</content>
    <relativePageName>SuiteTearDown</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='stopServer', args=[]}</instruction>
        <slimResult></slimResult>
                <expectation>
                    <instructionId>scriptTable_0_2</instructionId>
                    <col>0</col>
                              <row>2</row>
                    <type>ScriptActionExpectation</type>
                                      </expectation>
              </instructionResult>
            <instructionResult>
        <instruction>{id='scriptTable_0_3', instruction='call', instanceName='scriptTableActor', methodName='isStopped', args=[]}</instruction>
        <slimResult>pass(true)</slimResult>
                <expectation>
                    <status>pass</status>
                    <instructionId>scriptTable_0_3</instructionId>
                    <col>2</col>
                              <row>3</row>
                    <type>ReturnedValueExpectation</type>
                                        <evaluationMessage>true</evaluationMessage>
                  </expectation>
              </instructionResult>
          </instructions>
      </result>
  <executionLog>
    <testSystem>slim:fitnesse.slim.SlimService</testSystem>
    <command>"C:\Program Files\Java\jdk8\bin\java" -cp C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\fitnesse-20151230.jar;target/classes/;target/test-classes/;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\ant-1.7.0.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\ant-launcher-1.7.0.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\commons-codec-1.2.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\commons-collections-3.2.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\commons-httpclient-3.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\commons-lang-2.6.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\commons-logging-1.0.4.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\cos-05Nov2002.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\diffutils-1.3.0.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\fitnesse-20151230.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\hamcrest-all-1.3.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\hamcrest-core-1.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\htmlcleaner-2.2.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\htmllexer-2.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\htmlparser-2.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\jdom-1.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\jettison-1.3.2.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\jetty-6.0.2.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\jetty-util-6.0.2.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\json-20140107.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\junit-4.10.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\log4j-1.2.17.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\mockito-all-1.9.0.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\rhino-1.7R3.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\servlet-api-2.5-6.0.2.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\slf4j-api-1.7.13.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\slf4j-log4j12-1.6.6.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\smartrics-RestClient-2.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\smartrics-RestFixture-4.2-SNAPSHOT.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\stax-api-1.0.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\velocity-1.7.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\xmlpull-1.1.3.1.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\xpp3_min-1.1.4c.jar;C:\Users\702161900\Dev\smartrics\RestFixtureLiveDoc\target\dependencies\xstream-1.4.2.jar fitnesse.slim.SlimService 8085</command>
    <exitCode>0</exitCode>
    <stdOut>21:45:18,631 INFO  [RestFixture] - ############ Detected FitNesse version: v20151230 ###########
</stdOut>
    <stdErr></stdErr>
  </executionLog>
  <finalCounts>
    <right>3</right>
    <wrong>0</wrong>
    <ignores>0</ignores>
    <exceptions>0</exceptions>
  </finalCounts>
  <totalRunTimeInMillis>2541</totalRunTimeInMillis>
</testResults>





© 2015 - 2024 Weber Informatics LLC | Privacy Policy