You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
private static ExtentHtmlReporter htmlReporter;
private static ExtentReports extent;
private static ExtentTest test;
static File ExtentFailStepScreenPath;
private static ThreadLocal<ExtentTest> extentTest;
private static ExtentReports extentnew = ExtentManager.getInstance();
public ExtentReportHelper(String sExtentReportDbServer, String sExtentReportDbServerPort, String sHtmlReportName,
String sProjectName, String sExtentReportServer, String sExtentReportServerPort,
String sExtentAutomationUser) throws Exception {
KlovReporter klov = new KlovReporter();
// specify mongoDb connection
klov.initMongoDbConnection(sExtentReportDbServer, Integer.parseInt(sExtentReportDbServerPort));
// specify project
// ! you must specify a project, other a "Default project will be used"
klov.setProjectName(sProjectName);
Date date = new Date();
// you must specify a reportName otherwise a default timestamp will be used
klov.setReportName(sProjectName + "_" + date.toString());
// URL of the KLOV server
// you must specify the server URL to ensure all your runtime media is uploaded
// to the server
klov.setKlovUrl("http://" + sExtentReportServer + ":" + sExtentReportServerPort);
// initialize ExtentReports and attach the HtmlReporter
extent = new ExtentReports();
extentnew = new ExtentReports();
// initialize the HtmlReporter
htmlReporter = new ExtentHtmlReporter(sHtmlReportName + ".html");
// htmlReporter.loadXMLConfig("extent-config.xml"); //you can
// attach only HtmlReporter
public class QuantumReportListener extends ReportiumTestNgListener implements QAFTestStepListener, ITestListener {
public static final String PERFECTO_REPORT_CLIENT = "perfecto.report.client";
I had Extent Report helper class as below.
package com.quantum.java.pages;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.MediaEntityBuilder;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
import com.aventstack.extentreports.reporter.KlovReporter;
import java.io.File;
import java.io.IOException;
import java.util.Date;
public class ExtentReportHelper {
// //extent.attachReporter(htmlReporter);
// extent.attachReporter(htmlReporter);
//
// // attach all reporters
// extent.attachReporter(htmlReporter, klov);
//
// extent.setSystemInfo("User", sExtentAutomationUser);
}
QuantumReportlistner.java
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.quantum.java.pages;
import com.perfecto.reportium.WebDriverProvider;
import com.perfecto.reportium.exception.ReportiumException;
import com.perfecto.reportium.testng.ReportiumTestNgListener;
import com.perfecto.reportium.client.ReportiumClient;
import com.perfecto.reportium.client.ReportiumClientFactory;
import com.perfecto.reportium.model.Job;
import com.perfecto.reportium.model.PerfectoExecutionContext;
import com.perfecto.reportium.model.Project;
import com.perfecto.reportium.model.PerfectoExecutionContext.PerfectoExecutionContextBuilder;
import com.perfecto.reportium.test.TestContext;
import com.perfecto.reportium.test.result.TestResultFactory;
import com.qmetry.qaf.automation.core.CheckpointResultBean;
import com.qmetry.qaf.automation.core.ConfigurationManager;
import com.qmetry.qaf.automation.core.MessageTypes;
import com.qmetry.qaf.automation.core.QAFTestBase;
import com.qmetry.qaf.automation.core.TestBaseProvider;
import com.qmetry.qaf.automation.keys.ApplicationProperties;
import com.qmetry.qaf.automation.step.QAFTestStepListener;
import com.qmetry.qaf.automation.step.StepExecutionTracker;
import com.qmetry.qaf.automation.step.client.TestNGScenario;
import com.qmetry.qaf.automation.ui.WebDriverTestCase;
import com.quantum.listeners.PerfectoDriverListener;
import com.quantum.utils.ConsoleUtils;
import cucumber.runtime.RuntimeOptions;
import cucumber.runtime.RuntimeOptionsFactory;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.Properties;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.apache.commons.lang3.ArrayUtils;
import org.openqa.selenium.WebDriver;
import org.testng.IInvokedMethod;
import org.testng.ITestContext;
import org.testng.ITestListener;
import org.testng.ITestResult;
public class QuantumReportListener extends ReportiumTestNgListener implements QAFTestStepListener, ITestListener {
public static final String PERFECTO_REPORT_CLIENT = "perfecto.report.client";
}
Testng xml
For Parallel Testing the report generate in wrong . All steps added to last scenario
The text was updated successfully, but these errors were encountered: