Esempio n. 1
0
 @Test
 public void slimXmlFormat() throws Exception {
   request.addInput("format", "xml");
   ensureXmlResultFileDoesNotExist();
   doSimpleRunWithTags(slimDecisionTable(), "zoo");
   Document xmlFromFile = getXmlFromFileAndDeleteFile();
   xmlChecker.assertXmlReportOfSlimDecisionTableWithZooTagIsCorrect();
   xmlChecker.assertXmlHeaderIsCorrect(xmlFromFile);
   xmlChecker.assertXmlReportOfSlimDecisionTableWithZooTagIsCorrect();
 }
Esempio n. 2
0
 @Test
 public void testDoSimpleSlimTable() throws Exception {
   ensureXmlResultFileDoesNotExist();
   doSimpleRun(simpleSlimDecisionTable());
   Document xmlFromFile = getXmlFromFileAndDeleteFile();
   xmlChecker.assertXmlHeaderIsCorrect(xmlFromFile);
   assertHasRegexp("<td><span class=\"pass\">wow</span></td>", Utils.unescapeHTML(results));
 }
Esempio n. 3
0
 @Test
 public void slimScenarioXmlFormat() throws Exception {
   request.addInput("format", "xml");
   doSimpleRun(XmlChecker.slimScenarioTable);
   xmlChecker.assertXmlReportOfSlimScenarioTableIsCorrect();
 }
Esempio n. 4
0
 @Test
 public void simpleXmlFormat() throws Exception {
   request.addInput("format", "xml");
   doSimpleRun(passFixtureTable());
   xmlChecker.assertFitPassFixtureXmlReportIsCorrect();
 }