@Override public void renderOn(HtmlCanvas html) throws IOException { String goalName = null; if (goal != null && getMavenProject() != null && goal.startsWith(getMavenProject().getGroupId() + ":" + getMavenProject().getArtifactId())) { goalName = goal.substring(goal.lastIndexOf(":") + 1, goal.length()); } if (goalName != null) { html.a(href("./" + goalName + "-mojo.html")); } html.write(goal); if (goalName != null) { html._a(); } html.br(); } });
private void makeMethodsList(ITestContext testContext) throws IOException { IResultMap failed = testContext.getFailedTests(); IResultMap passed = testContext.getPassedTests(); IResultMap skipped = testContext.getSkippedTests(); html.h1(class_("center")).content("Methods called"); html.a(href("#Skipped")).write("Go To Skipped Tests").br()._a(); html.a(href("#Passed")).write("Go To Passed Tests").br()._a(); html.a(href("#Indirect")).write("Go To Indirect Tests").br()._a(); html.br(); makeMethodSummaryTable(failed, "Failed"); html.br(); toTop(); html.br(); makeMethodSummaryTable(skipped, "Skipped"); html.br(); toTop(); html.br(); makeMethodSummaryTable(passed, "Passed"); html.br(); toTop(); makeIndirectSummaryTable(); html.br(); }
@Override public void renderOn(HtmlCanvas html) throws IOException { html.p(); if (description != null && !description.isEmpty()) { html.write(replaceProperties(description), false).br(); } if (name != null && !name.isEmpty()) { if (description != null && !description.isEmpty()) { html.br(); } html.b().write("Parameter name is")._b().write(": " + name + "."); } if (property != null && !property.isEmpty()) { if (name != null && !name.isEmpty() || description != null && !description.isEmpty()) { html.br(); } html.b().write("User property is")._b().write(": " + property + "."); } if (defaultValue != null && !defaultValue.isEmpty()) { if (property != null && !property.isEmpty() || name != null && !name.isEmpty() || description != null && !description.isEmpty()) { html.br(); } html.b().write("Default value is")._b().write(": " + defaultValue + "."); } html._p(); } });
private void printReqCellResult(int passed, int failed, int skipped) throws IOException { int total = passed + failed + skipped; html.td().b().write(passed + "/" + total)._b(); html.write(" Passed"); html.br().b().write(failed + "/" + total)._b(); html.write(" Failed"); html.br().b().write(skipped + "/" + total)._b(); html.write(" Skipped"); html._td(); }
html.td(); if (must > 0) html.b().write("MUST: ")._b().write(must).br(); if (should > 0) html.b().write("SHOULD: ")._b().write(should).br(); if (may > 0) html.b().write("MAY: ")._b().write(may).br(); html.b().write("Approved: ")._b().write("" + approve).br(); int pend = getTotal(pendReq); if(pend > 0) html.b().write("Pending: ")._b().write("" + pend).br(); int extend = getTotal(extReq); if (extend > 0) html.b().write("Extension: ")._b().write("" + extend).br(); int depre = getTotal(depreReq); if (depre > 0) html.b().write("Deprecated: ")._b().write("" + depre).br(); int clarify = getTotal(clariReq); if(clarify > 0) html.b().write("Clarification: ")._b().write("" + clarify).br(); html.b().write("Automated: ")._b().write("" + auto).br(); int unimpl = getTotal(unimReq); if (unimpl > 0) html.b().write("Not Implemented: ")._b().write("" + unimpl).br(); int client = getTotal(clientReq); if (client > 0) html.b().write("Client Only: ")._b().write("" + client).br();
private void displayResultsOnCanvas(StateSpaceExplorer.StateSpaceExplorerResults results) throws IOException, StateSpaceLoaderException { HtmlCanvas html = new HtmlCanvas(); html.html().head(); html.style(type("text/css").media("screen")).content(HTML_STYLE); html._head(); html.body(); if (results.numberOfStates < MAX_DISPLAY_STATES) { StateSpaceLoader.Results stateSpace = stateSpaceLoader.loadStateSpace(); solveSteadyState(stateSpace.records, stateSpace.stateMappings, html); } else { html.write("State space is too large to show tabular results"); html.br(); html.write("Number of states: " + results.numberOfStates); html.br(); html.write("Number of transitions: " + results.processedTransitions); } html._body()._html(); resultsPane.setText(html.toHtml()); }
html.br().b().write("Description: ")._b().write(test.description()); html.br().b().write("Specification Section: ")._b() .a(href(testLdp.specRefUri())) .write(testLdp.specRefUri())._a(); html.br().b().write("Groups: ")._b() .write(Arrays.toString(test.groups())); html.br().b().write("Status: ")._b() .write(testLdp.approval().toString()); html.br().b().write("Test Case Implementation: ")._b() .write("" + testLdp.testMethod()); html.br().b().write("Enabled: ")._b() .write("" + test.enabled()); if(testLdp.steps().length != 0)
.write(normalizedName)._a(); if (method.getConstructorOrMethod().getMethod().getAnnotation(SpecTest.class).approval() == STATUS.WG_PENDING) { html.br().b().em().write("WG Approval Pending")._em()._b();
html._span(); html.br(); generateOverallSummaryReport(suites, "summary"); displayGroupsInfo(suites);
html.br().b().a(href("#tobeapproved")).write(readyToBeApproved.size() + " Ready for Approval")._a()._b(); html.br(); html.span(class_("chartStart")); .write(" of Total Tests Automated").br(); html.b().write(automated + " / " + (automated + needCode.size()))._b() .write(" of Tests Possible to Automate");