/** * Return LogMapDTO, the collection of information from the log.xml files generated by * the running of one or more tests. * @return LogMapDTO * @throws Exception - No tests have been specified, no logs can be found, or the log files cannot * be parsed. */ public LogMapDTO getLogMap() throws Exception { LogMapDTO lm = new LogMapDTO(); if (testLogDetails == null) throw new Exception("Xdstest2#getLogMap: testSpecs is null"); for (TestLogDetails testSpec : testLogDetails) { for (String section : testSpec.getTestPlanLogs().keySet()) { LogFileContentDTO testLog = testSpec.getTestPlanLogs().get(section); if (testLog == null) { if (section.equals("THIS")) continue; throw new Exception("Xdstest2#getLogMap: cannot find testlog for section " + section); } lm.add(testLog.getTestAttribute(), testLog); } } return lm; }
LogFileContentDTO logFileContentDTO = previousLogs.get(useReport.section); if (logFileContentDTO == null) { TestSection testSection = new TestSection(useReport.testInstance, useReport.section); SectionLogMapDTO sectionLogMapDTO = sectionLogMapDTOs.get(testSection); logFileContentDTO = sectionLogMapDTO.get(useReport.section);
List<String> sections = testDefinition.getSectionIndex(); for (String section : sections) { LogFileContentDTO logFileContentDTO = testLogDetails.sectionLogMapDTO.get(section); if (logFileContentDTO == null) { logFileContentDTO = new LogFileContentDTO(); } catch (Exception e) { if (testLogDetails.getTestPlanLogs().get("log.xml") != null) { LogFileContentDTO logFileContentDTO = testLogDetails.getTestPlanLogs().get("log.xml"); SectionOverviewDTO sectionOverview = addSection("", logFileContentDTO); if (!sectionOverview.isPass())
if (section.equals("THIS")) continue; LogFileContentDTO logFileContentDTO = testLogDetails.sectionLogMapDTO.get(section); for (int i = 0; i < logFileContentDTO.size(); i++) { StepResult stepResult = new StepResult();
if (section.equals("THIS")) continue; LogFileContentDTO testLog = testSpec.getTestPlanLogs().get(section); if (testLog == null) {