Code Monkey home page Code Monkey logo

Comments (16)

damianszczepanik avatar damianszczepanik commented on August 16, 2024

Check if JSON files are really in C:\Jars\workspace\Project_Name\target then C:\Jars\jobs\Project_Name\builds\1\cucumber-html-reports and finally plugin configuration

from cucumber-reporting-jenkins.

folaAkin avatar folaAkin commented on August 16, 2024

JSON files are not in either locations
finally plugin configuration-I am not sure if I understand what you meant but as said in my previous comments Json Reports Path = target ( json:target/json/cucumber.json ) from my project

from cucumber-reporting-jenkins.

Lplay avatar Lplay commented on August 16, 2024

Hi,
Are you able to look into my issues?

Thanks
Akin

from cucumber-reporting-jenkins.

Lplay avatar Lplay commented on August 16, 2024

Hi,
Are you able to look into my issues?

Thanks
Akin

from cucumber-reporting-jenkins.

Lplay avatar Lplay commented on August 16, 2024

Hi,
Are you able to look into my issues?

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

This plugin does not generate json, it needs it as the input

from cucumber-reporting-jenkins.

folaAkin avatar folaAkin commented on August 16, 2024

I am not sure why you closed this issue,I never assumed the plugin generates json file.

from cucumber-reporting-jenkins.

Lplay avatar Lplay commented on August 16, 2024

Hi,
I am not getting my initial error (HTTP ERROR 404 Problem accessing /job/Project_Name/cucumber-html-reports/. Reason:Not )anymore
My Jenkins is set up now on a Virtual machine(AWS Workspaces) and build runs fine but cucumber jvm report is not generated, see below from Jenkins console:

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

When I opened the report I got the following error:

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:134)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)

Trying to generate report from following files. Make sure they are valid cucumber report files:
D:\Users\dummy.jenkins\jobs\dummy\builds\98\cucumber-html-reports\target\cucumber-usage.json
D:\Users\dummy.jenkins\jobs\dummy\builds\98\cucumber-html-reports\target\json\cucumber.json.

Please provide me an email if you want me to send the Json file to you.

Thanks

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

Attach json file

from cucumber-reporting-jenkins.

folaAkin avatar folaAkin commented on August 16, 2024

Json file attached

JsonFile.txt

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

Tired with the most recent version and it works.

from cucumber-reporting-jenkins.

folaAkin avatar folaAkin commented on August 16, 2024

Still facing the same issue, please see error below:

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:134)
at
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)

On Mon, Jun 20, 2016 at 7:29 PM, Damian Szczepanik <[email protected]

wrote:

Tired with the most recent version and it works.

β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#161 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AOWherjKAnYfjea8m8iYPWD87SDGruSlks5qNtvvgaJpZM4ImNhV
.

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

Then you probably attached wrong file.

from cucumber-reporting-jenkins.

folaAkin avatar folaAkin commented on August 16, 2024

I have run another build,attached are cucumber.json and cucumber-usage
json.I am not sure the cucumber usage file is relevant anyway.

On Tue, Jun 21, 2016 at 4:22 PM, Damian Szczepanik <[email protected]

wrote:

Then you probably attached wrong file.

β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#161 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AOWheuY6qtEmrmZjqneZ1hTmQIfu3dK4ks5qOAGygaJpZM4ImNhV
.

from cucumber-reporting-jenkins.

folaAkin avatar folaAkin commented on August 16, 2024

Hi Damian,

Could you please help debug my NPE?I have seen either you or Kingsley help debug similar issues.

I really need the report to work

from cucumber-reporting-jenkins.

damianszczepanik avatar damianszczepanik commented on August 16, 2024

You've been provided source code so you can import the project and try to debug. First suggest to start debugging with standalone version https://github.com/damianszczepanik/cucumber-reporting

Also mind that this issue is not related to NPE - if you read carefully first post. This does not help to track issues ad pull requests.

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.