Code Monkey home page Code Monkey logo

Comments (9)

sreedharkommi avatar sreedharkommi commented on August 16, 2024

Please do needful ASAP.

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

Attach json file

from cucumber-reporting-jenkins.

sreedharkommi avatar sreedharkommi commented on August 16, 2024

Please find the json files.

cucumber.txt
stepdefs.txt

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

Did not notice, you have installed very old version, upgrade plugin then it will work

from cucumber-reporting-jenkins.

sreedharkommi avatar sreedharkommi commented on August 16, 2024

Hi,

I have upgraded it to latest version(Cucumber-JVm Reports version - 2.5.1) still it is giving issues.

[CucumberReportPublisher] Found 2 json files.
[CucumberReportPublisher] 1. Found a json file: cucumber.json
[CucumberReportPublisher] 2. Found a json file: features/.cucumber/stepdefs.json
[CucumberReportPublisher] Generating HTML reports
Build step 'Cucumber-JVM reports' changed build result to FAILURE
Finished: FAILURE

And when i click on cucumber-jvm report it is giving below error.

Error
Something went wrong with project Online-functional-test, build 1354
java.lang.NullPointerException
at net.masterthought.cucumber.util.Util.toValidFileName(Util.java:50)
at net.masterthought.cucumber.json.Feature.setReportFileName(Feature.java:176)
at net.masterthought.cucumber.json.Feature.setMetaData(Feature.java:157)
at net.masterthought.cucumber.ReportParser.setMetadata(ReportParser.java:91)
at net.masterthought.cucumber.ReportParser.parseJsonResults(ReportParser.java:61)
at net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:51)
at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:138)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1784)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Trying to generate report from following files. Make sure they are valid cucumber report files:
/var/lib/jenkins/jobs/Online-functional-test/builds/2017-01-17_11-54-49/cucumber-html-reports/cucumber.json
/var/lib/jenkins/jobs/Online-functional-test/builds/2017-01-17_11-54-49/cucumber-html-reports/features/.cucumber/stepdefs.json

Please find below attached json files
CucumberJson.txt
StepdefsJson.txt

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

This is not the most recent version

from cucumber-reporting-jenkins.

sreedharkommi avatar sreedharkommi commented on August 16, 2024

could you please let me know the latest version number and in Jenkins the latest version it is showing is 2.5.1.

from cucumber-reporting-jenkins.

sreedharkommi avatar sreedharkommi commented on August 16, 2024

The plugin manager shows the latest version as 2.5.1. I see that there is another plugin which has a slightly different ID that is "cucumber-reports" which has higher versions available. Should I be looking at this new plugin instead of the "cucumber-jvm-reports" plugin or is it a compatibility issue with the Jenkins version?

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

https://wiki.jenkins-ci.org/display/JENKINS/Cucumber+Reports+Plugin

from cucumber-reporting-jenkins.

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.