public boolean isTls() { for (TestStepLogContentDTO steplog : steps) { if (steplog.isTls()) return true; } return false; }
public List<String> getSoapFaults(int index) throws XdsInternalException { return getTestStepLog(index).getSoapFaults(); }
public void addTestPlanLog(String section, LogFileContentDTO lf) throws XdsInternalException { if (sectionLogMapDTO == null) sectionLogMapDTO = new SectionLogMapDTO(testInstance); sectionLogMapDTO.put(section, lf); }
private void calcGoals() { SectionGoalsDTO goals = new SectionGoalsDTO(c.getTestAttribute()); for (String stepName : c.getStepMap().keySet()) { goals.stepGoalDTOs.add(c.getStepMap().get(stepName).getStepGoalsDTO()); } c.setSectionGoalsDTO(goals); }
private void parseUseReports() { // without use of the map we get duplicates because of the Assertions // section of the log.xml file format for (OMElement ele : XmlUtil.decendentsWithLocalName(root, "UseReport")) { UseReportDTO u = new UseReportDTO(); u.setUseAs(ele.getAttributeValue(useAsQname)); u.setName(ele.getAttributeValue(reportNameQname)); u.setValue(ele.getAttributeValue(valueQname)); u.setTest(ele.getAttributeValue(testQname)); u.setSection(ele.getAttributeValue(sectionQname)); u.setStep(ele.getAttributeValue(stepQname)); c.addUseReport(u); } }
public List<String> getAssertionErrors(int index) throws XdsInternalException { return getTestStepLog(index).getAssertionErrors(); }
public void add(String sectionName, LogFileContentDTO log) { logFileContent.put(sectionName, log); items.add(new LogMapItemDTO(sectionName, log)); if (log.isTls()) tls = true; }
public SectionLogMapDTO getPreviousSectionLogs() { if (previousSectionLogs == null) previousSectionLogs = new SectionLogMapDTO(testConfig.testInstance); return previousSectionLogs; }
static public void setSection(List<ReportDTO> reportDTOs, String section) { for (ReportDTO reportDTO : reportDTOs) { reportDTO.setSection(section); } }
public boolean hasFatalError() { return getFatalError() != null; }
public boolean isTls() { return logMapDTO != null && logMapDTO.isTls(); }
public String toString() { return "[LogMapItemDTO: testId=" + testName + " log=" + log.toString() + "]"; }
public String describe() { return "SectionLogMapDTO...\n" + reportsToString(); }
public String toString() { return "[TestLogDetails: " + " area=" + area + "<br />testnum=" + testInstance + "<br />sections= " + testPlansToString() + "<br />logs= " + ((sectionLogMapDTO == null) ? "none" : sectionLogMapDTO.toString()) + "]"; }
private void parseInputMetadata() { try { c.setInputMetadata(getFormattedInputMetadata()); } catch (Exception e) { } }
private void parseRoot() { try { c.setRootString(xmlFormat(root)); } catch (Exception e) {} }
public void resetLogs() { sectionLogMapDTO = new SectionLogMapDTO(testInstance); }
static public void setSection(List<ReportDTO> reportDTOs, String section) { for (ReportDTO reportDTO : reportDTOs) { reportDTO.setSection(section); } }
public TestLogDetails(TestDefinition testDefinition, TestInstance testInstance) throws Exception { this.testDefinition = testDefinition; this.testInstance = testInstance; areas = Installation.defaultAreas; // if (!testDefinition.isTest()) // throw new Exception("Test " + testDefinition.getId() + " does not exist"); sectionLogMapDTO = new SectionLogMapDTO(testInstance); testPlanFileMap = testDefinition.getTestPlans(); // logRepository = LogRepositoryFactory.getLogRepository(Installation.instance().testLogCache(), testInstance.getUser(), LogIdIOFormat.JAVA_SERIALIZATION, LogIdType.SPECIFIC_ID, testInstance); }