All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ats.tools.report.utils.AtsReportXmlGenerator Maven / Gradle / Ivy

The newest version!
package com.ats.tools.report.utils;

import com.ats.generator.ATS;
import com.ats.tools.logger.levels.AtsLogger;
import com.ats.tools.report.models.*;

import javax.xml.stream.*;
import javax.xml.stream.events.Attribute;
import javax.xml.stream.events.StartElement;
import javax.xml.stream.events.XMLEvent;
import java.io.*;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import static com.ats.tools.report.HtmlCampaignReportGenerator.ATS_TEST_REPORT_HTML_DATA_FILE_NAME;

public class AtsReportXmlGenerator {
	private XMLStreamWriter xmlStreamWriter;
	private FileOutputStream fileOutputStream;
	private XMLOutputFactory outputFactory;
	private List testSummaries;
	private Project project;
	private Results results;
	private List