Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Extent Report not working with Cucumber JVM Parallel Plugin #87

Open
Priya3001 opened this issue Mar 9, 2018 · 9 comments
Open

Extent Report not working with Cucumber JVM Parallel Plugin #87

Priya3001 opened this issue Mar 9, 2018 · 9 comments

Comments

@Priya3001
Copy link

I had made all necessary changes for extent report in Runner class. Also, added dependencies for the same in pom.xml.

Since, I am also using parallel plugin, I also added following information in configuration of cucumber-jvm-parallel-plugin in pom.xml:


com.cucumber.listener.ExtentCucumberFormatter
html
${project.build.directory}/cucumber-parallel/cucumber-extent-report

It is now generating extent report at target/cucumber-parallel/cucumber-extent-report. But this report does not contain information which we are adding using Reporter.setSystemInfo in Runner class.

could you pleas help me solving this problem.

@email2vimalraj
Copy link
Owner

@Priya3001 : I'll look into this issue and fix if there is an issue.

@ashokkumarg
Copy link

@Priya3001 The runner files will be generated dynamically and how do we insert the Extent report codes in @BeforeClass and @afterclass

@email2vimalraj
Copy link
Owner

@ashokkumarg : You will have to write a velocity template and config in the cucumber jvm parallel plugin.

Refer:
Velocity template: https://github.com/temyers/cucumber-jvm-parallel-plugin/blob/master/src/it/junit/extents-report/src/test/resources/cucumber-extents-report-runner.java.vm

pom.xml for configuration: https://github.com/temyers/cucumber-jvm-parallel-plugin/blob/master/src/it/junit/extents-report/pom.xml

Full source code: https://github.com/temyers/cucumber-jvm-parallel-plugin/tree/master/src/it/junit/extents-report

@ashokkumarg
Copy link

I will look in to this and get back to you @email2vimalraj

@ashokkumarg
Copy link

ashokkumarg commented Jul 3, 2018

@email2vimalraj I get the null pointer exception under @afterclass

Reporter.loadXMLConfig(new File("src/test/java/resources/extent-config.xml"));

This is the dynamically created runner class

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;

import com.cucumber.listener.ExtentProperties;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import com.cucumber.listener.Reporter;

import java.io.File;

@RunWith(Cucumber.class)
@CucumberOptions(
        strict = true,
        features = {"C:/Users/MSTEMP/IdeaProjects/Cucumber/src/test/java/features/applicationform.feature:8"},
        plugin = {},
        monochrome = true,
        glue = {})
public class Applicationform01IT {

    @BeforeClass
    public static void beforeClass(){

    }

    @AfterClass
    public static void afterClass(){
      Reporter.loadXMLConfig(new File("src/test/java/resources/extent-config.xml"));
      Reporter.setSystemInfo("user", System.getProperty("user.name"));
      Reporter.setSystemInfo("os", "Windows");
    }
}

CONSOLE

"C:\Program Files\Java\jdk1.8.0_102\bin\java" "-Dmaven.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.2.5\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.2.5\plugins\maven\lib\maven3\bin\m2.conf" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.2.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.2.5\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.2.5\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.2.5 verify
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Cucumber_Java 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ Cucumber_Java ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\MSTEMP\IdeaProjects\Cucumber\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ Cucumber_Java ---
[INFO] No sources to compile
[INFO] 
[INFO] --- cucumber-jvm-parallel-plugin:5.0.0:generateRunners (generateRunners) @ Cucumber_Java ---
[INFO] Adding C:\Users\MSTEMP\IdeaProjects\Cucumber\target\generated-test-sources\cucumber to test-compile source root
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ Cucumber_Java ---
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\MSTEMP\IdeaProjects\Cucumber\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ Cucumber_Java ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 19 source files to C:\Users\MSTEMP\IdeaProjects\Cucumber\target\test-classes
[INFO] /C:/Users/MSTEMP/IdeaProjects/Cucumber/src/test/java/browser/BrowserFactory.java: C:\Users\MSTEMP\IdeaProjects\Cucumber\src\test\java\browser\BrowserFactory.java uses or overrides a deprecated API.
[INFO] /C:/Users/MSTEMP/IdeaProjects/Cucumber/src/test/java/browser/BrowserFactory.java: Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ Cucumber_Java ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ Cucumber_Java ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: C:\Users\MSTEMP\IdeaProjects\Cucumber\target\Cucumber_Java-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.0:integration-test (failsafe-integration-test) @ Cucumber_Java ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running Applicationform01IT
[INFO] Running Leadpagevalidation03IT
[INFO] Running Leadpagevalidation02IT
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Starting ChromeDriver 2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9) on port 39288
Only local connections are allowed.
Starting ChromeDriver 2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9) on port 45746
Only local connections are allowed.
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Starting ChromeDriver 2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9) on port 13564
Only local connections are allowed.
Jul 03, 2018 6:42:03 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Jul 03, 2018 6:42:03 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Jul 03, 2018 6:42:04 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS

Failed scenarios:

1 Scenarios (1 failed)
9 Steps (1 failed, 8 passed)
0m38.776s
[TestNG] Reporter org.testng.reporters.jq.Main@72ed9aad failed
java.lang.NullPointerException
	at java.lang.StringBuilder.<init>(StringBuilder.java:112)
	at org.testng.reporters.jq.Model.getTestResultName(Model.java:141)
	at org.testng.reporters.jq.ChronologicalPanel.getContent(ChronologicalPanel.java:68)
	at org.testng.reporters.jq.BaseMultiSuitePanel.generate(BaseMultiSuitePanel.java:24)
	at org.testng.reporters.jq.Main.generateReport(Main.java:65)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[TestNG] Reporter org.testng.reporters.XMLReporter@488b50ec failed
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.testng.reporters.XMLSuiteResultWriter.getTestResultAttributes(XMLSuiteResultWriter.java:183)
	at org.testng.reporters.XMLSuiteResultWriter.addTestResult(XMLSuiteResultWriter.java:151)
	at org.testng.reporters.XMLSuiteResultWriter.addTestResults(XMLSuiteResultWriter.java:130)
	at org.testng.reporters.XMLSuiteResultWriter.writeAllToBuffer(XMLSuiteResultWriter.java:74)
	at org.testng.reporters.XMLSuiteResultWriter.writeSuiteResult(XMLSuiteResultWriter.java:52)
	at org.testng.reporters.XMLReporter.writeSuiteToBuffer(XMLReporter.java:129)
	at org.testng.reporters.XMLReporter.writeSuite(XMLReporter.java:91)
	at org.testng.reporters.XMLReporter.generateReport(XMLReporter.java:68)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[TestNG] Reporter org.testng.reporters.JUnitReportReporter@6872f9c8 failed
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.testng.reporters.JUnitReportReporter.createTestTagFor(JUnitReportReporter.java:216)
	at org.testng.reporters.JUnitReportReporter.generateReport(JUnitReportReporter.java:129)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)

1 Scenarios (1 passed)
7 Steps (7 passed)
0m40.268s

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 42.529 s <<< FAILURE! - in Leadpagevalidation02IT
[ERROR] null on Leadpagevalidation02IT(Leadpagevalidation02IT)  Time elapsed: 42.088 s  <<< FAILURE!
java.lang.NullPointerException
	at Leadpagevalidation02IT.afterClass(Leadpagevalidation02IT.java:28)

[TestNG] Reporter org.testng.reporters.jq.Main@4e868ef5 failed
java.lang.NullPointerException
	at java.lang.StringBuilder.<init>(StringBuilder.java:112)
	at org.testng.reporters.jq.Model.getTestResultName(Model.java:141)
	at org.testng.reporters.jq.ChronologicalPanel.getContent(ChronologicalPanel.java:68)
	at org.testng.reporters.jq.BaseMultiSuitePanel.generate(BaseMultiSuitePanel.java:24)
	at org.testng.reporters.jq.Main.generateReport(Main.java:65)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[TestNG] Reporter org.testng.reporters.XMLReporter@6f099cef failed
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.testng.reporters.XMLSuiteResultWriter.getTestResultAttributes(XMLSuiteResultWriter.java:183)
	at org.testng.reporters.XMLSuiteResultWriter.addTestResult(XMLSuiteResultWriter.java:151)
	at org.testng.reporters.XMLSuiteResultWriter.addTestResults(XMLSuiteResultWriter.java:130)
	at org.testng.reporters.XMLSuiteResultWriter.writeAllToBuffer(XMLSuiteResultWriter.java:74)
	at org.testng.reporters.XMLSuiteResultWriter.writeSuiteResult(XMLSuiteResultWriter.java:52)
	at org.testng.reporters.XMLReporter.writeSuiteToBuffer(XMLReporter.java:129)
	at org.testng.reporters.XMLReporter.writeSuite(XMLReporter.java:91)
	at org.testng.reporters.XMLReporter.generateReport(XMLReporter.java:68)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[TestNG] Reporter org.testng.reporters.JUnitReportReporter@1d4664d7 failed
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.testng.reporters.JUnitReportReporter.createTestTagFor(JUnitReportReporter.java:216)
	at org.testng.reporters.JUnitReportReporter.generateReport(JUnitReportReporter.java:129)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 43.1 s <<< FAILURE! - in Leadpagevalidation03IT
[ERROR] null on Leadpagevalidation03IT(Leadpagevalidation03IT)  Time elapsed: 42.645 s  <<< FAILURE!
java.lang.NullPointerException
	at Leadpagevalidation03IT.afterClass(Leadpagevalidation03IT.java:28)


1 Scenarios (1 passed)
11 Steps (11 passed)
0m46.487s

[TestNG] Reporter org.testng.reporters.jq.Main@4a03bb68 failed
java.lang.NullPointerException
	at java.lang.StringBuilder.<init>(StringBuilder.java:112)
	at org.testng.reporters.jq.Model.getTestResultName(Model.java:141)
	at org.testng.reporters.jq.ChronologicalPanel.getContent(ChronologicalPanel.java:68)
	at org.testng.reporters.jq.BaseMultiSuitePanel.generate(BaseMultiSuitePanel.java:24)
	at org.testng.reporters.jq.Main.generateReport(Main.java:65)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[TestNG] Reporter org.testng.reporters.XMLReporter@247667dd failed
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.testng.reporters.XMLSuiteResultWriter.getTestResultAttributes(XMLSuiteResultWriter.java:183)
	at org.testng.reporters.XMLSuiteResultWriter.addTestResult(XMLSuiteResultWriter.java:151)
	at org.testng.reporters.XMLSuiteResultWriter.addTestResults(XMLSuiteResultWriter.java:130)
	at org.testng.reporters.XMLSuiteResultWriter.writeAllToBuffer(XMLSuiteResultWriter.java:74)
	at org.testng.reporters.XMLSuiteResultWriter.writeSuiteResult(XMLSuiteResultWriter.java:52)
	at org.testng.reporters.XMLReporter.writeSuiteToBuffer(XMLReporter.java:129)
	at org.testng.reporters.XMLReporter.writeSuite(XMLReporter.java:91)
	at org.testng.reporters.XMLReporter.generateReport(XMLReporter.java:68)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[TestNG] Reporter org.testng.reporters.JUnitReportReporter@2f879bab failed
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:459)
	at java.util.Properties.setProperty(Properties.java:166)
	at org.testng.reporters.JUnitReportReporter.createTestTagFor(JUnitReportReporter.java:216)
	at org.testng.reporters.JUnitReportReporter.generateReport(JUnitReportReporter.java:129)
	at org.testng.TestNG.generateReports(TestNG.java:1192)
	at org.testng.TestNG.run(TestNG.java:1120)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:123)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:90)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 49.391 s <<< FAILURE! - in Applicationform01IT
[ERROR] null on Applicationform01IT(Applicationform01IT)  Time elapsed: 48.893 s  <<< FAILURE!
java.lang.NullPointerException
	at Applicationform01IT.afterClass(Applicationform01IT.java:28)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   Applicationform01IT.afterClass:28 » NullPointer
[ERROR]   Leadpagevalidation02IT.afterClass:28 » NullPointer
[ERROR]   Leadpagevalidation03IT.afterClass:28 » NullPointer
[INFO] 
[ERROR] Tests run: 3, Failures: 3, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.0:verify (failsafe-integration-test) @ Cucumber_Java ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56.918s
[INFO] Finished at: Tue Jul 03 18:42:44 IST 2018
[INFO] Final Memory: 24M/246M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.22.0:verify (failsafe-integration-test) on project Cucumber_Java: There are test failures.
[ERROR] 
[ERROR] Please refer to C:\Users\MSTEMP\IdeaProjects\Cucumber\target\failsafe-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Process finished with exit code 1

@Priya3001
Copy link
Author

Priya3001 commented Jul 25, 2018 via email

@ashokkumarg
Copy link

@Priya3001 He told it will be fixed on the cucumber extent report upcoming release. Waiting for the release date.

@FranAguiar
Copy link

Any update?

@Priya3001
Copy link
Author

Priya3001 commented Mar 7, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants