Package fitnesse.testrunner

Examples of fitnesse.testrunner.WikiTestPage


  @Test
  public void writeSummary_WritesSummaryOfTestExecutions() throws Exception{
    jf.testComplete(buildNestedTestPage(), new TestSummary(5,6,7,8));
    WikiPageDummy root = new WikiPageDummy("root", null, null);
    WikiPageDummy secondPage=new WikiPageDummy("SecondPage", null, root);
    jf.testComplete(new WikiTestPage(secondPage, variableSource), new TestSummary(11,12,13,14));
    jf.writeSummary("SummaryPageName");
    String expectedOutput = new StringBuffer()
            .append(JavaFormatter.TestResultsSummaryTable.SUMMARY_HEADER)
            .append(new JavaFormatter.TestResultsSummaryTableRow(nestedPageName, new TestSummary(5,6,7,8)).toString())
            .append(new JavaFormatter.TestResultsSummaryTableRow("SecondPage", new TestSummary(11,12,13,14)).toString())
View Full Code Here


    jf.testComplete(buildNestedTestPage(), ts);
    ts.add(ExecutionResult.PASS);
    ts.add(ExecutionResult.FAIL);
    ts.add(ExecutionResult.IGNORE);
    ts.add(ExecutionResult.ERROR);
    jf.testComplete(new WikiTestPage(secondPage, variableSource), ts);
    assertEquals(new TestSummary(5,6,7,8), jf.getTestSummary("ParentTest.ChildTest"));
  }
View Full Code Here

      this.request = request;
    }

    public String render() {
      if (WikiTestPage.isTestPage(page)) {
        WikiTestPage testPage = new WikiTestPage(page, new UrlPathVariableSource(
                context.variableSource, request == null?null : request.getMap()));
        return WikiTestPageUtil.makePageHtml(testPage,request);
      } else {
        return WikiPageUtil.makePageHtml(page,request);
      }
View Full Code Here

    html.put("actions", new WikiPageActions(page));
    html.put("helpText", pageData.getProperties().get(PageData.PropertyHELP));

    if (WikiTestPage.isTestPage(page)) {
      // Add test url inputs to context's variableSource.
      WikiTestPage testPage = new TestPageWithSuiteSetUpAndTearDown(page,
              new UrlPathVariableSource(context.variableSource, request.getMap()));
      html.put("content", new WikiTestPageRenderer(testPage,request));
    } else {
      html.put("content", new WikiPageRenderer(page,request));
    }
View Full Code Here

TOP

Related Classes of fitnesse.testrunner.WikiTestPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.