private void testSetDescription(String url, TestObject object) throws Exception { object.doSubmitDescription("description"); // test the roundtrip HtmlPage page = j.new WebClient().goTo(url); page.getAnchorByHref("editDescription").click(); HtmlForm form = findForm(page, "submitDescription"); j.submit(form); assertEquals("description", object.getDescription()); }
public ResultData(TestObject result, String url) { setName(result.getName()); setPassed(result.getFailCount() == 0); setSkipped(result.getSkipCount() == result.getTotalCount()); setTotalTests(result.getTotalCount()); setTotalFailed(result.getFailCount()); setTotalPassed(result.getPassCount()); setTotalSkipped(result.getSkipCount()); setTotalTimeTaken(result.getDuration()); setUrl(url); setFlaky(false); setTotalFlaky(0); evaluateStatus(); }
@Override public AbstractBuild<?, ?> getOwner() { return (parent == null ? null : parent.getOwner()); }
/** Gets the class name of a test class. */ @Exported(visibility = 9) public String getClassName() { return parent.getName(); }