Coder Social home page Coder Social logo

Comments (2)

kingsleyh avatar kingsleyh commented on August 18, 2024

Did the json files found all contain valid cucumber json?

Do they work in the online tester
http://cucumber-reporting.masterthought.net

Sent from my iPhone

On 12 Aug 2014, at 07:40, jnankurjain [email protected] wrote:

I was trying to generate cucumber reports and below is the crash that I am receiving

[CucumberReportPublisher] Compiling Cucumber Html Reports ...
[CucumberReportPublisher] copying all json files from slave: C:\Jenkins\workspace\Web-Test-Automation-Job to master reports directory: \192.168.1.240\Builds\Web-Test-Automation-Job\2014-08-12_16-32-54\cucumber-html-reports
[CucumberReportPublisher] Found the following number of json files: 3
[CucumberReportPublisher] 0. Found a json file: MintTest\target\cucumber-report-LinkTest.json
[CucumberReportPublisher] 1. Found a json file: MintTest\target\cucumber-report-LoginTest.json
[CucumberReportPublisher] 2. Found a json file: MintTest\target\cucumber-report-TransactionTest.json
[CucumberReportPublisher] Generating HTML reports
[CucumberReportPublisher] there was an error generating the reports: org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration.
org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:875)
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262)
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:646)
org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116)
net.masterthought.cucumber.ReportBuilder.generateErrorPage(ReportBuilder.java:223)
net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:96)
net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:110)
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1007)
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
hudson.model.Run.execute(Run.java:1757)
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:506)
hudson.model.ResourceController.execute(ResourceController.java:88)
hudson.model.Executor.run(Executor.java:234)
Build step 'Publish cucumber results as a report' changed build result to FAILURE
Finished: FAILURE


Reply to this email directly or view it on GitHub.

from cucumber-reporting.

jnankurjain avatar jnankurjain commented on August 18, 2024

Well there was a problem with the rights to create reports on the location which was set inside the code for cucumber. I have downloaded the code and updated the location where velocity reports needs to be created as I couldn't update the write permission of the default location. It worked for me like a charm.

from cucumber-reporting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.